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: 

Inbound idoc status..

former_member599326
Participant
0 Kudos

Hi,

I m processing inbound idoc through custom function module.. in that function module i m using BDC to post the FB70 document.. so after successful posting through bdc i want to update back the document no in idoc.. so that user can go to WE02 and check the document number...

can anybody knows.. how to update back the document no in idoc.. ??

Regards,

1 REPLY 1

Former Member
0 Kudos

1.Use this FM 'EDI_DOCUMENT_OPEN_FOR_EDIT' to open IDoc for Edit.

2.Loop at itab_edidd and change data for that segment.

3.Change data segments using FM 'EDI_CHANGE_DATA_SEGMENTS'.

4. Change control record using 'EDI_CHANGE_CONTROL_RECORD'.

5.Close idoc using FM 'EDI_DOCUMENT_CLOSE_EDIT'.