Hi Experts,
I want to convert a text file to pdf.
I was able to create a pdf document but unable to open.
I have followed the following logic
1) uploaded the file using GUI_UPLOAD
2)used the FM GET_PRINT_PARAMETERS to set printer settings
3)Then used three function modules in order
a) RSPO_OPEN_SPOOLREQUEST
b) RSPO_WRITE_SPOOLREQUEST
c) RSPO_CLOSE_SPOOLREQUEST
I was able to see the data which I uploaded with the spool id created in 'SP01'
4)Then I used the FM CONVERT_ABAPSPOOLJOB_2_PDF followed by
5) GUI_DOWNLOAD.
whatever the file size I upload I was able to get just five entries in the table obatined from CONVERT_ABAPSPOOLJOB_2_PDF
The error which I got when trying to open the pdf created is "This file cannot be opened becuase it has no pages".
could any one suggest some solutions