2009 Sep 02 9:29 AM
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
2009 Sep 02 9:36 AM
2009 Sep 02 9:40 AM
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
2009 Sep 02 9:56 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |