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: 

menu painter

Former Member
0 Kudos

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.

9 REPLIES 9

Former Member
0 Kudos

HI,

write the code in at selection-screen output event or initialization.

rgds,

bharat.

0 Kudos

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.

0 Kudos

hi

at selection-screen output

/* for print button*/

loop at itab

screen-input = 1

modify screen

endloop

0 Kudos

hi

can u please tell me what is itab here ?

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

0 Kudos

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

former_member387317
Active Contributor
0 Kudos

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

0 Kudos

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.