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

Spool to pdf

Former Member
0 Likes
971

I am having two different formats of spool:</b>

<i><b>1. OTF (Generated from smartforms/SAP Scripts)

2. ABAP List (Using write statments in ABAP)</b></i>

Requirement is to merge them together first and then convert into pdf. user doesn't want to see individual files. Function modules are there to convert each into pdf format individually but how do I combine them together & generate 1 pdf file itself in ABAP.

Thanks.

I am having two different formats of spool:</b>

<i><b>1. OTF (Generated from smartforms/SAP Scripts)

2. ABAP List (Using write statments in ABAP)</b></i>

Requirement is to merge them together first and then convert into pdf. user doesn't want to see individual files. Function modules are there to convert each into pdf format individually but how do I combine them together & generate 1 pdf file itself in ABAP.

Thanks.

5 REPLIES 5
Read only

Former Member
0 Likes
861

Hi

see the std report RSTXPDFT4 to convert spool to pdf

Max

Read only

0 Likes
861

The function module CONVERT_ABAPSPOOLJOB_2_PDF will generate one pdf & the function module CONVERT_OTFSPOOLJOB_2_PDF will generate another pdf. Its fine till here. It is from here that the problem arises. I am not able to merge them together into one file and download the complete pdf file(having both in it). (Note : Appending one into another only downloads the last one )

I re-opened another post because the previous post was answered in a complete different direction and it wld be difficult for anyone to understand what I am trying to say, though I strssed enogh on the fact of different formats into one pdf file. Anyways I will close it.

Thank you.

Shiv

Read only

0 Likes
861

Hi there,

Did you find a solution for this issue - actually have the same requirement ...

Thanks,

Stevne

Read only

Former Member
0 Likes
861

Hi Shiv,

Check this link.

Regards,

Raj

Read only

Former Member
0 Likes
861

Hello,

Not sure whether this works...but you can give a try...

convert the individual spools to PDF by FMs:

CONVERT_OTFSPOOLJOB_2_PDF and CONVERT_ABAPSPOOLJOB_2_PDF.

The output data in tables parameter: PDF is appended into new IntTab from both the FMs.

then make a download from the merged IntTab to desktop.

Best Regards, Murugesh AS