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
| Parameter | Type | Description | Required |
|---|---|---|---|
| RQIDENT | TSP01-RQIDENT | Spool request number | Yes |
| FIRST_LINE | I | First line | — |
| LAST_LINE | I | Last line | — |
| DESIRED_TYPE | SOODK-OBJTP | Desired output type | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| REAL_TYPE | SOODK-OBJTP | Actual output type |
| SP_LANG | TST01-DLANG | Spool language |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| BUFFER | — | Spool lines | Yes |
| BUFFER_PDF | TLINE | PDF 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.