01-31-2008 4:43 PM
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.
01-31-2008 5:42 PM
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.