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

input in internal table at runtime

Former Member
0 Likes
1,032

want to give the input in internal table at runtime.

for ex) i want to give the 50 records at runtime.

9 REPLIES 9
Read only

Former Member
0 Likes
1,005

What do u mean? can you explain some more clear.

Read only

0 Likes
1,005

sorry,

i want to give the input in internal table at runtime.

is it possible?

if s give the small example programs

for ex) i want to add the 50 records in internal table at runtime.

just like as in c

struct a

{

int no;

};

main()

{

static struct a a1;

for(i=0,i<50,i++)

{

scanf("%d",&a1.no<i>);

}

Read only

0 Likes
1,005

struct a

{

int no;

};

main()

{

static struct a a1;

for(i=0,i<50,i++)

{

scanf("%d",&a1.no<i>); *get the input for 50 times.

}

Read only

Former Member
0 Likes
1,005

Hi

While debugging , u can give the dat to an internal table , and save the data ther..

Do u mean this ?

Or else what is ur requirement ?

Regards

Karthik

Read only

Former Member
0 Likes
1,005

Can u bit clear

see for example if u have a internal table with one field to hold numbers to have use given no of even numbers

for that i will write code.

parameters: p_no type i,

data:

begin of t_tab occurs 0,

no type i,

end of t_tab.

do p_no times.

t_tab-no = t_tab-no + 2.

append t_tab.

clear t_tab.

enddo.

now in the runtime ony how many records u want u can sned those many into u r table...

plzz reward if it is usefull..

plzz dont forget to reward....

Read only

0 Likes
1,005

i work it out program now .

while i give the input for 5 times.

they outputs should be display 2 for 5 times.

sorry ,

i want to give the distinct input for 5 times.

after i gave the input.

i will be read with loop at statement.

say for ex.)

1 for first times.

2 for first times

.

.

.

5 for last times

loop at t_tab

write:/ t_tab-no;

endloop.

it should display as

1

2

3

4

5

Read only

Former Member
0 Likes
1,005

Hi,

In the debugging mode click on TABLE button in the upper available buttons, then give internal table name and press enter, then after you have 4 push button at bottom of screen those are CHANGE,INSERT,APPEND and DELETE. Now you can able to process your internal table at runtime.

Rgds,

Bujji

Read only

0 Likes
1,005

please give some coding for internal table

Read only

0 Likes
1,005

Hi,

parameters: p_no type i,

data:

begin of t_tab occurs 0,

no type i,

end of t_tab.

do p_no times.

t_tab-no = t_tab-no + 2.

append t_tab.

clear t_tab.

enddo.