on 01-25-2008 12:08 PM
i have problem pls help me.
there is a data in internal table of data 1,2,3,6,7
and in another internal table data is 4,5,8,9,10
now we have to print tha output as 1,3,4,5,9,10
Neelima,
Your requiremnet is not clear .On what basis you are filtering these records.Give clear requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi murali
what my requirement is...............
antha programmatic gaane cheyali
programme output lo em chupinchalante
a = 1 2 4 6 7
b = 3 5 8 9
appudu ivi selection screen lo ivvali
then execute anagane alterrnate ga numbers execute avvali naku avtunnai gaani alternate ga raavatla.pls help cheyara.
o/p===== 132548697
Hi,
parameters : p1 default '1',
p2 default '2',
p3 default '3',
p4 default '4',
p5 default '5',
p6 default '6',
p7 default '7',
p8 default '8',
p9 default '9'.
data : begin of itaba occurs 0,
d1,
end of itaba.
data : begin of itabb occurs 0,
d1,
end of itabb.
data : begin of itabc occurs 0,
d1,
end of itabc.
data : ind1 type i,
ind2 type i.
itaba-d1 = p1.
append itaba.
itaba-d1 = p2.
append itaba.
itaba-d1 = p4.
append itaba.
itaba-d1 = p6.
append itaba.
itaba-d1 = p7.
append itaba.
itabb-d1 = p3.
append itabb.
itabb-d1 = p5.
append itabb.
itabb-d1 = p8.
append itabb.
itabb-d1 = p9.
append itabb.
ind1 = 1.
ind2 = 1.
do.
if ind1 le 5.
read table itaba index ind1.
itabc-d1 = itaba-d1.
append itabc.
ind1 = ind1 + 1.
endif.
if ind2 le 4.
read table itabb index ind2.
itabc-d1 = itabb-d1.
append itabc.
ind2 = ind2 + 1.
endif.
if ind1 ge 6.
exit.
endif.
enddo.
write : /'Internal table A content'.
loop at itaba.
write : / itaba-d1.
endloop.
write : /'Internal table B content'.
loop at itabb.
write : / itabb-d1.
endloop.
write : /'Internal table C content'.
loop at itabc.
write : / itabc-d1.
endloop.
select the record you want from these two internal and apend it to a new internal table, then loop the internal table, you will get the result you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check This:
Loop at itab1
move-corresponding itab1 to itab2 or
move itab1-field1 to itab2-field2.....
append itab1.
endloop.
Sort itab1 by field1 ascending
And then write your table itab1
Regards
Gregory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
append lines of itab1 to itab2.
you will get data in to itab2 then
put a read condition on that table and retrive the req data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.