Application Development and Automation 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: 
Read only

Convert spool content to pdf

Former Member
0 Likes
1,262

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
Read only

Former Member
0 Likes
1,005

CONVERT_ABAPSPOOLJOB_2_PDF

CONVERT_OTFSPOOLJOB_2_PDF

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

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

5 REPLIES 5
Read only

valter_oliveira
Active Contributor
0 Likes
1,005

Hello.

Check this thread:

Check standard report RSTXPDFT4.

Regards.

Valter Oliveira.

Read only

Former Member
0 Likes
1,006

CONVERT_ABAPSPOOLJOB_2_PDF

CONVERT_OTFSPOOLJOB_2_PDF

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

Read only

former_member673464
Active Contributor
0 Likes
1,005

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

Read only

Former Member
0 Likes
1,005

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

Read only

Former Member
0 Likes
1,005

Problem solved