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

IDOC Segments

Former Member
0 Likes
538

if a segment contains another child segment..then how to track the data in the inbound program

3 REPLIES 3
Read only

abdul_hakim
Active Contributor
0 Likes
485

hi

you can use we02 or we05 for tracking the data in the segments..

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
485

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

Read only

Former Member
0 Likes
485

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