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

smartform attachment

Former Member
0 Likes
550

hello

I need one help, my requirement is :

my Z program have selecting selection screen and based on the input entered in screen,

samrtform is callied...till this is it done. now they want to see in smartform in print prview

and if it is ok than it is send as email attachment to user.

kindly tell me how that print prview and email work simultaneously.

it is going as attachmet but not coming in print preview.

kindly suggest.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510

hi Anjali ,

you need to pass the following parameters to the FM of the smart form.

CONTROL_PARAMETERS-PREVIEW = 'X'.

see this link for print priview

and then use this output to be attach and to send as email using FM SO_DOCUMENT_SEND_API1 .

thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
511

hi Anjali ,

you need to pass the following parameters to the FM of the smart form.

CONTROL_PARAMETERS-PREVIEW = 'X'.

see this link for print priview

and then use this output to be attach and to send as email using FM SO_DOCUMENT_SEND_API1 .

thanks.

Read only

former_member212005
Active Contributor
0 Likes
510

Please refer the below thread....it says how to preview the smartform when called...........

How can I make the Smart Forms to display a print preview by default without displaying the popup for print parameters?

https://wiki.sdn.sap.com/wiki/display/ABAP/Smart+Forms?showChildren=false

What you can do is, keep a button in the application tollbar...which says to Email...

Once the button is clicked, the email should go....

Please refer the below thread for sending the smartform as attachment..

https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment

https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat

Hope it helps!

Read only

0 Likes
510

is this issue solved or still in open?