12-28-2011 11:41 AM
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,
12-28-2011 2:03 PM
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'.