2008 Jan 10 5:30 AM
can any body tell me, how can I write the code for page up and page down in alv grid report without using keyboard.I have make a report(showing in alv grid formate) and I am using menu printer(se41) and gave P,P+,P-,P-- in function key.
and call this function in report using pf-status. but i didnot get the result without keyboard.while using keyboard page up and page down it is working fine.
can any body tell me, how can I write the code for page up and page down in alv grid report without using keyboard.I have make a report(showing in alv grid formate) and I am using menu printer(se41) and gave P,P+,P-,P-- in function key.
and call this function in report using pf-status. but i didnot get the result without keyboard.while using keyboard page up and page down it is working fine.
2008 Jan 10 5:32 AM
Hi Rakesh ,
Could you pease tell how have you implemanted the Page up/down functionality in your program.
Regards
Arun
2008 Jan 10 5:39 AM
Hi Rakesh,
This is the code for ur problem check it once.We have to use this code according to ur requirement ok..The compulsory condition is data is present in the internal table not in database table.If it is in database table move it to internal table first.And follow the below logic that will work fine 4 ur problem check it once.
*Local Variables
DATA: lv_temp LIKE sy-tabix.
CASE sy-ucomm.
*Fetch the FIRST Line from the Internal Table.
WHEN 'FIRS'.
READ TABLE gt_data INTO wa INDEX 1.
lv_temp = sy-tabix.
*Fetch the NEXT Line from the Internal Table.
WHEN 'NEXT'.
lv_temp = lv_temp + 1.
READ TABLE gt_data INTO wa INDEX lv_temp.
*Fetch the PREVIOUS Line from the Internal Table.
WHEN 'PREV'.
lv_temp = lv_temp - 1.
READ TABLE gt_data INTO wa INDEX lv_temp.
*Fetch the LAST Line from the Internal Table.
WHEN 'LAST'.
READ TABLE gt_data INTO wa INDEX sy-tfill.
lv_temp = sy-tfill.
Award points if helpful.
Kiran Kumar.G.A
Have a Nice Day..
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |