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: 

dump spool buffer to a file

Former Member
0 Kudos

Hi,

I have a requirement to capture spool job and sending it to file.

I am retrieving the output of one spool request and sending it to a file using 'TRANSFER' statment in a loop.

it is taking too long time to complete this process..

is there any other way to, dump the buffer to a file at one instance?

Plz help me

2 REPLIES 2

Former Member
0 Kudos

Try to create the file using FTP:

call function 'FTP_COMMAND'

exporting

handle = hdl

command = cmd

tables

data = result

exceptions

tcpip_error = 1

command_error = 2

data_error = 3.

Former Member
0 Kudos

Hi,

Try to use FM - CONVERT_ABAPSPOOLJOB_2_PDF

ot similar Fms

RSPO_DISPLAY_ABAP_SPOOLJOB

RSPO_RETURN_ABAP_SPOOLJOB

RSPO_RETURN_ABAP_SPOOLJOB_RAW

Thanks,

Sree.