Skip to Content
0
Former Member
Aug 10, 2007 at 04:41 AM

printing offset values

295 Views

in the following code i want only delivery no from sdata.its length is 10.and is the first value in sdata.

i want to get only delivery no from sdata and print it inthe table along with idocno.

pz tell me how to do it

tables:edid4.

types:begin of ty_edid4,

DOCNUM type EDI_DOCNUM,

sdata type EDI_SDATA,

end of ty_edid4.

data:it_edid4 type table of ty_edid4,

wa_edid4 type ty_edid4.

select-options:s_docnum for edid4-docnum.

start-of-selection.

select DOCNUM

sdata

from

edid4 into table it_edid4

where docnum in s_docnum.

loop at it_edid4 into wa_edid4.

write:/ wa_edid4-docnum,'|',wa_edid4-sdata.

endloop.