Application Development and Automation 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: 
Read only

Modifying IDoc status record

sarbajitm
Contributor
0 Likes
703

Hi,

I'm trying to modify the status of an Inbound IDoc using FMs 'EDI_DOCUMENT_OPEN_FOR_EDIT', EDI_DOCUMENT_CLOSE_EDIT.

But the message that I'm passing in STATXT field of structure EDI_DS40(used in FM EDI_DOCUMENT_CLOSE_EDIT) that is not being reflected in the IDoc when I'm checking it through WE05.

regards,

Sarbajit.

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
613

Have you passed

do_commit = 'X'

do_update = 'X'

write_all_status = 'X'

Read only

0 Likes
613

Yes Keshav I've passed all these parameter.

Read only

0 Likes
613

Check whether you have populated the table correctly.

For example you can refer link:[http://www.erpgenie.com/sapedi/idoc_abap.htm]

Read only

uwe_schieferstein
Active Contributor
0 Likes
613

Hello Sarbajit

In order to "delete" IDocs (i.e. status = 68) I use fm IDOC_STATUS_WRITE_TO_DATABASE.

Not sure if it will work in your context but you may give it a try.

Regards

Uwe