on 08-24-2008 8:47 AM
Hi all,
I am printing forms from standard output types. How do i provide an option to to the user to save th print preview as a PDF ??
>
> Hi all,
>
> I am printing forms from standard output types. How do i provide an option to to the user to save th print preview as a PDF ??
you want the option in the standard transaction ?
exactly what you want can you clarify.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adobe forms by default will give you pdf output. there is a provision to save the output also.
Adobe forms are Advanced version of Print forms.
Scripts=>Smartforms=>Adobeforms
And this is available from ECC5.0 onwards. But This needs lot of configuration(ADS - Adobe Document Services needs to be configured)
Adobe forms are almost similar to smartforms, But here there are two types in ADOBE forms one is Printforms and second Interactive form.
Like smartforms Adobeforms also generate the Function module, using that we call in our program to tigger the formoutput.
Transaction code to design the forms is SFP
If you are familiar with smartforms then it will be simple to understnad the process.
here is the link which give more information about Adobe forms.
if you are writing a stnadalone program and want to have the save option in the preview then you can use the function SSFCOMP_PDF_PREVIEW
for this you need to pass the OTF data, which you get it from the CLOSE_FORM function module.
this show the preview in PDF format and you have save button also available there.
function close_form.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" EXPORTING
*" VALUE(RESULT) LIKE ITCPP STRUCTURE ITCPP
*" VALUE(RDI_RESULT) LIKE RDIRESULT STRUCTURE RDIRESULT
*" TABLES
*" OTFDATA STRUCTURE ITCOO OPTIONAL
data: otf_table type standard table of ITCOO.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = RESULTS
TABLES
OTFDATA = otf_table. "<------this is the otf data of the script form
are you using custom program in the output type to send the mail. you can send the pdf document as eamil attachement.
if you attached a custom program to the output type then...
using the otfdata get the PDF format . For this you need the function CONVERT_OTF and get the pdf data , using this you can send it.
Mail functionality not working...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.