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

What should be the approach for writing a bdc program? : abap bdc

581


Explain how is batch input process different from processing on line?

557


Define database layer? : abap data dictionary

678


How is collect statement different from append?

590


Explain the difference between domain and data element?

581






While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc

766


what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

1997


What are the names of the function modules that will be generated upon activation of a lock object?

550


What is a data dictionary? : sap abap data dictionary

555


Why cant we use Normal function module for data transfer?

1708


What are the types of search helps? : sap abap data dictionary

642


How do you backup Sapscript layout sets? Can you download and upload? How?

639


What are the update types possible?

612


What are the different modes of processing batch input sessions? : abap bdc

657


when u prefer lsmw?

624