07-14-2007 1:18 PM
Hi All,
I have one doubt regarding how many times the particular segemnt repeated .
I am reading some data from EDIDC table and thern calling the FM ''IDOC_READ_COMPLETELY'
loop at i_EDIDC
call function module to collect the idoc information.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
document_number = itab-docnum
IMPORTING
idoc_control = edidc
TABLES
int_edids = i_edids
int_edidd = i_edidd
EXCEPTIONS
document_not_exist = 1
document_number_invalid = 2
OTHERS = 3
Loop at DATA Record to fill segment
LOOP AT i_edidd ASSIGNING <fs_edidd>.
CASE <fs_edidd>-segnam .
WHEN 'E1IDLB1' . " C_E1IDLB1 Make consatatn SAU
<fs_e1idlb1> = <fs_edidd>-sdata .
APPEND <fs_e1idlb1> TO i_e1idlb1.
CLEAR <fs_e1edpa1>.
WHEN 'E1EDPA1'.
<fs_e1edpa1> = <fs_edidd>-sdata.
APPEND <fs_e1edpa1> TO i_e1edpa1.
CLEAR <fs_e1edpa1>.
WHEN 'E1IDPU5'.
<fs_e1idpu5> = <fs_edidd>-sdata.
APPEND <fs_e1idpu5> TO i_e1idpu5.
CLEAR <fs_e1edpa1>.
ENDCASE. " case <fs_edidd>-segnam .
ENDLOOP. " LOOP AT i_edidd
ENDLOOP.
Here My Question is How many times the Segment E1IDLB1' & E1EDPA1' can be repeated for a single IDOC Num in I_EDIDC. I am sure segemnt 'E1IDPU5' will repeated multiple times for a single idoc num .But dont know abt other two segments.
I have to process some other function based on the value in the segments.
How can we create test data in WE19.
How can any one know that for a particular IDOC type a segment can be repated or not for a single IDOC Num.
Thanks a lot in Advance.
Best answer are always rewarded with points.
Regards
Saurabh T
07-15-2007 4:59 PM
Go To Tranction WE60, and give FINSTA01 and check your segments.
E1lDLB1>1 times(Check Min/Max>number of segment you can repeat)
E1EDPA1-->2 times.
E1IDLB1 % ( IDoc: Lockbox Data/Account
Segment definition E2IDLB1 Released from Release 40A
Optional min./max. 0000000001/0000000001
E1EDPA1 % ( IDoc: Doc.item partner information
Segment definition E2EDPA1003 Released from Release 45A
Optional min./max. 0000000001/0000000002
Thanks,
Narayan