Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

code

Former Member
0 Likes
431

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

. .

. .

2 REPLIES 2
Read only

Former Member
0 Likes
405

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

Read only

0 Likes
405
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.