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

Tabel entries

Former Member
0 Likes
556

Hi All,

I have a table enteris like this.


table one
matnr descriptione  launguade
xxx   test                 de
xxx  test1                en
yyy  test23              de
yyy test34               en


result table 

matnr descriptione desciptiond
xxxx  test               test1
yyy    test23            test34

if the material has two type of texts have to get it inthe same line..

can any one provide me some logic?

Tnx,

jOE

Tnx,

Joe

Hi All,

I have a table enteris like this.


table one
matnr descriptione  launguade
xxx   test                 de
xxx  test1                en
yyy  test23              de
yyy test34               en


result table 

matnr descriptione desciptiond
xxxx  test               test1
yyy    test23            test34

if the material has two type of texts have to get it inthe same line..

can any one provide me some logic?

Tnx,

jOE

Tnx,

Joe

3 REPLIES 3
Read only

Former Member
0 Likes
522

Hi,

look here:

Regards, Dieter

Read only

Former Member
0 Likes
522

Hi,

Try like this,


loop at itab1.
v_ind = sy-tabix - 1.
read table itab into wa index v_ind.
if itab-matnr = wa-matnr.
move-coressponding wa to itab_result.
itab_result-desciptiond = itab1-desciptione.
append itab_result.
clear itab_result.
endif.
clear wa.
endloop.

Regards,

Vikranth

Read only

Former Member
0 Likes
522
types : begin of gty_itab2,
              matnr type matnr,
              desc1 type string,
              desc2 type string,
            end of   gty_itab2.

data: itab2 type standard table of gty_itab2,
        is type gty_itab2.

loop at itab1 into is1.
at new matnr.
     is2-matnr = is1-matnr.
     is2-desc1 = is1-desc.
endat.

at end of matnr.
   is2-desc2 = is1-desc.
   append is2 to itab2.
   clear is2.
endat.
clear : is1.
endloop.