2007 Dec 28 4:34 AM
Hello friends,
Is it possible to view the smartform (as in print/preview) and simultaneously download the pdf also?
I'm able to do only one of them.
if comment this statement, i'm able to view the SF directly but not able to download pdf.
LS_CONTROL_PARAMETERS-GETOTF = 'X'.
Anyone have a solution for this?
2007 Dec 28 4:46 AM
Hi Arun,
One Good Idea is call ur smartform 2 times. First One u call without setting LS_CONTROL_PARAMETERS-GETOTF. then u can preview ur smartform.
Now in event for back button u can call ur smartform for the second time with LS_CONTROL_PARAMETERS-GETOTF = 'X'. and other options like no_dialog or no_preview set.
Hope this solves ur problem.
Awrd Points if useful
Bhupal
2007 Dec 28 4:40 AM
Hi,
fisrt we just look the preview and then convert PDF format.
by using the standard program RSTXPDFT4.
it will convert the smartform inot pdf.
if it is helpful. please reward points,
regards,
satish.
2007 Dec 28 4:50 AM
for RSTXPDFT4 to work, i need to create spool request, which i don't want to do..
thank you.
2007 Dec 28 4:46 AM
Hi Arun,
One Good Idea is call ur smartform 2 times. First One u call without setting LS_CONTROL_PARAMETERS-GETOTF. then u can preview ur smartform.
Now in event for back button u can call ur smartform for the second time with LS_CONTROL_PARAMETERS-GETOTF = 'X'. and other options like no_dialog or no_preview set.
Hope this solves ur problem.
Awrd Points if useful
Bhupal
2007 Dec 28 5:37 AM
2007 Dec 28 4:54 AM
for downloading smartform in to PDF use function module
'CONVERT_OTF_2_PDF'
2007 Dec 28 5:01 AM
Hi,
if we call the function module twice then u can c the PDF output and as well as send it to email as attachment.
Try it.
If u satisfy reward points.
Thank you,
chandu
2007 Dec 28 5:01 AM
hi arun,
do you mean that when ever print preveiw is activated, a .pdf file will be genrated?
-maharshi