Hi Sabareesh,
There are a number of functions that you call to open an IDoc for editing,
change the contents of segments, close the IDoc, and then you have to do a
db commit of course.
Functions are
1. EDI_DOCUMENT_OPEN_FOR_EDIT
2. EDI_CHANGE_DATA_SEGMENT
3. EDI_DOCUMENT_CLOSE_EDIT
Thanks & Regards
Rajavel