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: 

Editing Spool

Former Member
0 Kudos

hi,

After a spool is created , how can it be edited ?

Requirement :

SAP standard report is executed and a spool is created for generating a PDF . The new requirement is that , page numbers needs to be shown on the PDF , ie it needs to be there in spool.

How can we edit a spool and insert page numbers ?

or

Can we get the spool into an internal table and insert one line in each page and create a new spool? If yes, How?

Thanks,

Paul.

1 REPLY 1

jj
Active Contributor
0 Kudos

call function 'RSPO_RETURN_SPOOLJOB'

exporting

rqident = i_spool_nr

  • FIRST_LINE = 1

  • LAST_LINE = 1000000000000

desired_type = 'RAW'

  • IMPORTING

  • REAL_TYPE =

  • SP_LANG =

tables

buffer = it_raw

  • BUFFER_PDF =

exceptions

no_such_job = 1

job_contains_no_data = 2

selection_empty = 3

no_permission = 4

can_not_access = 5

read_error = 6

type_no_match = 7

others = 8.

this function module will return spool as raw text , append page no and then convert to pdf.