12-26-2007 6:24 AM
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.
12-26-2007 6:59 AM
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.