‎2010 Nov 24 9:39 AM
Hi,
Iu2019m trying to extend Bapi BAPI_SALESORDER_CHANGE.
I created 2 structures: ZZVBAP_SERVICE for fields, ZZVBAP_SERVICEX for flags.
I added ZZVBAP_SERVICE structure to VBAP, BAPE_VBAP, VBAPKOZ.
I added ZZVBAP_SERVICEX structure to BAPE_VBAPX, VBAPKOZX.
When I run the BAPI I populated the following parameters:
SALESDOCUMENT with sales order
ORDER_HEADER_INX with UPDATEFLAG = u2018Uu2019
ORDER_ITEM_IN with line number
ORDER_ITEM_IN with line number and UPDATEFLAG = u2018Uu2019
EXTENSIONIN with 2 lines:
1. Structure = 'BAPE_VBAP', valuepart1 = orderposnradditional fields
2. Structure = 'BAPE_VBAPX', valuepart1 = orderposnrX in additional fields
I checked that the positions are correct.
After running the BAPI, I get 3 messages in return table:
1. That the header was updated.
2. That the lines were updated.
3. That the order was saved.
I also run BAPI_TRANSACTION_COMMIT after BAPI.
When checking the sales order, no data changed for my fields.
Thanks..
‎2010 Nov 24 9:45 AM
‎2010 Nov 24 9:46 AM