Skip to Content
author's profile photo Former Member
Former Member


Hello all

Trying to use this BAPI to create a return based on an Invoice. I run this stand-alone at the moment but cannot get it to work. I get an order(Return) number returned but when viewing in VA03 it states that it is not in the DB or archived.

I am trying to enter the minimum data in HEader_in,Item_in,Partner_in and set corresponding 'X' flags in header_X,ITM_X structures.... the data I populate is as below - has anyone encountered this problem ?




ref_doc = Invoice number

refdoc_cat = 'M'.

  • partner

lt_partners-partn_role = 'WE'.


APPEND lt_partners.

  • order item


lt_items_in-target_qty = 10.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 05:42 PM


    This BAPI doesnt have an internal commit to reflect the data changes.

    so you need to call BAPI_TRANSACTION_COMMIT to commit the data after BAPI_CUSTOMERRETURN_CREATE is called. Then it will be reflected and stored in the database.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.