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

function module to read inbound idoc

Former Member
0 Likes
624

My requirement is:-

1) Read IDOC no's (DOCNUM) based on following selection criteria

status = 53,

Direction = 2,

Message Type : USERCLONE

UPDTIM :sy-datum

2)

Read IDoc Data table for all entries with the DOCNUM selected above.

Is there any function module to do this processing or please send any sample code to proceed.

2 REPLIES 2
Read only

Former Member
0 Likes
391

make selection from EDIDS and EDIDC tables....

that will be more easy

regards

Read only

Former Member
0 Likes
391

Hi,

try this

SELECT * FROM edidc INTO TABLE t_idoc_control

FOR ALL ENTRIES IN fp_docnum

WHERE docnum = fp_docnum-docnum.

if t_idoc_control[] is not initial.

CALL FUNCTION 'ALE_FTCH_DATA_SEGMENTS_OF_IDOC'

TABLES

t_idoc_control = t_idoc_control

t_idoc_data = t_idoc_data.

endif.

*reward if solved*