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

Converting the Long Text into PDF format

abdul_hakim
Active Contributor
0 Likes
1,598

Hi Friends,

I need to convert the long texts into PDF format.How to achieve this??

Thanks,

Abdul Hakim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,425

Hi

You should print the long text and then convert its spool by report RSTXPDFT4.

Max

Hi Friends,

I need to convert the long texts into PDF format.How to achieve this??

Thanks,

Abdul Hakim

7 REPLIES 7
Read only

athavanraja
Active Contributor
0 Likes
1,425

option1. generate a smart form or a normal abaplist and use the smart form or abaplist spool to creat the pdf.

option2. if you dont want to follow the above step you need to go for some third party tools.

Regards

Raja

Read only

0 Likes
1,425

Hi Raja,

Thanks for your reply.

How can i proceed with ABAP List option.Can you please give me a code for this.

Thanks,

Abdul Hakim

Read only

0 Likes
1,425

using FM 'READ_TEXT', u can get the long text and WRITE as ur list output. ( normal write statement ). Then u generate a spool no. for the output u c by printing it. The same spool no. u can use to generate the PDF using RSTXPDFT4.

Hope it helps.

Regards,

Bikash

Read only

Former Member
0 Likes
1,426

Hi

You should print the long text and then convert its spool by report RSTXPDFT4.

Max

Read only

0 Likes
1,425

Hi Max,

Thanks.issue solved..

Abdul

Read only

0 Likes
1,425

there is also a FM where you can pass the text and it would create a spool,(which you can use to convert to PDF) i am trying to find out the FM name, i will post it here once i find it.

Regards

Raja

Read only

0 Likes
1,425

also check out this weblog, this is for BSP but should help you.

/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp

and the FM name i was mentioning in my earlier post is

RSPO_SX_OUTPUT_TEXTDATA

exporting

name = "LOCAL"

rows = <no of rows>

startrow = 1

title = <title>

immediately = ""

tables

text_data = datatab

importing

rqid = <returned spool number> .

also check out this thread

Regards

Raja