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

DOUBT IN PROGRAM

Former Member
0 Likes
510

Hi experts

i have a problem, i want to display material with order wise so in the select options i gave the range. but in out put it is displaying only the first record.

for example i have the range of 1 to 10 order no. but it is displaying only the 1st record. how to print all the records.

Point will be sure.

Thanks

Gowri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

Hi

It because of not using loop.

Ur selecting records from database table and put it into a internal table right.

While displaying this result in screen u should loop that internal table.

Ex;

Data: Begin of itab.

-


end of itab.

Start-of-selection.

Select matnr.......... from mara into table itab where...........

End-of-selection.

Loop at itab.

Write:/ Itab-matnr ........

Endloop.

I think this will solve ur problem. If not post ur code. i will solve it..

Need ur reward points if its useful

Regards

Ravi

3 REPLIES 3
Read only

Former Member
0 Likes
494

Hi

It because of not using loop.

Ur selecting records from database table and put it into a internal table right.

While displaying this result in screen u should loop that internal table.

Ex;

Data: Begin of itab.

-


end of itab.

Start-of-selection.

Select matnr.......... from mara into table itab where...........

End-of-selection.

Loop at itab.

Write:/ Itab-matnr ........

Endloop.

I think this will solve ur problem. If not post ur code. i will solve it..

Need ur reward points if its useful

Regards

Ravi

Read only

Former Member
0 Likes
493

paste ur code,

hope u forgot use loop.

regards,

prabhu

Read only

Former Member
0 Likes
493

hi,

can u paste your code here.

regards,

Navneeth K.