cancel
Showing results for 
Search instead for 
Did you mean: 

Disable PRINT button in POP UP when printing Smartform

sudhir_uppalapati
Participant
0 Kudos

Hello All,

When i execute my smartform driver program i get popup for print and print priview, i want to disable the PRINT button in that popup screen andonly PRINT PREVIEW button should be visible and when i press on print preview i can see the preview and their i should be able to print the form.

I am able to do disable the PRINT button in popup but when i give print from print preview it is printing the entire SAP SCREEN (LIke a Screen Shot) which is visible at that time. I need to print only my form.how to achieve this.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

To disable the print option in smartform by passing the OUTPUT_OPTIONS parameters

ls_composer_param-tdnoprint = 'X'.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

regards,

jagadeesh.

sudhir_uppalapati
Participant
0 Kudos

Hi,

I just want to disable the print button only in the pop up not in the print preview. I should be able to print from the print preview.

former_member205763
Active Contributor
0 Kudos

I dont this that will be possible using any control options or output options.

why do you require it anyways.

sudhir_uppalapati
Participant
0 Kudos

User want to 1st see the Print preview and then he want to take the print from there..so he want to disable the PRINT in POP UP.

former_member205763
Active Contributor
0 Kudos

You can disble the print button specifically, so what you can do is disable the entire popup.

Let the user directly goto preview screen and then he can give the print.

sudhir_uppalapati
Participant
0 Kudos

yes..I have already worked on that..I am able to disable the entire POP UP..But after this when i am printing the form from print preview i am getting the Print of the Entire Screen Like when we take a screen shot of any screen. The Entire SAP Screen is getting printed with Menu bar,title bar etc....

former_member205763
Active Contributor
0 Kudos

thats strange, that should not happen, print button in the preview screen prints the form only

Can u show the code

Edited by: Kartik Tarla on Oct 8, 2009 12:33 PM

sudhir_uppalapati
Participant
0 Kudos