I have a requirement to transfer the spool data to Application server,
now i 'm using the below code.
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
RQIDENT = G_RQIDENT
FIRST_LINE = 1
TABLES
BUFFER = IT_BUFFER.
OPEN DATASET p_name FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE 'Unable to find file path' TYPE 'S' DISPLAY LIKE 'E'.
ELSE.
LOOP AT IT_BUFFER INTO WA_BUFFER.
TRANSFER WA_BUFFER(1023) TO p_name LENGTH L_length.
ENDLOOP.
CLOSE DATASET p_name.
but the problem is the spool contains more than 1500 pages and its going to short dump.
is any other way to achieve this requirement ?