‎2006 Oct 06 8:04 AM
Sir I am srikanth frm HYDERABAD
and a basic learner in ABAP Programing
and i request to sent the code for following program
->Create an internal table as below
1 2
3 4
4 6
7 10
11 16
. .
. .
‎2006 Oct 06 8:08 AM
Hi,
Welcome to SDN.
data: begin of itab occur 0,
a1(10) type c,
a2(20) type c,
end of itab.
itab-a1 = 1
itab-a2 = 2
append itab.
itab-a1 = 1
itab-a2 = 2
append itab.
itab-a1 = 3
itab-a2 = 4
append itab.
itab-a1 = 5
itab-a2 = 6
append itab.
itab-a1 = 7
itab-a2 = 8
append itab.
loop at itab
Write: / itab-a1 itab-a2
Mark useful answers.
Regards
Divakar
‎2006 Oct 06 8:24 AM
data: no(3) type n.
data: begin of itab occurs 0,
no1(3) type c,
no2(3) type c,
end of itab.
start-of-selection.
itab-no1 = 0.
do 40 times.
itab-no1 = itab-no2 + '1'.
itab-no2 = itab-no1 +'1'.
append itab.
enddo.
loop at itab.
write:/ itab-no1,itab-no2.
endloop.