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 are the tcodes for performance tuning?

911


What statement will be found in an sap application program that implements a function module exit?

549


Explain what are interactive reports?

623


What is a multiple line field? : abap bdc

613


What is the t-code for transaction recorder? : abap bdc

597






How is conversion of data types done between abap/4 & db layer?

637


In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?

687


While sorting field groups we cannot use more than one key field. State true or false. : abap modularization

591


What is ps structure? : abap hr

799


What are the two ways for restricting the value range for a domain ?

711


Explain how to create any functions?

593


How do you use tab sets in layout sets?

656


What is the difference between the function module and a normal abap/4 subroutine?

638


What are the function modules used to create batch input session? : abap bdc

627


What is the difference between scrolling a table horizontally and vertically?

576