* Siehe Typgruppe SCTSC (Konstanten CTS)
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (20) lbl1 FOR FIELD p_trkorr.
PARAMETERS: p_trkorr LIKE e070-trkorr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
lbl1 = 'Transport-Auftrag:'.
START-OF-SELECTION.
* Freigabe eines Auftrags/einer Aufgabe
CALL FUNCTION 'TR_RELEASE_REQUEST'
EXPORTING
iv_trkorr = p_trkorr
iv_dialog = abap_true
iv_as_background_job = abap_false
iv_success_message = abap_false
iv_display_export_log = abap_false
EXCEPTIONS
cts_initialization_failure = 1
enqueue_failed = 2
no_authorization = 3
invalid_request = 4
request_already_released = 5
repeat_too_early = 6
error_in_export_methods = 7
object_check_error = 8
docu_missing = 9
db_access_error = 10
action_aborted_by_user = 11
export_failed = 12
OTHERS = 13.
IF sy-subrc = 0.
WRITE: / 'Auftrag', p_trkorr, 'freigegeben.'.
ENDIF.