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: 

Disable the Print button in standard list

former_member220801
Participant
0 Kudos

I would like to disable the printing function in standard list. I have tried to create a customed gui status with nothing set in the print icon in the standard toolbar and then call 'set pf-status'.

However, the print button is still active.

I have even tried to create a new gui status without copying from the standard one(SAPMSSY0 STLI). I find that there are some functions that will be automatically set active (print, find, find next).

So is there any way that I can disable the printing function? Thanks a lot

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi gundam,

double click on ur PF status , in tyhe menu goto>Attributes>Push button Assignment-->display all

then in ur set pf status exclude that FCODE of print button

SET PF-STATUS 'ZTEST' excluding itab.

5 REPLIES 5

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Continued from this

Regards,

Rich Heilman

Former Member
0 Kudos

Hi gundam,

double click on ur PF status , in tyhe menu goto>Attributes>Push button Assignment-->display all

then in ur set pf status exclude that FCODE of print button

SET PF-STATUS 'ZTEST' excluding itab.

0 Kudos

yes, I have tried this...but still can't work

0 Kudos

oh...it works now.

Rich's solution is fine.

Thanks!

Former Member
0 Kudos

To achieve this you need to create your own custom pf-status. The tcode for creating new pf-status is se41. Goto SE41, enter the program name and click create.

Enter the menu bar buttons, application tool bar button and Function key as per your requirement. Active the pf-status. Once the pf-status is created, use this in your program using the statement.

set pf-status 'ZPF'.

Regards