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

Page up and down without using keyboard

Former Member
0 Likes
433

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.

2 REPLIES 2
Read only

Former Member
0 Likes
395

Hi Rakesh ,

Could you pease tell how have you implemanted the Page up/down functionality in your program.

Regards

Arun

Read only

Former Member
0 Likes
395

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..