How to add segments to IDOC?

Answer Posted / mahesh

Updating Idoc data in Segments:
Step1:Open doc to edit
call function 'EDI_DOCUMENT_OPEN_FOR_EDIT'
Step2:Loop at itab_edidd and change data
Step3a:Change data segments
Call function 'EDI_CHANGE_DATA_SEGMENTS'
Step3b:Change control record
Call function 'EDI_CHANGE_CONTROL_RECORD'
Step4:Close Idoc
*UPDATE IDOC STATUS
Call function 'EDI_DOCUMENT_CLOSE_EDIT'

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

dear friends, do you know how to configure web dynpro and adobe into ECC6.0 IDES?

2536


What is the use of 'table index'?

621


Events that can be used in both the classical and interactive reports

1109


How do you write transaction programs in sap?

571


Why do we use dynamic where conditions?

865






What is function group?

604


What are the uses of table pool or table cluster.

526


What is the difference between function group and function module?

511


What is erp? : sap abap hr

629


What is an authorization in sap?

598


Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs

1846


Explain what is sap script?

633


What are Tickets in Realtime ?

1668


What are the types of views? : sap abap data dictionary

628


What is interactive reporting?

605