SAP Function STORE_PRINT_PARAMETERS - Save Print Parameters

Parameter Reference Type Length Default Optional Text
APPLIKATION SYPRAPPL C 1
IN_PARAMETERS PRI_PARAMS u 196
PRIPROG SYST-REPID C 40 X
USER SYST-UNAME C 12 X

Parameter Reference Type Length Text
KEY CHAR16 C 16

Exception Text
ERROR_OCCURED

Functionality
This function module stores the contents of a variable with the typePRI_PARAMETERS in the table TPRI_PAR. It returns a key that you can useto address the contents of the structure.
Print parameters are not stored in duplicate.
The system also remembers the application to which the key belongs.This means that print parameters are sorted by application, and can bereorganized independently by each application.
CALL FUNCTION 'STORE_PRINT_PARAMETERS'
exporting
in_parameters = params
applikation = 'X'
user = 'HUGO'
report = 'RUNXYZ'
importing
KEY = KEY
exceptions
error_occured = 1.
KEY is the key that you can use to access the print parameters againusing LOAD_PRINT_PARAMETERS
Structure of KEY: "RUNXYZHUGO 0002'
The key consists of three parts: The first two parts identify theprogram and user that created the set of parameters. The third part isa serial number (in case other print parameters have already beenstored under the same report/user combination).