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: 

Doc flow update for a return PO created

Former Member
0 Kudos

Hello,

I have a requirement, where I have to create a Purchase order from a return Sales order. This PO must be updated in the document flow of the sales order.

I am currently using BAPI_PO_CREATE1 (Called from MV45AFZZ), the PO is getting generated, but the doc flow isn't. Have used FM   SD_DOCUMENT_FLOW_MAINTAIN, but it isn't working. Please suggest a way out.

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Are you filling the  REF_DOC REF_ITEM  with SO Number and SO item number in BAPIMEPOITEM  when you are creating the PO from that BAPI ?

If not , fill those for each line and check


0 Kudos

Thanks for the reply, yes I tried passing the values of REF_DOC and REF_ITEM to POITEM and POITEMX, but it's not working.