‎2006 Jul 20 7:07 AM
if a segment contains another child segment..then how to track the data in the inbound program
‎2006 Jul 20 7:11 AM
hi
you can use we02 or we05 for tracking the data in the segments..
Cheers,
Abdul Hakim
‎2006 Jul 20 7:28 AM
Hi,
U can use the statments
Pass the idoc data from EDIDD in int table lit_idoc_data.
Then
Suppose S69 is parent of S72.
DATA: lv_psgnum TYPE idocdsgnum.
Read lit_idoc_data INTO wa_idoc_data
WHERE segnam = lc_s69.
lv_psgnum = wa_idoc_data-segnum.
CLEAR wa_idoc_data.
Read table lit_idoc_data INTO wa_idoc_data
WHERE segnam = lc_s72
AND psgnum = lv_psgnum.
Rgds,
Prakash
‎2006 Jul 20 8:28 AM
Idoc Structure.
---Idoc Number (DOCNUM)
---Segment Number (SEGNUM)
---Segment Name (SEGNAM)
---Parent Segment Number (PSGNUM ).
---Segment DATA ( SDATA)
---Segment Number
This is sequential Number Given to very Segment.
irrespective of segment.
if there 100 segments are comming in idoc ;
sequence number will start from 1 t0 100.
---Segment Name
Segment name is the qualifier for the DATA stored in SDATA.
since SDATA is 1000 Char u can store data
independent of segment.
U identify the segment Name and Move the SDATA to the
corresponging Segment Structure.
---Parent Segment
It specifies who is the parent of that particular segment.
EX
SGNUM-PSGNUM--SEGNAM--SDATA
00001---000000
00002---000000
00003---000002
00004---000002
00005---000004
00006---000004
00007---000000
00008---000000
00009---000008
00010---000009
00011---000010
This means Segement is organised in This Manner
( Condsider Herarchy has parent-child relatioship )
-
00001 " At parent Level parent 0
-
00002 " At parent Level parent 0
-
00003 " child of 2
-
00004 " child of 2
-
00005 " Child of 4
-
00006 " Child of 4
-
00007 " At parent Level parent 0
-
00008 " At parent Level parent 0
-
00009 " Child of 8
-
00010 " Child of 9
-
00011 " Child of 10
if u want know the child of Seg 0002 then
read table idoc
where psgnum = 0002.
and so on.
Childs parent segnumber is always = segment number of parent