‎2009 Oct 27 2:04 PM
Hi all,
I have internal tbale itab, how to spit line of itab in one line with same key ( matnr)
2 0 0 32000212 2
1 0 0 32000213 1
1 0 0 32000214 1
1 0 0 32000215 1
1 0 1 32000215 2
3 0 0 32000216 3
record 32000215 must be
1 0 1 32000215 2
‎2009 Oct 27 2:06 PM
Loop at itab and use at new matnr or at change of matnr then move it to new table or structure based on your requirement.
‎2009 Oct 27 2:22 PM
Hello,
May be if you can specify how you want to output the internal table it will help in better interpretation.
If you want to download, a suggestion might be to create another table of type STRING. And proceed accordingly.
BR,
Suhas
‎2009 Oct 27 2:24 PM
‎2009 Oct 27 2:26 PM
Hello Nick,
Then we have a case in hand. Can you please be more specific when you want to split, i mean on what conditions?
BR,
Suhas
‎2009 Oct 27 2:45 PM
in case that matnr is same in two lines as in example above
it should be one line
‎2009 Oct 27 2:49 PM
But which one? the last one?
Anyway u need to check the internal table before showing it by ALV and delete the records having the material code
Max
‎2009 Oct 27 3:11 PM