2007 Oct 29 8:27 AM
hi
i want to have code that will take only 20 records on outputlist at a time and when pressed button next 20 records to be displayed.
thanx
rocky
hi
i want to have code that will take only 20 records on outputlist at a time and when pressed button next 20 records to be displayed.
thanx
rocky
2007 Oct 29 8:29 AM
loop at itab.
if sy-tabix gt 20.
exit.
else.
write:/.......
endif.
endloop.
apply same logic for 40 and above and soon.
Message was edited by:
abapuser
2007 Oct 29 8:34 AM
Hi.
(global declaration)
data: v_var type i.
(in your program)
v_var = sy-tabix + 20.
loop at it_tab into wa_tab.
if sy-tabix > v_var.
exit.
else.
write: / wa_tab.
endloop.
2007 Oct 29 8:40 AM
//first time
cnt =1.
loop at itab.
if sy-tabix < =20*cnt and sy-tabix >= 20 * (cnt - 1 ).
write.....
endif.
endloop.
//on next button press
cnt = cnt + 2
2007 Oct 29 11:40 AM
hi rocky,
data:
w_no1 type i,
w_no2 type i.
preform list_output.
at user-command.
if sy-ucomm eq 'fcode'.
w_no1 = w_no1 + 20.
w_no2 = w_no2 + 20.
perform list_output.
form list_output.
loop at itab.
if sy-tabix le w_no1 and sy-tabix ge w_no2.
write:/.....
endif.
endloop.
endform.
try this logic it will work when u click next button.
REWARD IF USEFULL.
2007 Oct 29 11:41 AM
ROCKY,
GIVE W_NO2 DEFAULT VALUE 20.
IT WILL WORK
REWARD IF USEFULL.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |