2006 Feb 15 10:57 AM - edited 2024 Feb 04 2:01 AM
Hi Friends,
I need to convert the long texts into PDF format.How to achieve this??
Thanks,
Abdul Hakim
2006 Feb 15 11:36 AM
Hi
You should print the long text and then convert its spool by report RSTXPDFT4.
Max
2006 Feb 15 11:32 AM
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
2006 Feb 15 11:48 AM
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
2006 Feb 15 12:02 PM
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
2006 Feb 15 11:36 AM
Hi
You should print the long text and then convert its spool by report RSTXPDFT4.
Max
2006 Feb 15 12:04 PM
2006 Feb 15 12:11 PM
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
2006 Feb 15 12:14 PM
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