Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CUSTOMERRETURN_CREATE

Former Member
0 Kudos

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 ?

sales_org

division

distr_chan

ref_doc = Invoice number

refdoc_cat = 'M'.

  • partner

lt_partners-partn_role = 'WE'.

lt_partners-partn_numb

APPEND lt_partners.

  • order item

lt_items_in-material

lt_items_in-target_qty = 10.

1 REPLY 1

Former Member
0 Kudos

Hi,

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.