cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on Printing Samrt Form via Web Dynpro

krishnadhuriya
Explorer
0 Kudos

Hi All !

How can I print smartform that is displayed as PDF in web dynpro by clicking my custom button.

I am unable to get solution please help me.

Thanks & Regards!

Krishna

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member215610
Active Participant
0 Kudos

Hi Krishna,

Insert InteractiveForm UI element and convert your smartform into PDF and bind into the PDF source of interactiveForm UI element.

Once PDF is Displayed in output mouse over on PDF file you will get print option.

Regards,

Ragavendra

krishnadhuriya
Explorer
0 Kudos

Hi Ragavendra !

Thank you for telling but its not the solution for my problem .
Actually I need a custom button "Print All' that prints all smart forms.

Not individually by clicking print button.

Thanks !

former_member184578
Active Contributor
0 Kudos

Hi,

On Action of Print button call the the smart form Function module and pass the values to parameter OUTPUT_OPTIONS to set the print parameters.

Regards,

Kiran

krishnadhuriya
Explorer
0 Kudos

Hi Kiran I have passed that but it won't work . No new spool request is created in SPAD transaction.
Although when I execute same code in ABAP Report it works.

Thanks !

former_member184578
Active Contributor
0 Kudos

Hi,

The printer which you have passed might be using a frontend printing mechanism which only works from SAP GUI. You need to configure the full printing queue from server for background printing.

Regards,

Kiran

krishnadhuriya
Explorer
0 Kudos

Hi Kiran !

Can you please tell me how to do that..
I would also like to tell you that same piece of code works in ABAP Repoort .

ramakrishnappa
Active Contributor
0 Kudos

Hi Krishna,

You can print pdf by using the PRINT option on PDF document.

Are you not able to see the print button on PDF?

Regards,

Rama

krishnadhuriya
Explorer
0 Kudos

I don't need to print via that button .

Basically I have to print 2  different smartform in a single click of Print All Button.

ramakrishnappa
Active Contributor
0 Kudos

Hi Krishna,

Unfortunately, standard WD print logic will not help you in this case.But you can use PRINT option of browser, to print whole application.

Hope this helps you.

Regards,

Rama