BASIS Function module Used the same way in S/4HANA

RSPO_RETURN_SPOOLJOB Return Spool Request Content

Reads the content of a spool request line by line into an internal table or, if requested, into PDF lines. Programs that want to e-mail the list produced by a job, write it to a file or parse its content use it. The line type of BUFFER is generic, so pass a character table that is wide enough; without read authorization NO_PERMISSION is raised.

Function group
SPOX
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
RQIDENTTSP01-RQIDENTSpool request numberYes
FIRST_LINEIFirst line—
LAST_LINEILast line—
DESIRED_TYPESOODK-OBJTPDesired output type—

Exporting parameters

ParameterTypeDescription
REAL_TYPESOODK-OBJTPActual output type
SP_LANGTST01-DLANGSpool language

Tables parameters

ParameterTypeDescriptionRequired
BUFFER—Spool linesYes
BUFFER_PDFTLINEPDF lines—

Exceptions

  • NO_SUCH_JOB — No such spool request
  • JOB_CONTAINS_NO_DATA — Spool request contains no data
  • SELECTION_EMPTY — Selection empty
  • NO_PERMISSION — No permission
  • CAN_NOT_ACCESS — Cannot access
  • READ_ERROR — Read error
  • TYPE_NO_MATCH — Type does not match

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
  EXPORTING
    rqident = lv_rqident
  IMPORTING
    real_type = lv_real_type
    sp_lang = lv_sp_lang
  TABLES
    buffer = lt_buffer
    buffer_pdf = lt_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.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report