Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

pdf attachment to mail

Former Member
0 Kudos

Hi All,

I have a requirement in that i have to convert the script into pdf and i have to send that pdf to mail as an attachment,

i am using convert_otf fm to convert the script into pdf and

SO_NEW_DOCUMENT_ATT_SEND_API1 fm to send the mail

when i am executing the program a dialogue box is opening (e.g like when we execute a script , output device )

in my requirement that dialogue box should not appear

can any one tell me how to do that.


Former Member
0 Kudos

U can contro the print options

With the function modules PRINT_TEXT and OPEN_FORM, you can set output formatting and print control using the parameter OPTIONS. The data you pass to this parameter must have the structure ITCPO. The fields of this structure come from the areas SAPscript, the spool, and SAPcomm. Some of these fields can be changed by the user on the selection screen, if you requested it using the parameter DIALOG with the above function modules. The print program evaluates these changes using the corresponding fields of the parameter RESULT.

check the structures ITCPP & ITCPO

TDDEST where u can give the prineter name

in that u have TDIMMED pass this AS 'X'.

and u can results as desired.