‎2008 Dec 30 6:40 PM
this is regarding script and smartforms..
i have a list of purchase orders and each having its own number of items.
i have created a script such that each purchase order details flow in a specific sequence like
page 1 - header,
page 2 - data,
page 3 - footer,
i have created the form and got the output as i needed.
but a requirement arose that once the printout is taken, PDF files for each purchase order has to be generated separately.
like PDF1 - PO1(page1,2,3).
like PDF2 - PO2(page1,2,3).
like PDF3 - PO3(page1,2,3).
like PDF4 - PO4(page1,2,3).
is there any standard program to separate and generate different PDF from a single form in a single instant...
‎2008 Dec 30 7:05 PM
About Converting the SMARTFORM to PDf, you can search the forum, there are many replies and ides in various discussions.
now about your issue of 1 PDF per PO - This actually depends on your driver program which is calling the smartform. If its calling smartform for each PO then there is no issue directly follow any of the conversion code.
But if its sending all the data together to smartform for printing, then form will create only one Spool for all the POs coming in one table, then you will not able to break itinot pages for spool generation because PDF conversion of smartform completely depends on the spool generation.
‎2008 Dec 30 7:05 PM
About Converting the SMARTFORM to PDf, you can search the forum, there are many replies and ides in various discussions.
now about your issue of 1 PDF per PO - This actually depends on your driver program which is calling the smartform. If its calling smartform for each PO then there is no issue directly follow any of the conversion code.
But if its sending all the data together to smartform for printing, then form will create only one Spool for all the POs coming in one table, then you will not able to break itinot pages for spool generation because PDF conversion of smartform completely depends on the spool generation.
‎2008 Dec 30 7:09 PM
Hi Sunder,
you can use the spool number concept to maintain all the POs in one spool and then use the FM.
‎2008 Dec 31 7:07 AM
Hi,
In Smartform function module, you will be having an option JOB_OUTPUT_INFO in exporting parameter to get the OTF data from smartforms.
You can then use the function module CONVERT_OTF_2_PDF to convert OTF to PDF.
Regards,
Prasana