DATA: indxkey LIKE indx-srtfd VALUE 'KEYVALUE',
indx_wa TYPE indx,
gt_print TYPE TABLE OF zlosst,
gs_print LIKE LINE OF gt_print,
valid TYPE c,
pripar TYPE pri_params.
IMPORT gt_print = gt_print
FROM SHARED BUFFER indx(st) ID indxkey TO indx_wa.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
im_parameters = pripar
immediately = ' '
no_dialog = 'X'
IMPORTING
out_parameters = pripar
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.