Application Development and Automation 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: 
Read only

dump spool buffer to a file

Former Member
0 Likes
560

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
Read only

Former Member
0 Likes
472

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.

Read only

Former Member
0 Likes
472

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.