Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Modify IDoc and save to DB

Former Member
0 Kudos

Hi Experts,

  I have come across to modify an existing IDoc data via RFC program.

  In IDoc they will provide only some information and I have to fill up the remaining IDoc segments.

  The modified IDoc segments  are processed and to be saved on the original IDoc control and data segments .

  Is there any function module that save the modified IDoc to database.

  Please with some sample program.

Thanks & Regards,

SABAREESH

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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