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: 

How to Read Idoc - Segment fields values and status messages

kumar_manikonda
Explorer
0 Kudos

Hi,

I am having one requirement as i want to read the segments along with the field values and also i want to read all the status messages.

first i read the idoc data from EDIDS and segments data from EDID4 and the staus messges from T100. but still i am not getting all the status messages.

is there any other table which contains the information of IDOC segments and field values and also the status messages.

Regards,

Kumar

2 REPLIES 2

Kanagaraja_L
Active Contributor
0 Kudos

Check the Function Module IDOC_READ_COMPLETELY

FM gives NUMBER_OF_STATUS_RECORDS and Status Msgs

Kanagaraja L

former_member194669
Active Contributor
0 Kudos

You need to use


V_MSGNO = EDIDS-STAMNO.
CALL FUNCTION 'MESSAGE_PREPARE'
  EXPORTING
    MSG_ID   = EDIDS-STAMID
    MSG_NO   = V_MSGNO
    MSG_VAR1 = EDIDS-STAPA1
    MSG_VAR2 = EDIDS-STAPA2
    MSG_VAR3 = EDIDS-STAPA3
    MSG_VAR4 = EDIDS-STAPA4
  IMPORTING
    MSG_TEXT = V_TEXT.
 
WRITE: / V_TEXT.