09-22-2008 8:09 AM
Dear Experts,
I need to develop a report, where I need to send the ABAP spool request on to a FTP server at Clients location.
Kindly advice your valuable inputs.
Regards,
Nuri.
09-22-2008 11:13 AM
09-22-2008 5:46 PM
Hi,
Check this FM.
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = w_spoolno
FIRST_LINE = 1
LAST_LINE = LAST_LINE
TABLES
buffer = buffer
EXCEPTIONS
NO_SUCH_JOB = 1
NOT_ABAP_LIST = 2
JOB_CONTAINS_NO_DATA = 3
SELECTION_EMPTY = 4
NO_PERMISSION = 5
CAN_NOT_ACCESS = 6
READ_ERROR = 7
.
if sy-subrc ne 0.
write: / 'Spool List Read Failed',sy-subrc.
stop.
endif.
You can loop thru internal table BUFFER to get the spool list data.