cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms: Disable print button in print preview

Former Member
0 Kudos

Hi experts,

Is it possible to disable the print button in the smartforms preview? The print & archive button has to stay active, so the OUTPUT_OPTIONS-TDNOPRINT flag doesn't help here.

Thanks in advance.

Regards,

Tobi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can disable the print option in the print preview as follows:

populater the ssfcompop with X as shown below

ssfcompop-tdnoprint = 'X'.

ssfcompop-tdnoarch = 'X'.

Pass this component in the output options of the smartform as eg!!!

CALL FUNCTION p_w_fmnam(After gettting the form name)

EXPORTING

output_options = ssfcompop

p_kunnr = p_kunnr

TABLES

it_main = it_data

it_maincr = it_datacr

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Former Member
0 Kudos

My question

The print & archive button has to stay active, so the OUTPUT_OPTIONS-TDNOPRINT flag doesn't help here.

Your answer

ssfcompop-tdnoprint = 'X'.

ssfcompop-tdnoarch = 'X'.

Pass this component in the output options of the smartform as eg!!!

...