Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Smartforms to spool to PDF

Former Member
0 Kudos

Hi,

How can I convert Smartforms to Spool then convert the Spool to PDF?

Thank!

james

7 REPLIES 7

GauthamV
Active Contributor
0 Kudos

Check this.

[Convert smartform to PDF|https://forums.sdn.sap.com/click.jspa?searchID=23725260&messageID=1857796]

sarbajitm
Contributor
0 Kudos

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

I355602
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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

qamar_javed
Participant
0 Kudos

Hi James,

If you have got your answer mark this thread as answered.

Regards,

Qamar.

Former Member
0 Kudos