Application Development 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: 

URGENT : Page Down button P+ not working

Former Member
0 Kudos

Hi ,

I have developed an ALV report with my customized PF-Status to provide one extra button.

All the buttons are wokring fine except the Page down,Page up buttons on the top.

Why is it so ?

Any hints will be gratefully appreciated.

Many many thanks,

Sandip.

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

How did you create your own pf-status? Copy from standard?

Were they working without the extra button?

Regards,

Ravi

Former Member
0 Kudos

Hi

Perhaps you have replace the function code of those functionalities: they should be:

P--

P-

P+

P++

Max

0 Kudos

Yes,I copied the STANDARD one and added my button.

They were not shown disabled before.

Now after my addition they are enabled but are not working.

Also,the functionalities are as specified by Max.

0 Kudos

Hi Sandip,

Perhaps the below code, for scrolling the buttons can help u if the PF status and functionlity is already in place-

module scroll_tab input.

data: v_lines1 type sy-loopc.

clear: ok_code,

save_ok.

ok_code = sy-ucomm.

save_ok = ok_code.

case save_ok.

when 'PU'. "Page Up

tc1-top_line = tc1-top_line - lv_looplines.

if tc1-top_line < 1.

tc1-top_line = 1.

endif.

when 'PD'. "Page Down

tc1-top_line = tc1-top_line + lv_looplines.

if tc1-top_line > lv_lines.

tc1-top_line = ( lv_lines - lv_looplines ) + 1.

endif.

when 'PTU'. "Page total up

tc1-top_line = 1.

when 'PTD'. "Page total down

  • TC1-TOP_LINE = ( LV_LINES - LV_LOOPLINES ) + 1.

describe table it_vbak lines v_lines1.

tc1-top_line = v_lines1.

endcase.

endmodule. " SCROLL_TAB INPUT

-Sookshma

0 Kudos

There was some other error.i got it.

Thanks everyone for assisting.

0 Kudos

Hi Experts,

Where should I insert the sample code above. I am also experiencing the same problem in ALV GRID report of mine.

Thanks a lot!

Alezandro..