03-19-2009 5:41 AM
Hi,
How can I convert Smartforms to Spool then convert the Spool to PDF?
Thank!
james
03-19-2009 5:44 AM
Check this.
[Convert smartform to PDF|https://forums.sdn.sap.com/click.jspa?searchID=23725260&messageID=1857796]
03-19-2009 5:44 AM
Search the Code Gallery with Smartform. you get lots of code. May be you find some of those are helpful to you.
Regards.
Sarbajit
Edited by: Sarbajit Majumdar on Mar 19, 2009 11:14 AM
03-19-2009 5:47 AM
Hi,
Check this link out:
https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_wiki&query=smartformtopdf&adv=false&sortby=cm_rnd_rankvalue
Regards,
Qamar
Edited by: Qamar Javed on Mar 19, 2009 11:19 AM
03-19-2009 6:09 AM
Hi,
Refer this link to convert a smartform into PDF format via OTF format:-
https://wiki.sdn.sap.com/wiki/display/ABAP/SmartformSendvia+Email
Hope this helps you.
Regards,
Tarun
03-19-2009 6:13 AM
Hi,
when ever you see a print preview a spool file will be generated which you can go and check in SP01 t-code.So after you get your spool number you can follow with the below mentioned code.
Selecting details from the spool request table.
SELECT * FROM tsp01 INTO TABLE tb_spool
WHERE rqowner = sy-uname.
IF sy-subrc EQ 0.
SORT tb_spool DESCENDING BY rqcretime.
CLEAR : tb_spool.
READ TABLE tb_spool INDEX 1.
convert spool into pdf format.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = tb_spool-rqident
TABLES
pdf = tb_lines.
ENDIF.
Regards,
Chandra
03-19-2009 6:24 AM
Hi James,
If you have got your answer mark this thread as answered.
Regards,
Qamar.
03-19-2009 9:28 AM