Application Development and Automation 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: 
Read only

Extend Bapi BAPI_SALESORDER_CHANGE

Former Member
0 Likes
1,707

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..

2 REPLIES 2
Read only

Former Member
0 Likes
503

Read only

Former Member
0 Likes
503

Hi

Try to update VBAPKOM and VBAPKOMX structures too

Max