10-18-2006 11:30 AM
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.
10-18-2006 11:33 AM
How did you create your own pf-status? Copy from standard?
Were they working without the extra button?
Regards,
Ravi
10-18-2006 11:34 AM
Hi
Perhaps you have replace the function code of those functionalities: they should be:
P--
P-
P+
P++
Max
10-18-2006 11:53 AM
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.
10-18-2006 12:00 PM
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
10-18-2006 12:22 PM
There was some other error.i got it.
Thanks everyone for assisting.
04-11-2007 3:43 PM
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..