GET_PRINT_PARAMETERS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name GET_PRINT_PARAMETERS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SPRI
Released Date:
22.04.1996
Processing type: Normal fucntion module
CALL FUNCTION 'GET_PRINT_PARAMETERS' "Read, determine, change spool print parameters and archive parameters
* EXPORTING
* archive_id = C_CHAR_UNKNOWN " arc_params-archiv_id Archive ID
* archive_info = C_CHAR_UNKNOWN " arc_params-info Additional information for report names
* archive_mode = C_CHAR_UNKNOWN " pri_params-armod Control of the printing and archiving
* archive_text = C_CHAR_UNKNOWN " arc_params-arctext Info text for the archive request
* ar_object = C_CHAR_UNKNOWN " arc_params-ar_object Archiving object
* archive_report = C_CHAR_UNKNOWN " arc_params-report Archiving Report
* authority = C_CHAR_UNKNOWN " pri_params-prber Default for 'authorization'
* copies = C_NUM3_UNKNOWN " pri_params-prcop
* copies = C_NUM3_UNKNOWN " pri_params-prcop Default for 'number of copies'
* cover_page = C_CHAR_UNKNOWN " pri_params-prbig Selection cover sheet output value
* data_set = C_CHAR_UNKNOWN " pri_params-prdsn Default for name of the spool data
* department = C_CHAR_UNKNOWN " pri_params-prabt Default for 'department'
* destination = C_CHAR_UNKNOWN " pri_params-pdest Default for 'output device'
* expiration = C_NUM1_UNKNOWN " pri_params-pexpi Default for 'retention period'
* immediately = C_CHAR_UNKNOWN " pri_params-primm Default for 'Print immediately'
* in_archive_parameters = SPACE " arc_params List of all archiving parameters
* in_parameters = SPACE " pri_params List of all default parameters
* layout = C_CHAR_UNKNOWN " pri_params-paart
* layout = C_CHAR_UNKNOWN " pri_params-paart Default for 'format'
* line_count = C_INT_UNKNOWN " pri_params-linct Default for 'Rows'
* line_size = C_INT_UNKNOWN " pri_params-linsz Default for 'columns'
* list_name = C_CHAR_UNKNOWN " pri_params-plist Default for 'spool request name'
* list_text = C_CHAR_UNKNOWN " pri_params-prtxt Default for 'spool request text'
* mode = SPACE " sy-callr Mode: 'BATCH' or SPACE
* mode = SPACE " sy-callr
* new_list_id = C_CHAR_UNKNOWN " pri_params-prnew Default for 'New spool request'
* protect_list = C_CHAR_UNKNOWN " pri_params-prnew Cannot Append Any More to Generated Spool Request
* no_dialog = C_FALSE " Suppress dialog
* receiver = C_CHAR_UNKNOWN " pri_params-prrec Default for 'recipient'
* release = C_CHAR_UNKNOWN " pri_params-prrel
* release = C_CHAR_UNKNOWN " pri_params-prrel Default for 'Keep after printing'
* report = C_CHAR_UNKNOWN " sy-repid REPORT name
* sap_cover_page = C_CHAR_UNKNOWN " pri_params-prsap Default for the output of the SAP cover sheet
* host_cover_page = C_CHAR_UNKNOWN " pri_params-prunx Default for Output of Operating System Cover Sheet
* priority = C_NUM1_UNKNOWN " pri_params-priot Default for Priority
* sap_object = C_CHAR_UNKNOWN " arc_params-sap_object Name of the application for the archiving
* type = C_CHAR_UNKNOWN " pri_params-ptype Default 'Spool request type'
* type = C_CHAR_UNKNOWN " pri_params-ptype
* user = SY-UNAME " sy-uname
* use_old_layout = SPACE " Use Old List Format
* uc_display_mode = C_CHAR_UNKNOWN " Unicode Print Layout
* draft = C_CHAR_UNKNOWN " pripar_ext-text Print text only
* abap_list = SPACE " Print ABAP List
* use_archivename_def = SPACE " Note %_ARCHIVE-REPORT
* default_spool_size = C_CHAR_UNKNOWN " Max. Width of Spool Request: 255 Characters
* with_structure = C_CHAR_UNKNOWN " Print with Structure Information
* suppress_shading = C_CHAR_UNKNOWN " Suppress Colors/Shading
* po_fax_store = SPACE " pri_params-primm Print Immediately (Print Parameter)
* no_frames = C_CHAR_UNKNOWN " No Frame Characters
IMPORTING
out_archive_parameters = " arc_params List of the called up archiving parameters
out_parameters = " pri_params List of the called print parameter
valid = "
valid = " Print parameters in OUT_PARAMETERS are valid
valid_for_spool_creation = " Print parameters in OUT_PARAMETERS are valid for creating a spool request
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1 " Incorrect entries for archive or archive objects
INVALID_PRINT_PARAMS = 2 " no longer used
INVALID_ARCHIVE_PARAMS = 3 " no longer used
. " GET_PRINT_PARAMETERS
The ABAP code below is a full code listing to execute function module GET_PRINT_PARAMETERS including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_out_archive_parameters | TYPE ARC_PARAMS , |
| ld_out_parameters | TYPE PRI_PARAMS , |
| ld_valid | TYPE STRING , |
| ld_valid | TYPE STRING , |
| ld_valid_for_spool_creation | TYPE STRING . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_out_archive_parameters | TYPE ARC_PARAMS , |
| ld_archive_id | TYPE ARC_PARAMS-ARCHIV_ID , |
| ld_out_parameters | TYPE PRI_PARAMS , |
| ld_archive_info | TYPE ARC_PARAMS-INFO , |
| ld_valid | TYPE STRING , |
| ld_valid | TYPE STRING , |
| ld_archive_mode | TYPE PRI_PARAMS-ARMOD , |
| ld_valid_for_spool_creation | TYPE STRING , |
| ld_archive_text | TYPE ARC_PARAMS-ARCTEXT , |
| ld_ar_object | TYPE ARC_PARAMS-AR_OBJECT , |
| ld_archive_report | TYPE ARC_PARAMS-REPORT , |
| ld_authority | TYPE PRI_PARAMS-PRBER , |
| ld_copies | TYPE PRI_PARAMS-PRCOP , |
| ld_copies | TYPE PRI_PARAMS-PRCOP , |
| ld_cover_page | TYPE PRI_PARAMS-PRBIG , |
| ld_data_set | TYPE PRI_PARAMS-PRDSN , |
| ld_department | TYPE PRI_PARAMS-PRABT , |
| ld_destination | TYPE PRI_PARAMS-PDEST , |
| ld_expiration | TYPE PRI_PARAMS-PEXPI , |
| ld_immediately | TYPE PRI_PARAMS-PRIMM , |
| ld_in_archive_parameters | TYPE ARC_PARAMS , |
| ld_in_parameters | TYPE PRI_PARAMS , |
| ld_layout | TYPE PRI_PARAMS-PAART , |
| ld_layout | TYPE PRI_PARAMS-PAART , |
| ld_line_count | TYPE PRI_PARAMS-LINCT , |
| ld_line_size | TYPE PRI_PARAMS-LINSZ , |
| ld_list_name | TYPE PRI_PARAMS-PLIST , |
| ld_list_text | TYPE PRI_PARAMS-PRTXT , |
| ld_mode | TYPE SY-CALLR , |
| ld_mode | TYPE SY-CALLR , |
| ld_new_list_id | TYPE PRI_PARAMS-PRNEW , |
| ld_protect_list | TYPE PRI_PARAMS-PRNEW , |
| ld_no_dialog | TYPE STRING , |
| ld_receiver | TYPE PRI_PARAMS-PRREC , |
| ld_release | TYPE PRI_PARAMS-PRREL , |
| ld_release | TYPE PRI_PARAMS-PRREL , |
| ld_report | TYPE SY-REPID , |
| ld_sap_cover_page | TYPE PRI_PARAMS-PRSAP , |
| ld_host_cover_page | TYPE PRI_PARAMS-PRUNX , |
| ld_priority | TYPE PRI_PARAMS-PRIOT , |
| ld_sap_object | TYPE ARC_PARAMS-SAP_OBJECT , |
| ld_type | TYPE PRI_PARAMS-PTYPE , |
| ld_type | TYPE PRI_PARAMS-PTYPE , |
| ld_user | TYPE SY-UNAME , |
| ld_use_old_layout | TYPE STRING , |
| ld_uc_display_mode | TYPE STRING , |
| ld_draft | TYPE PRIPAR_EXT-TEXT , |
| ld_abap_list | TYPE STRING , |
| ld_use_archivename_def | TYPE STRING , |
| ld_default_spool_size | TYPE STRING , |
| ld_with_structure | TYPE STRING , |
| ld_suppress_shading | TYPE STRING , |
| ld_po_fax_store | TYPE PRI_PARAMS-PRIMM , |
| ld_no_frames | TYPE STRING . |
The function module GET_PRINT_PARAMETERS is used to define, modify, and
display the
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name GET_PRINT_PARAMETERS or its description.
GET_PRINT_PARAMETERS - Read, determine, change spool print parameters and archive parameters GET_PRINT_PARAM - Get print parameter from USER master or query if not maintained GET_PRINTPARAMETER_VALUE - GET_PRICING_CONTEXT - GET_PRICE_TYP_AUTH_FLG - Get authorization setting for security price type GET_PRICE_TIME_DATA_IN - module to fetch CI data