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

Remove Print Button from List Reports

ajay_sharma10
Participant
0 Likes
861

Hello Friends ,

Friends i just want to remove the print option button from the list report ..

Because we don't wan't that user take print out of few selected list reports

If you provide code i will be thankful .

Thanks

cool..

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
820

Yes , you can exclude the button.

Check the IT_EXCLUDING table and build this table for PRINT.

Fill the fcode for print ans padd it to teh FM

Hi Ajay,

Use the following code:

Data: Begin of i_ucomm occurs 0,
            ucomm type sy-ucomm,
         End of i_ucomm.

Refresh: I_UCOMM.

IF <Your Condition>.
   I_ucomm-ucomm = 'PRINT'.
   Append i_ucomm.
   SET PF-STATUS "<PFNAME>" 
          EXCLUDING i_ucomm.
    .....
    .....

ELSE.
    SET PF-STATUS "<PFNAME>".
ENDIF.

Rgds,

Ramani N

5 REPLIES 5
Read only

Former Member
0 Likes
820

Hi,

Try to create your own pf status and remove print option from your custom pf status.

Thanks

Mohit

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
821

Yes , you can exclude the button.

Check the IT_EXCLUDING table and build this table for PRINT.

Fill the fcode for print ans padd it to teh FM

Read only

former_member229729
Active Participant
0 Likes
820

Hi Ajay,

Use the following code:

Data: Begin of i_ucomm occurs 0,
            ucomm type sy-ucomm,
         End of i_ucomm.

Refresh: I_UCOMM.

IF <Your Condition>.
   I_ucomm-ucomm = 'PRINT'.
   Append i_ucomm.
   SET PF-STATUS "<PFNAME>" 
          EXCLUDING i_ucomm.
    .....
    .....

ELSE.
    SET PF-STATUS "<PFNAME>".
ENDIF.

Rgds,

Ramani N

Read only

0 Likes
820

Thanks dear ,

But i am using the type i program and not the module pool .

In my case first selection screen comes then then after filling parameter value output comes as a list output .

My need is to remove the print button ..

Read only

Former Member
0 Likes
820

Hi ,

you can create your own PF-Status by copying it from any standard PF-Status. Then you remove the print button. Or else you can exclude that button programatically and use

SET PF-STATUS excluding itab.

Regards,

Anil