Application Development 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: 

PDF file not opening - created from Spool

Former Member
0 Kudos
858

Hi,

I am using the FM, RSPO_OPEN_SPOOLREQUEST to create a spool request and then the RSPO_WRITE_SPOOLREQUEST to write the data and then the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert the spool output to PDF. Though the file gets created in the desktop, while opening the file the below error is occuring,

The file cannot be opened because it has no pages.

Further the spool request created shows the pages as 0, though it is having multiple pages of data. But a normal spool request which is created by executing a program in background is getting downloaded properly. Please let me know where the issue is.

Regards,

Prabaharan.G

2 REPLIES 2

geetha_k
Active Participant
0 Kudos
230

Hi,

check once in this transaction code.. SP02

Former Member
0 Kudos
230

Hi,

SP02 also shows the spool with the same 0 pages as it is shown in SP01. The below is the code which I have used to call the FM to open a spool request,

CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'

EXPORTING

dest = 'LOCL'

  • LAYOUT =

  • NAME =

  • SUFFIX1 =

  • SUFFIX2 =

  • COPIES =

  • PRIO =

  • IMMEDIATE_PRINT =

  • AUTO_DELETE =

  • TITLELINE =

  • RECEIVER =

  • DIVISION =

  • AUTHORITY =

  • POSNAME =

  • ACTTIME =

  • LIFETIME = '8'

  • APPEND =

  • COVERPAGE =

  • CODEPAGE =

doctype = 'LIST'

IMPORTING

handle = v_handle

spoolid = v_spool_id

RC = v_rc

ERRMESSAGE = v_errmessage.

Regards,

Prabaharan.G