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

SO doc flow does not get updated when using BAPI

Former Member
0 Likes
594

Hi,

When aading a new line item via BAPI (BAPI_PO_CHANGE) or BDC (me22) in a Sales order and Purchase order, the added item document flow does not get updated. If you view at the document flow of the new line item it does not have a PO in it while when looking at the original line item it does.

When I manually add a line item via me22n there is no problem, the new line item document flow gets updated.

But when I manually add a line item via me22 the same problem occurs.

How can I be able to solve this problem? I needed to be able to create a program to add a line item in SO and PO.

thanks in advance

2 REPLIES 2
Read only

Former Member
0 Likes
499

call the bapi for the sales order change after the call to the first bapi is succesful

BAPI_SALESORDER_CHANGE

Regards,

ravi

Read only

0 Likes
499

hi ravi,

thanks for the help..

but i am actually using bdc (va02) to update the sales order. The sales order and the purchase order are getting updated (with the new line item) the problem is that the document flow of the added line item does not get updated.