09-28-2007 6:18 AM
hi gurus
iam faceing problem of removeing print option in output list.( clasic report)
i have used set pf-status '100'.
also
DATA: buttons_itab TYPE TABLE OF sy-ucomm.
START-OF-SELECTION.
REFRESH buttons_itab.
APPEND 'PRIN' TO buttons_itab.
set pf-status '100' excluding buttons_itab.
But print option is not disabled.
09-28-2007 6:27 AM
HI,
write the code in at selection-screen output event or initialization.
rgds,
bharat.
09-28-2007 6:34 AM
hi
i ahve even tried in initialization , and at selection screen output.
when i used at selection screen output, print option is disabled in selection screen and again its enabling in output list.
09-28-2007 6:37 AM
hi
at selection-screen output
/* for print button*/
loop at itab
screen-input = 1
modify screen
endloop
09-28-2007 6:39 AM
09-28-2007 6:28 AM
Hi,
The screen for report output is custom screen or system generated....
if system generated then i doubt you can suppress it...
If the hint is useful Say thanks by reward .
Regards,
Prabhu Rajesh
09-28-2007 6:34 AM
Hi Sudheer,
If its a report program, then simply remove the PRIN button from pf-status.
No need to write exculding etc.
Best regards,
Prashant
09-28-2007 6:36 AM
Hi
I have tried by not adding Print option is menu painter ,but its a default one, even if u r not giving print , find , find+ in menu paint ,it appears in output list
09-28-2007 6:41 AM
hi ,
when you say excluding button, this removes the button completely.
instead, if you want to disable button..
Set pf-status 'ABC' excluding itab.
double click on ABC, goto -> attributes -> push button assignment -> display all.
the buttons whose fcodes are passed to itab gets <i><b>grayed out (gets inactive</b>)</i>.
depending on your condition, populate itab with the fcodes required.
<b>Reward Points if it is helpful.</b>
Thanks & Regards
ilesh 24x7
09-28-2007 6:55 AM
Hi
i want to remove print button complelty ,but 'excluding ' is not working for print button ,its working for others like save , back, .
the buttons right to print are comming even if i have not defined in menu painter.