Create Return order

Hi all,
  I'd like to create return order at the same time of the creation of one standar order. Both linked.
Firstly, I go to CRMD_ORDER to create standar order and I've customized the following event:
Execution Time 1 Immediately
Priority 1
Object Name ORDER
Event SAVE
Attribute <*>
Function ZCREATE_RETURN_ORD
But this event is not executed. Others are executed and create both document correctly.
The problem is that they are not linked despite of I developed the code code for.
As the return order is created firstly, the standard order guid is not in BBDD, so when I add DOC_FLOW to the standard FM, the creation of ther Return order fails.
Do you know any point of the program or event that I could use to create a return order using an standar one at the same time?
Thanks in advance!

Hello Carlos,
I think you may consider using action.
For example, create an action with method COPY_DOCUMENT.
Hoep this could be helpful.
Best regardsm
Maggie

Similar Messages

  • Cancelled invoices are also allowing to create Return order

    Cancelled invoices are also allowing to create Return order   with invoice references, how to restrict that so Cancelled invoice should not allow to create
    Return order with reference.
    Please help.
    If it is possible in standard how?

    Dear Gautam,
    I am also facing the similar problem and looking for a suitable solution. In case you if you could implement some solution to prevent creating return sales order with reference to cancelled invoice , then please update me too.
    Thanks & Regards,
    Pawan Patel

  • Error while creating return order(Complaint) in IC web client

    Hi SAP Experts,
    I am getting following Error while creating return order(Complaint) in IC web client.
    Error when processing your request
    What has happened?
    The URL http://sapcrd.comfort.com:8000/sap/bc/bsp/sap/crm_ic/default_delta.do was not called due to an error.
    Note
    The following error text was processed in the system CRD : Exception condition "NON_EXISTING_HANDLE" raised.
    The error occurred on the application server sapcrd_CRD_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Function: PRC_PD_HEAD_ADD_COND of program SAPLPRC_PRICING_API
    Function: CRM_PRIDOC_UPDATE_EC of program SAPLCRM_PRIDOC_COM_EC
    Form: EXECUTE_CALLBACKS_PLANNED of program SAPLCRM_EVENT_OW
    Function: CRM_EVENT_SET_EXETIME_OW of program SAPLCRM_EVENT_OW
    Function: CRM_ORDER_COMPLETE_SINGLE_OW of program SAPLCRM_ORDER_OW
    Function: CRM_ORDER_MAINTAIN_SINGLE_OW of program SAPLCRM_ORDER_OW
    Function: CRM_ORDER_MAINTAIN_MULTI_OW of program SAPLCRM_ORDER_OW
    Function: CRM_ORDER_MAINTAIN of program SAPLCRM_ORDER_API
    Method: IF_EX_ORDER_SAVE~PREPARE of program ZCL_IM_PRICE_ADJUSTMENT=======CP
    Method: IF_EX_ORDER_SAVE~PREPARE of program CL_EX_ORDER_SAVE==============CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CRD in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapcrd_CRD_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 2 in transaction ST11 on the application server sapcrd_CRD_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 330 -u: VORUSX -l: E -s: CRD -i: sapcrd_CRD_00 -w: 2 -d: 20080324 -t: 021723 -v: RABAX_STATE -e: RAISE_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Maximum points will be awarded for useful information.
    Thanks,
    Rony

    Hi,
    I notice there is a Z class being called.
    Method: IF_EX_ORDER_SAVE~PREPARE of program ZCL_IM_PRICE_ADJUSTMENT=======CP
    You should check this customized class.
    Cheers,
    cady.

  • Error while creating Return order with reference to Complaint

    Hi,
         We are using Complaint Management in CRM Service. After creation of Complaint, we want to create Return Order that is going to replicate in R/3 .
    We are able to create Return request in CRM as a follow up document. However we are not able to replicate the return order in R/3.
          We have created Return Document type CRMR in R/3  with related Item Category REN assignment & corresponding number ranges assignment.
    We facing problem, as this document is not getting replicated in R/3 & in Complaint, it shows message as "The document is being distributed at the moment, and therefore cannot be changed. The document will be ready for input once it has been distributed successfully.”
    In SMW01, it is showing as fully processed document. However in error segment it shows as error” No upload into R/3" &"R/3 Adapter is called".
    Could please suggest any configuration we have missed or additional configuration to be done?
    Regards,
    Arun

    Hi Arun,
    Have you check & maintained middleware setting for  document transfer
    (tcode R3AC1). Check object SALESDOCUMENT and try maintain transaction
    type there. Don't forget to activate use tcode R3AS.
    hope this helps.
    Gun

  • Serial number copy functionality when creating return orders from standards

    Hi all,
    Serial number is not copying when i create return order from the standard orders in below scenario.
    I implemented one BADI for copying Serial number to Sales order when doing Post goods receipt.
    So after doing inbound delivery and PGR, serial number is copied to the sales order but when i create return order with reference to the Standard order Serial number is not copying.
    When i go VA02 for standard order and selecting the technical objects then if i create the return order serial number is copying.
    Please help me in the above issue.
    I used the following logic to copy serial number from inbound delivery PGR.
    UPDATING THE SERIAL NUMBER TO THE RESPECTINVE SALES ORDER LINE ITEMS
                CALL FUNCTION 'SERNR_ADD_TO_AU'
                  EXPORTING
                    sernr                 = lwa_sernr-sernr
                    profile               = 'NEOP'
                    material              = lwa_mseg-matnr
                    quantity              = 1
                    document              = lwa_mseg-kdauf
                    item                  = lwa_mseg-kdpos
                    debitor               = lwa_mseg-kunnr
                    vbtyp                 = 'C'
                    sd_auart              = lv_auart
                    sd_postyp             = lv_pstyv
                  EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    OTHERS                = 4.
                IF sy-subrc = 0.
                  CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
                IF sy-subrc EQ 0.
                  COMMIT WORK.
                  WAIT UP TO 2 SECONDS.
                ENDIF.
    Edited by: Rajesh Sanapala on Feb 16, 2009 12:48 PM

    hi.
    I have the same problem.
    Can you please share how you solved it?
    thank you
    Bill

  • Net value issue while creating return order with reference to billing

    Dear All,
    I created SO / DEL/ BILLING for qty 100 say net value-20000.When i created Return order with  refrence to billing document,
    net value appearing same ( 20000) for 50 quantity.Pl do advise asap as its required urgently.
    Thanks in advance.
    Regards
    raj
    Edited by: raj_sapsd on Aug 20, 2010 9:18 AM

    surelly problem in VTAF
    F2 to RE
    DATAT: 103
    DATAT: 103
    DATAT: 003
    Coping requirement 021
    item level TAN  and ietm cat proposal G2N
    DataT: 153
    Datat: 104
    datat: 004
    Coping requirement 303
    Update doc Flow X
    only possibilites Removed my Moderator
    Edited by: Lakshmipathi on Aug 21, 2010 9:31 AM
    Please avoid asking for points

  • Create Return Order copy from Billing created from DBM Order Processing

    Hi SAP Gurus
    I have scenario where the user requested to create return order based on Billing created from DBM Order Processing.
    I know that, we can create return order from DBM. but the function copy based on order. the user is requested to do return
    by billing document ( function as SD )
    is this requirement can be done in SD VA01 where the user can copy the billing created from DBM and create return order using SD function

    Hi,
    in DBM you regulary have mulitiple invoices per order (due to split).
    You either can cancel an certain invoice and adapt the order or create a returns order based on an given order where you can select certain (e.g. invoiced) items.
    BR

  • Any function module available to create return order?

    Hi Experts,
    Is there any Fucntion Module to create a return order? In my scenario, I want to make an RFC call to this FM from CRM system and create a return order.
    Is this scenario possbile?
    Waiting for your inputs!
    Thanks and Regards,
    Rohit

    Hi Rohit,
    As we all know that we can create standard orders by using this function module: IDOC_INPUT_ORDERS
    We can as well create returns order. We can copy the above FM into "Z" customize it as per requirements and use the same in RFC call.
    With this i think you can create returns order in the background.
    Hope this helps
    Regards,
    Syed Nasir

  • Free Goods not flowing when creating return order through invocie reference

    Hi ,
    we have configured free goods scenario for our client.
    Free goods are determined in sales order based on condition maintained
    In sales order Tan ,and Tann item category are determined and based on SO , delivery and billing type (F2 ) happens.
    Now we are creating the RE  return order , with reference to Billing document F2 , on copying the items , system is only copying the main goods article and free goods item cannot be determined .
    we have done the following configutration ,
    Item category assignment as RE  NORM  REN RENN  (free goods )
    Below detail of  Copy controls
    1)  F2 to ZRET
    Header level
    data type 051                  copy requiremetn 001
    data type 301
    data type 003
    Item level
    TANN  to RENN
    Data type151           copy reui 303 
    data type 102
    data type 002
    condition 251
    can you please check and confirm , how this can be handled or pls give me the config steps
    Thanks

    Hi
    If you want to happen this, you should assign the free goods procedure to the combination of Sales orgDistChDivDoc Pr ProcCust Pri Proc
    Thanks,
    Ravi

  • Creating Return Order in ME21N

    Hi Experts,
    How to create a Return Order in ME21N?
    What are the mandatory fields etc?
    If anybody has a link to step-by-step procedure to create a Return Order in ME21N, That will be of
    greate use to me.
    Thanks in advance,
    Sreenivas Reddy

    Hi Shriniwas
    Procedure to return stock to vendor
    f LIV and Payment to Vendor is done then
    1. ME21N - Create a Returns PO (Activate "Returns" indicator for PO line item)
    2. MIGO - Goods Receipt > Purchase Order (Returns PO) (Here system will hit Mvmt type "161" and you can also select Un-restricted/blocked stock from where you want to return the stock)
    3. J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD
    Doc Number - Material document No of 161 mvmt
    Doc Year
    Series Group
    Excise Group
    Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    4. J1IV - Post and Print Outgoing Excise Invoice.
    5. MIRO - Credit memo w.r.t. Returns PO.
    if LIV and Payment to Vendor is not done then
    1. MIGO > Return delivery > Material Document (Here refer GR doc, system will determine mvmt type "122" automatically)
    2. J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD
    Doc Number - Material document No of 122 mvmt
    Doc Year
    Series Group
    Excise Group
    Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    3. J1IV - Post and Print Outgoing Excise Invoice.
    4. MIRO - Credit memo w.r.t. Original PO.
    Note: - Excise Transactions to be followed if CIN functionality is in use.
    ACCOUNTING ENTRIES
    The cycle flows like this;
    At the time of GR (MIGO);
    Stock A/c - Dr
    GR/IR Clearing A/c - Cr
    Excise Invoice Posting (J1IEX);
    CENVAT Receivable A/c - Dr
    CENVAT Clearing A/c - Cr
    At the time of LIV (MIRO);
    Vendor A/c - Cr
    GR/IR Clearing A/c - Dr
    CENVAT Clearing A/c - Dr
    At the time of Vendor Return (MIGO);
    Stock A/c - Cr
    GR/IR Clearing A/c - Dr
    Excise Invoice for Vendor Return (J1IS & J1IV);
    CENVAT Receivable A/c - Cr
    CENVAT Clearing A/c - Dr
    At the time of Credit Memo (MIRO);
    Vendor A/c - Dr
    GR/IR Clearing A/c - Cr
    CENVAT Clearing A/c - Cr

  • How can I Create return order with reference to an ARCHIVED invoice

    The standard "Reference" process does not work when the invoice has been archived. Has anyone solved this problem?

    This is because the archived document is not available in the database and the archived document can be used only for viewing the data. Normally only very old documents (like more than 7-10 years old) are archived, so I am just surprised, why a return order is created for a very old document (sales process)?
    Regards,

  • Create Return Order via Fucntional module

    Hi all,
    I am trying to create a return order with refernce to invoice via fucntional module SD_SALESDOCUMENT_CREATE
    In SALES_HEADER_IN, I am giving REF_DOC - Invoice number, REFDOC_CAT - M
    In SALES_HEADER_INX , I am putting X mark for the above fields
    I am Passing necessary details with material.I see the return order is created succesfully, but the invoice number is not updated in Accounting tab - Reference fields - Header.
    Please anyone help me if the values what I have passed is correct or not to create the return order via Functional module
    regard
    Mano

    Hi Mano,
    Could you please upload screenshot of the field you are referring to
    thanks
    santosh

  • Problem when using BAPI to create return order

    Hi All,
    I need urgent Information.
    I am using BAPI_CUSTOMERRETURN_CREATE and BAPI_CUSTOMERRETURN_CHANGE to create and change quantity of return order. In both cases I am getting the result that quantity value is not getting updated.
    are these BAPIs are correct to fulfil my requirement, if yes could you please clarify?
    other wise, can I use BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE?
    and could you please some details about quantity change in Outbound delivery?
    I am using BAPI_OUTB_DELIVERY_CHANGE for this

    Hi
    <u>You need to do exeute a BAPI_TRANSACTION_COMMIT after the succesful execution of both the function modules BAPI_CUSTOMERRETURN_CREATE and BAPI_CUSTOMERRETURN_CHANGE.</u>
    <b>I mean, please insert CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'  function module in the program, after each function module call</b>. 
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Referencing condition values when creating return order is wrong...

    Hello Experts,
    Lets say I have a billing document that has 3 line items namely material A, B and C.
    Now, I created a return order for material A with 2 separate line items because of different
    storage locations. Now, is there a user-exit that lets my 2nd line item copy the condition values of the
    1st line item of the reference billing document? because they are of the same material(A).
    Currently, we are having problems when creating a return order having multiple line items of the same material
    because the succeeding line items copies the wrong condition values of the referenced billing doc.
    For example:
    Original billing document:
    Material      Discount
    A          100
    B          200
    C          300
    Return Order:
    Material     Discount
    A          100
    A          200
    A          300
    The succeeding line items of my return order must point to the first line item since they are of the
    same material. Hope you can help me guys. Thank you and take care!

    You may need to explore in the copy control definition, especially the pricing type defined. Check if any customized requirements exists for condition which checks w.r.t to the document number instead of reference document number item.

  • Error in Creating Return Order

    Dear Frnd,
    While creating the Return Order with Reference getting the below error message:-
    Copying from sale document type RO (Rush Order) to RE(Return) is not supported.
    Anybody can help me on this issue.
    Regards,
    Ashima

    Hello Ashima,
    Well, check with your business whether U want to create the RE wrt RO or Invoice, F2.
    Assuming, it is VTAF--The settings depends would be specific business. However, check this
    Header:
    DataT: 052.
    Data T:103.
    DataT: 003.
    Copying Reqmnts: 021.
    Mark Copy item no.
    Item:
    Item categories are purely proj spefic, generally REN is for Returns.
    rest, Copying reqmnts: 303, DataT 1st one: 153, 2nd: 104, 3rd:004. Update doc flow--X.
    Pricing Type: N.
    SL:
    SL categories also would depend on ur reqmnt, since this is Returns no MRP is required..put appropriate SL Category.
    DataT: 201, Copying reqmnts: can be blank.
    Plz note that U've to analyse ur business reqmnts for your case before settings. The above is only a suggested example.
    I hope this helps, if so, plz assign suitable points.
    Rgds,
    Raghu.

Maybe you are looking for