‎2007 Oct 24 11:54 AM
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.
‎2007 Oct 24 12:06 PM
make selection from EDIDS and EDIDC tables....
that will be more easy
regards
‎2007 Oct 24 12:10 PM
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*