Skip to Content
0
Jun 11, 2009 at 03:54 AM

internal table

75 Views

i m writing simple report ...in internal (itab) i have 4 fields...below is internal table

X1 X2 X3 X4

880 770 112 4

881 771 113 5

881 771 114 6

882 772 115 7

882 772 116 8

883 773 117 9

883 773 118 7

883 773 119 7

i want the logic to retrieve the above fields i need to write the code based on X1 and X2 fields...A separate internal table need to be passed (itab1)for each combination of X1 & X2 parties. A X1 may have several X2 assigned to it. Lines having same combination of X1- X2 should be added to be passed an enty in internal table (itab1). A separate record will be passed if a line has different X1 even if the X2 remains same

i want the above internal table to be displayed like this..

itab1

X1 X2 X3 X4

880 770 112 4

then passing to some tcode and clearing itab1

then

881 771 113 5

881 771 114 6

then passing to some tcode and clearing itab1

882 772 115 7

882 772 116 8

then passing to some tcode and clearing itab1

883 773 117 9

883 773 118 7

883 773 119 7

then passing to some tcode and clearing itab1

pls hlp