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

menu painter

Former Member
0 Likes
820

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
Read only

Former Member
0 Likes
792

HI,

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

rgds,

bharat.

Read only

0 Likes
792

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.

Read only

0 Likes
792

hi

at selection-screen output

/* for print button*/

loop at itab

screen-input = 1

modify screen

endloop

Read only

0 Likes
792

hi

can u please tell me what is itab here ?

Read only

Former Member
0 Likes
792

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

Read only

Former Member
0 Likes
792

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

Read only

0 Likes
792

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

Read only

Former Member
0 Likes
792

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

Read only

0 Likes
792

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.