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

Read IDOC content in abap program

former_member802307
Participant
0 Likes
5,680

Hi all

using IDOC number, i'd like to read informations containted in that IDOC.

In EDI_* Function moduls i have found EDI_DOCUMENT_OPEN_FOR_EDIT

The problem is that this FM is used to process IDOC to change its content. i supose that the IDOC is enqued when processed by this FM.

Do you know any other way to access IDOC data content in READ mode

Thank you in advance

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
3,346

Hi,

You can use the following FM.

IDOC_READ_COMPLETELY (Read IDoc Data)

IDOC_TYPE_COMPLETE_READ (Read IDoc Structure and Segments)

or

read the idoc data from database table edid4 and edids (idoc status))and edidc (idoc control data).

Regards,

S.Velsankar

2 REPLIES 2
Read only

PedroGuarita
Active Contributor
0 Likes
3,346

Use FM EDI_DOCUMENT_OPEN_FOR_READ and after that to get the segments EDI_SEGMENTS_GET_ALL. Check TCODE WE19 for good way to see how it's done.

Read only

Former Member
3,347

Hi,

You can use the following FM.

IDOC_READ_COMPLETELY (Read IDoc Data)

IDOC_TYPE_COMPLETE_READ (Read IDoc Structure and Segments)

or

read the idoc data from database table edid4 and edids (idoc status))and edidc (idoc control data).

Regards,

S.Velsankar