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

Similar Messages

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • Using BAPI to create sales order

    Hi
      i use this BAPI 'BAPI_SALESORDER_CREATEBOS' to create SO, and This BAPI is with SAP E&C solution.
    it is similar to BAPI_SALESORDER_CREATEFROMDAT2. and when i call this BAPI, it give the error 'only quantity 1 ST are permitted (item 000010)'. This because the material i use is service material and with unit 'ST' and only 1. it means one project i sell.
    The partial code is as below.
      i_orderitemsin-itm_number = '000010'.
      i_orderitemsin-material = it_sdmaster-MATNR.
      I_ORDERITEMSIN-SHORT_TEXT = it_sdmaster-ARKTX.
      I_ORDERITEMSIN-TARGET_QU = 'ST '.
      I_ORDERITEMSIN-SALES_UNIT = 'ST '.
      I_ORDERITEMSIN-TARGET_QTY = '1.000'.
      I_ORDERITEMSIN-TARGET_QU = 'ST '.
      I_ORDERITEMSIN-TRG_QTY_NO = 1.
      I_ORDERITEMSIN-TRGQTY_DEN = 1.
      i_orderitemsin-pckg_no = v_package.
      APPEND i_orderitemsin .
      clear i_orderitemsin .
    You see, i have input the unit(ST) and quantity(1). tks for ur advice.

    I think you dont need to pass data in the fields TRG_QTY_NO and TRGQTY_DEN.
    Refer the data element documentation of the above fields.
    -Kiran

  • 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

  • BAPI to create Returns Lot (FP09)

    Hi to all,
    We want to create a Z program and use a BAPI to create return lots, is this possible? Have anyone done this?
    The problem is that the bank is reporting us two cases for lot payment orders
    1. success payment of order
    2. unsuccessfully payments on orders
    Both cases are mix in one big file.
    We are planning clear the ones successful ones with the bapi BAPI_CTRACPAYMINC_CREATE... and all the ones required to create and post lots. (similar to fp45)
    But we want to do something similar to FP09 for the unsuccessful ones with the Z program
    By doing this all can be done with one step.
    We can not find any BAPIs of FM which can be used to do this.
    Thanks
    Sergio

    FKK_LOT_KEY_CREATE           
    FKK_PAYMENTLOT_KEY_CREATE    
    FKK_PAYMENT_BATCH_ADD_CLARIF 
    FKK_PAYMENT_BATCH_ANALYZE_ITEM
    FKK_PAYMENT_BATCH_ARCH_IND_CRE
    FKK_PAYMENT_BATCH_CLARIFY_ITEM
    FKK_PAYMENT_BATCH_CLOSE      
    FKK_PAYMENT_BATCH_FIND_ARCH_PM
    FKK_PAYMENT_BATCH_FIND_PAYMENT
    FKK_PAYMENT_BATCH_GET_STATUS 
    FKK_PAYMENT_BATCH_LOCK_ITEM  
    FKK_PAYMENT_BATCH_NEW_FIKEY  
    FKK_PAYMENT_BATCH_POST       
    FKK_PAYMENT_BATCH_RELEASE    
    FKK_PAYMENT_BATCH_REVERSE_PYMT
    FKK_PAYMENT_BATCH_SHOW_DETAIL
    FKK_PAYMENT_BATCH_STATUS     
    FKK_PAYMENT_BATCH_STATUS_ADJST
    FKK_PAYMENT_BATCH_UNLOCK_ITEM
    FKK_SEARCH_PAYMENTS_IN_LOTS
    These are few FMs ...
    FKK_PAYMENT_BATCH_STATUS    can be used to get the status of the LOT
    Hope some of these will be helpful

  • 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

  • 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

  • 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

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • Problem when using About Operator in Contains Query

    Hi,
    I'm new to Oracle and this forums too. I have a problem when using about operator in contains query.
    I create a table with some records and then create a context index on 'name' column.
    CREATE TABLE my_items (
      id           NUMBER(10)      NOT NULL,
      name         VARCHAR2(200)   NOT NULL,
      description  VARCHAR2(4000)  NOT NULL,
      price        NUMBER(7,2)     NOT NULL
    ALTER TABLE my_items ADD (
      CONSTRAINT my_items_pk PRIMARY KEY (id)
    CREATE SEQUENCE my_items_seq;
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Car', 'Car description', 1);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Train', 'Train description', 2);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Japan', 'Japan description', 3);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'China', 'China description', 4);
    COMMIT;
    EXEC ctx_ddl.create_preference('english_lexer','basic_lexer');
    EXEC ctx_ddl.set_attribute('english_lexer','index_themes','yes');
    EXEC ctx_ddl.set_attribute('english_lexer','theme_language','english');
    CREATE INDEX my_items_name_idx ON my_items(name) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('lexer english_lexer');
    EXEC ctx_ddl.sync_index('my_items_name_idx');Then I perform contains query to retrieve record :
    SELECT count(*) FROM my_items WHERE contains(name, 'Japan', 1) > 0;
    COUNT(*)
          1
    SELECT count(*) FROM my_items WHERE contains(name, 'about(Japan)', 1) > 0;
    COUNT(*)
          1But the problem is when I using ABOUT operator like in Oracle's English Knowledge Base Category Hierarchy it return 0
    SELECT count(*) FROM my_items WHERE contains(name, 'about(Asia)', 1) > 0;
    COUNT(*)
          0
    SELECT count(*) FROM my_items WHERE contains(name, 'about(transportation)', 1) > 0;
    COUNT(*)
          0I can't figure out what 's wrong in my query or in my index.
    Any help will be appreciated.
    Thanks,
    Hieu Nguyen
    Edited by: user2944391 on Jul 10, 2009 3:25 AM

    Hello (and welcome),
    You'd be best asking this question in the Oracle Text forum, here:
    Text
    And by the way, it will help others to analyse if you put {noformat}{noformat} (lowercase code in curly brackets) before and after your code snippets.
    Good luck!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem when using Javabeans in ADF?

    Hi,
    I encountered a problem when using ADF.
    Please look at the following 2 classes :
    public class Person
    private String name;
    private String city;
    private int age;
    public Person(String name, int age, String city)
    this.name = name;
    this.age = age;
    this.city = city;
    public Person()
    public void setName(String name)
    this.name = name;
    public String getName()
    return name;
    public void setAge(int age)
    this.age = age;
    public int getAge()
    return age;
    public void setCity(String city)
    this.city = city;
    public String getCity()
    return city;
    public class PersonFactory
    public PersonFactory()
    public List getPersons()
    List list = new ArrayList();
    list.add(new Person("peit", 18, "dalian"));
    list.add(new Person("robin", 22, "shenyang"));
    list.add(new Person("Joe", 30, "York"));
    list.add(new Person("Edi", 23, "Beijing"));
    return list;
    public List getNames()
    List list = new ArrayList();
    list.add("Peit");
    list.add("Robin");
    list.add("Joe");
    list.add("Edi");
    return list;
    public void commit()
    System.out.println("Data commited");
    I created the PersonFactory class as DataControl, so I can use the getPersons() and getNames()(just for test, so they are simple), I drag the names from
    the DataControl palette as Table in a JClientPanel, good luck, it works and displays the 4 Strings in a table, but when I drag the persons from
    the DataControl palette as Table in the same JClientPanel, it does not work and raises exception :
    java.lang.NullPointerException
         at javax.swing.JTable.prepareRenderer(JTable.java:3731)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
         at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
         So, I confused why? How to edit it properly?
         Thanks.
    Message was edited by:
    [email protected]

    Hi, Frank
    Thank you for your reply.
    I am sorry for not explaining well. I mean that the getNames() works fine, but getPersons() does not. The only diferenece between them is the former is simple string and the latter is javabean, but when I made the PersonFactory as DataControl, I set the bean class Person for the getPersons()(list of persons) bean class.
    I debuged the class, the exceptions raised when the table for getPersons() setModel() method called.
    So, where is the problem?
    Thanks.

  • 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

  • FM/BAPI to create Transfer Order(TO) with reference to TR or Material Doc.

    Hi,
    I am in need of Function module or BAPI to Create Transfer Order(TO) with reference to Transfer Requirement(TR) or Material Document.

    Hi,
    Please try any of the below,
    1.Look at function group L03B (Transfer order processing)
    2.Use L_TO_CREATE_TR
    3.BAPI_GOODSMVT_CREATE set:
    GOODSMVT_ITEM-STGE_TYPE_PC = destination storage type or GOODSMVT_ITEM-STGE_TYPE_ST = destination storage type
    4.Look at fm L_TB_VERAENDERN. This isn't RFC, but you might copy fm into ZL_TB_VERAENDERN and set RFC on.
    Hope this helps.
    Thanks,
    Harini

  • 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

Maybe you are looking for