cancel
Showing results for 
Search instead for 
Did you mean: 

how to use split or offset

Former Member
0 Kudos

My internal table is:-

DATA: BEGIN OF o_list OCCURS 0,

output(1500) TYPE c,

END OF o_list.

so data store like :-

-


<

|Material Material Description Plnt Name 1 <

|MvT S Mat. Doc. Item Pstng Date Quantity in UnE EUn Reference D<

-


<

|MvT S Mat. Doc. Item Pstng Date Quantity in UnE EUn Reference D<

-


<

|G4507 Juice-Diet (E) 1501 NPIL Vas<

|351 4901728815 2 12.01.2008 3,000 PC <

now how to split this data i want this data columan wise (field wise)

Edited by: krupa jani on Sep 26, 2008 1:55 PM

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

close thread

Former Member
0 Kudos

Hi,

Try like this:

data: begin of o_list occurs 0,

output(1500) type c,

end of o_list.

data: begin of i_list occurs 0,

fld1(20) type c,

fld2(50) type c,

end of i_list.

i_list-fld1 = o_list-output+0(20).

i_list-fld2 = o_list-output+20(50).

append i_list.

loop at i_list.

write:/ i_list-fld1,

/ i_list-fld2.

endloop.

Regards,

Bhaskar

Former Member
0 Kudos

hi,

Split the obtained values at the space.... and pass them into the internal table fields one by one before that internal table of having fields upto 20 them pass them to 20 fields and concate nate required ones by looping then declared internal table.

cheers,

bahma

Former Member
0 Kudos

Hi,

This below data stored in some structure format.

Same structure formal your have to refer and just move work are to internal table and append it.

like the below

Types: Begin of t_type,
          bwart type mkpf-bwart,
          mblnr type mkpf-mblnr,
          posnr type...,
         end of t_type.
DATA : wa type t_type,
           itab type standard table of t_type.
          wa_type = "|Material Material Description Plnt Name 1 "
         append wa to itab.

Regards,

Nandha

Former Member
0 Kudos

Krupa

This is not possible...

Thanks

Amol Lohade