Spool anzeigen
Mit dem Funktionsbaustein (Fuba) RSPO_DISPLAY_SPOOLJOB können Sie sich Spoolauftärge anzeigen lassen.
REPORT z_show_spool MESSAGE-ID z_messages.
PARAMETERS p_spool TYPE tsp01-rqident.
CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
EXPORTING
rqident = p_spool "Hier können Sie die Spoolnummer mitgeben"
* FIRST_LINE =
* LAST_LINE =
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
OTHERS = 7
.
IF sy-subrc <> 0.
MESSAGE s001 DISPLAY LIKE 'W'.
ENDIF.
Spool drucken
Mit diesem Funktionsbaustein (Fuba) RSPO_OUTPUT_SPOOL_REQUEST können Sie einen Spoolaufträge drucken lassen
REPORT z_print_spool MESSAGE-ID z_messages.
PARAMETERS p_spool TYPE tsp01-rqident.
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
* COPIES = 0
* DEVICE = '*'
* DIVISION = '*'
* ENDPAGE = 0
* PRIO = 0
* RECEIVER = '*'
* REQEST_TITLE = '*'
spool_request_id = p_spool "Hier können Sie die Spoolnummer mitgeben"
* STARTPAGE = 0
* TELELAN = '*'
* TELENUM = '*'
* POSNAME =
* ACTTIME =
* TABLES
* ATTRIBUTES =
* EXCEPTIONS
* ARCHIVE_DEST_INVALID = 1
* ARCHIVE_DEST_NOT_FOUND = 2
* ARCHIVE_DEST_NO_RIGHT = 3
* CANNOT_ARCHIVE = 4
* CHANGE_ARCHDEST_NO_RIGHT = 5
* CHANGE_COPIES_NO_RIGHT = 6
* CHANGE_DEST_NO_RIGHT = 7
* CHANGE_DEVTYPE_NO_RIGHT = 8
* CHANGE_PRIO_NO_RIGHT = 9
* CHANGE_TELENUM_NO_RIGHT = 10
* CHANGE_TITLE_NO_RIGHT = 11
* DEST_INVALID = 12
* DEST_NOT_FOUND = 13
* DEST_NO_RIGHT = 14
* INTERNAL_PROBLEM = 15
* INVALID_FAX_ATTRIBUTE = 16
* INVALID_PARAMETERS = 17
* NON_OWNER_NO_RIGHT = 18
* NO_LAYOUT = 19
* NO_SPOOL_REQUEST = 20
* OUT_AGAIN_NO_RIGHT = 21
* SPOOLER_PROBLEM = 22
* OTHERS = 23
.
IF sy-subrc <> 0.
MESSAGE s001 DISPLAY LIKE 'W'.
ENDIF.