Runtime Error in CRM_EVENT_PUBLISH_OW while Sales Order Creation

Hi,
I am getting run time error when I try to copy the sales order from Existing one and Save it. ( in WEB UI)
I am getting this error in the Function Module : CRM_EVENT_PUBLISH_OW
Code Extract :
IF ( iv_obj_name IS INITIAL ) OR
    ( iv_guid_hi IS INITIAL ) OR
    ( iv_kind_hi IS INITIAL ) OR
    ( iv_event IS INITIAL ).
-- Fehlerhafte oder unvollständige Parameterübergabe bei Aufruf &1 ---*
   MESSAGE x028(crm_ssc) WITH 'FU CRM_EVENT_PUBLISH_OW'.
ENDIF.
Please help me, how can I solve this runtime error.
Thanks,
Sandeep

Hi,
    The Event Publish itself might not be responsible for the error. Whenever you make a change in the order, the change is "published" in order to check if the change is acceptable to other objects of the order. You will have to analyze what might be possibly affected when you made the change or have to do a lot of debugging....
Regards,
Arun Prakash

Similar Messages

  • COPA error while Sales order creation

    Hi,
    We are trying to create Sales order and getting error as below;
    Inconsistency between a document field and the prof. segment number
    Message no. KE396
    Diagnosis
    A line item was assigned to a profitability segment (number 046xxxxxx) which has the value 0000005xxx for characteristic Customer. The original document (FI document, sales order, internal order, etc.), however, contains Txxxx in this field. It is therefore inconsistent with the profitability segment found.
    Can anybody please help me to resolve this?
    Thanks,
    Niki Shah.

    What is the release you are working on? If it were < 4.6A, and you are trying to create an order with refenrence, thenit could be a program error as fixed by note 171064.
    Also refer to this [thread|Error KE 396 in sales order;
    You may need to fix a program error or add some coding.

  • Update error in  RV_SALES_DOCUMENT_ADD during Sales order creation

    I get an Update/ ABAP runtime error during Sales order creation. The error occurs during processing of the update module -RV_SALES_DOCUMENT_ADD.
    This error does not occuring always, as I am sometimes able to create a Sales order without getting update error. I am getting the error of all types of Sales orders and even contracts.
    Am I missing any configuration parameters?
    Thanks,
    Chitra

    Yes , I can see the error in ST22.
    While exceuting VA01 (Oder type OR, Entering Sold-to-party, Purchase order NO, Material, Qty, Plant),
    - I get run-time error "Run-time error "GETWA_NOT_ASSIGNED" occurred".
        Analysis of error shows:
         Update terminated in "Update module: RV_SALES_DOCUMENT_ADD"
          Fails in the Read table in one of the form
            Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN"
    The main program was "RSM13000 ". In the source code you have the termination point in
    line 147 (READ TABLE FYVBAP WITH KEY VBAP_KEY.)
    of the (Include) program "LV45UF0V".
    The ABAP's say the functional module is trying to do an 'UPDATE' instead of 'INSERT" in the internal table FYVBAP.
    Thanks,
    Csuman

  • Replacing Profit Center value while sales order creation process - VA01

    Hi,
    Profit Center replacement   in Tcode VA01 and VA02
    I want to replace the profit center value (COBL- PRCTR) in Account assignment TAB in sales order creation time VA01 and VA02 by using custom logic (Line item Material Group and Sales District VBKD-BZIRK).
    Can anyone tell me what exit or BADI I can use for this ( I tried some of them and not working properly).
    1.     In Exit I need to have the value of Sales District VBKD-BZIRK and Line item u2013 Material Value  - These 2 field values I need in the exit.
    Thanks in advance.
    Rajesh.

    What do you mean this is not correct user exit. That is an include and there are user exits within that include.
    Have you tried save document prepare?  If yes, what have you done?
    Don't just blindly say 'that is not correct' or don't expect someone code for you. You better try in different way and learn how to do it. I just got it worked in my system just in 5 minutes in debug.
    You are not going to change COBL-PRCTR but you should change XVBAP-PRCTR.
    put a break point in userexit_save_document_prepare in include MV45AFZZ
    Loop through XVBAP and change PRCTR as per your logic.... This changed PRCTR carried till end (billing document/accounting document). I can see the profit center document with changed profit center.
    Good luck... if that solves. Mark this thread appropriately.
    Most importantly, you better close your previous threads if they are answered. if you solved by yourself post the solution so that others can benefit from that. 
    @moderator, please check this guy posts
    Edited by: Sampath Kumar on Apr 28, 2011 1:16 PM

  • Error saying to enter : Incoterms while sales order creation

    Hi,
    I am trying to create a sales order. Once the header data is entered, I am getting error saying "Enter Incoterms".
    But, after entering the item data, there is no error. They are determined.
    But, incoterms should get determine, based on header data.
    Could you please let me know, is it a standar behaviour or any note needs to be applied?
    Thanks,
    Sandeep

    Incoterms are picked up from the sales area data of the sold to party. Please check your sold to master data if the incoterm is maintained. I hope this helps.
    Regards,
    Gaurav Gera

  • How to update VBFA while sales order creation using BAPI

    Hi,
    I am trying to create sales orders for each schedule line items while inquiry creation.
    This I have done in the user exit in the VA11 program MV45AFF using BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
    along with the Inquiry, Sales orders are also getting created. But I am facing 2 problems.
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order   
        number.
    2) It is not updating the VBFA (SD flow) table.
    Regards,
    Krishna.

    Hello,
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
    number.
    - are you passing simulation parameter (TESTRUN) as 'X'
    2) It is not updating the VBFA (SD flow) table.
    - Please use BAPI_SALESDOCUMENT_COPY for copying and updating VBFA table
    Thanks
    Krish

  • User exit - VA01 - Adding new line items while Sales Order Creation

    Hi All ,
    I have a requirement where : in VA01 , i have to add new line items using USER EXIT or BADI.
    The scenario is : we maintain Characteristics for Material. When we select a particular characteristics, Factor and length will be displayed in a Popup. we can specify the Factor and lenght.
    Here , if i specify Factor as 10 and lenght as 1000. the Material has to be cut / split into 10 items of 1000 mts each. and the ITEMs table control should get 10 ITEMS .
    How to add new items using User exit or Badi in VA01 while creating a sales order.
    i have identified the user exit . What code should be used to add new line items.
    kindly help me in solvng this.
    Waiting for your replies.
    Thanks in advance.
    Suki.

    hi
    wich user exit do you take for that ???

  • Problem in changing characteristics of material while sales order creation

    Hello,
    My requirement is to change the characteristics of the material in a sales order before the sales order is saved.
    I tried using 'BAPI_OBJCL_CHANGE' but it aint working. In the debugging mode it is found that the program is searching for entries in KSSK table which are not found. The object key passed to the BAPI is a combination of sales order number and the item number and the object table is VBPS.
    Is there any other way by which I can change the characteristics before the sales order is saved?
    Thanks in advance,
    Anurag

    Try to use CRM_STATUS_CHANGE_INTERN if it's system status
    and CRM_STATUS_CHANGE_EXTERN if it is user status

  • Characteristics Value screen suppress while Sales Order creation

    Hi Experts,
    In Super BOM of header item, we have around 50 materials as Configurable components. Now when user create Sales Order, system first shows Value Assignment Screen for all configurable components. So here user intervention is more.
    Requirement is initially system should not show value assignment screen. It should be called only on user's request.
    Thanks & Regards,
    Vishal Gupta

    Hi,
    If u have to display all 100 records in table as value help..
    n no input field is mandatory thn go for EVS...
    which u can excecute on WDinit();
    Regards
    Khushboo

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
    We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
    Regards,
    Sushee Joshi

    HI,
    we have written SWE_EVENT_CREATE in update task
    I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
    OR
    And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
    Please check..
    Regards
    Pavan

  • Change Transportation Zone in Sales Order creation

    Hi Gurus,
    I am looking for an user-exit to overwrite the transportation zone for the ship-to party while creating the Sales order.
    Actually the order is getting created thru IDOC. The segment E1EDKA1 with PARVW 'WE' contains all the data including name, street, city, phone etc. But there is no option(field) to send this transporation zone (LZONE). In the sale order creation program, it is automatically picking it up from VBPA for the customer. I need to overwrite this one with a different value. Is there any User-exit available to accomplish?
    For your information its PO-SO process. A KBZI order will be created. Using the PR generated from this order, we need to create the PO that in turns automatically creating an Intercompany Sales Order ( thru IDoc). In this second Sales Order, I need to overwrite the transportation zone based on the initial order.
    Thanks in advance,
    Vijay.

    >
    Murphy wrote:
    > I modified the value at runtime KUVEW-LZONE. But this values is keep on getting modified by XVBPA-LZONE for the customers...
    How about if we modifiy the value of XVBPA-LZONE itself at runtime in Routine either USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE?
    See if the values of KUVEW-LZONE or XVBPA-LZONE in our hand in above exit?

  • Multiple Input nodes to Sales Order creation using VC

    hi experts,
    i'm using BAPI_SALESORDER_CREATEFROMDAT1 for sales order creation in VC. i would like to get header details in a form and also like to get the multiple items details in a table and partner details in atable.i've to take both contents to create a sales order. when i click the submit button in the form " sold-to party is not defined" error message displayed and when i click the submit in table "DOC TYPE is not mentioned" message is shown. but i've given both details.
    can you help me to solve my problem and i've confused which field is used to mention the sold-to party in the header_in.
    thanks and regards
    basheer

    Hi,
    I was facing the same problem while creating the sales order. Try giving following values:
    If you are creating standard order, then enter 'TA' instead of 'OR' to the Doc_Type and enter 'AG' as a partner role instead of 'SP'.
    It works for me. I don't know how??? Lets try.
    Also try following links.
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/problems-working-with-bapi_salesorder_createfromdat2-527937#
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    Thanks,
    Prashant
    (PS. Do Rewards Points for useful answers)

  • Condition types in Sales order creation process

    Hi Friends...
    While creating the sales order with BAPI,
    What is the condition type i have to pass for pricing procedure...
    There many condition types for my pricing procedure, which one o have to select...
    Some of them are mannual, and other reuired, which one I have to pass?
    I want the information related to this condition types.., as here no SD consultant availble for me.
    Sales order creation, Line item error
    Thanks,
    Naveen.I

    Hi Friends...
       Please let me know is it mandatory to give condtion type while creating the sales order...?
    I am using BAPI_SALESORDER_CREATEFROMDAT2  to create my sales order...
    http://www.sap-img.com/abap/bapi-salesorder-createfromdat2.htm
    Thanks,
    Naveen.I

  • Reg:IDOC -sales order creation

    Hi All,
         I am trying  to create sales order through IDOCS.Basic type is SALESORDER_CREATEFROMDAT201.
    My requirement is to know any user-exits where in I need to add to my code to hardstop sales order creation if the storage location which I am passing is marked for deletion.
    Kindly reply as soon as possible.
    Regards,
    Kaveri

    Hi,
    Check this one it will help u how to enhance the idocs.
    If we wnat to extend the idoc use the segments for adding the fields. use the tcode WE30 and we31.
    Please reward points if it is useful.
    Go through the following Steps For ALE/IDOC
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Create Model View
    Tcode BD82 ? Generate partner Profiles & Create Ports
    Tcode BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    regards,
    satish.

  • Sales order creation -pricing- IDOC processing

    Hi All,
    Issue is related to pricing procedure and condition types while processing the IDOC for sales order creation.
    The condition type ZSTD maintained in the pricing procedure AAAA, has reference condition type as ZZZZ, when we are processing IDOC, system is throwing error as " condition type ZZZZ, is not maintained for A V AAAA.
    This error will not populate when we create the sales order manually.
    Kindly let me know if programs needs to be checked and or any configuration mistakes involved in this.
    Regards,
    SAN

    >
    Vivek Baddula wrote:
    > Hey Teju,
    >
    > Could you pls put me the block of code how you are populating to the idoc edidd. So that we can guide you.
    >
    > And also tell me the message status 51 in IDoc what it is showing , and also see the segment( maybe E2EDP05)  specific  to pricing for the IDoc  you populated.
    >
    > Regards,
    >
    > Vvieks
    >
    > 'Grow and help others to Grow'
    Vivek,
    Thanks for the reply.
    Status 51 reads "condition ZPRL is missing in pricing procedure A V ZPRINT, WE are not passing any value as a part of tsting. The system should pick price values from condtion record.

Maybe you are looking for