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 spool content to pdf

Former Member
0 Kudos

Hi experts,

I have created a program that uses several smartforms to edit spool content according to the value of an input parameter, for example :

if p1_nbex GT 0.

wlv_cle_facture-sform = 'ZSF_LB_INVOICE_Z101'.

where ZSF_LB_INVOICE_Z101 is one of the custom smartforms that I have created.

Now I have created another parameter in the selection screen (p_pdf) as a checkbox and I want the spool content to be converted to pdf if the checkbok is checked.

I have read the possibility of using the program RSTXPDFT4 to convert to pdf, on the other hand I have no clue how to do this; can anybody help? is there another method?

Other question : How do I tell the program the path for storing the newly-created pdf?

Any help will be rewarded,

Many thanks

Cédric K.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

CONVERT_ABAPSPOOLJOB_2_PDF

CONVERT_OTFSPOOLJOB_2_PDF

use this function modules , chatch the spool number and do it.

5 REPLIES 5

valter_oliveira
Active Contributor
0 Kudos

Hello.

Check this thread:

Check standard report RSTXPDFT4.

Regards.

Valter Oliveira.

Former Member
0 Kudos

CONVERT_ABAPSPOOLJOB_2_PDF

CONVERT_OTFSPOOLJOB_2_PDF

use this function modules , chatch the spool number and do it.

former_member673464
Active Contributor
0 Kudos

hi,

In your program you can involve the program RSTXPDFT4 using the submit and return statement .It will automatically give up a pop-up for address of file to be stored with default path.

Regards,

Veeresh

former_member705122
Active Contributor
0 Kudos

Hi,

RSPO_DOWNLOAD_SPOOLJOB

Download the spool from a program to a file. Requires spool number.

RSPO_RETURN_ABAP_SPOOLJOB

Fetch printer spool according to the spool number informed.

Regards

Adil

Former Member
0 Kudos

Problem solved