‎2008 Feb 11 7:32 AM
want to give the input in internal table at runtime.
for ex) i want to give the 50 records at runtime.
‎2008 Feb 11 7:35 AM
‎2008 Feb 11 7:40 AM
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>);
}
‎2008 Feb 11 7:43 AM
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.
}
‎2008 Feb 11 7:38 AM
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
‎2008 Feb 11 7:41 AM
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....
‎2008 Feb 11 7:54 AM
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
‎2008 Feb 11 7:42 AM
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
‎2008 Feb 11 7:56 AM
‎2008 Feb 11 8:20 AM
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.