cancel
Showing results for 
Search instead for 
Did you mean: 

pls important

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Neelima,

Your requiremnet is not clear .On what basis you are filtering these records.Give clear requirement.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

hi srikanth problem solve iyndi kaani output lo y u taken a ,b parameters. adi enni values enter chesina enter a numeric antondi adi teesesthe final values vastanai. thanks any way . naku mamulga solve ipoindi.thanks and iraetd 10- for u

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

hi gregory,

thanks,but i need complete code.there are no internal tables.we have to enter the entire thing at selection screen and outputshould be appear.

like....in the selectionscreen 1,3,5,6

2,4.7,8,9

and o/p----


14589

Former Member
0 Kudos

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

Former Member
0 Kudos

i want proper coding pls naresh can u provide.