INST_SAMPLE_PRINTER is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter INST_SAMPLE_PRINTER into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Title: Installation: Creating Sample Printers
Text Symbol: 102 = Cannot read instance number
Text Symbol: 103 = Sample printer created successfully
Text Symbol: 104 = Cannot delete printer: &
Text Symbol: 105 = Cannot create printer: &
Text Symbol: 106 = Error reading zcsa/installed_languages
Text Symbol: 107 = Error reading SAPGLOBALHOST
Text Symbol: 000 = Sample printer for frontend printing
Text Symbol: 002 = Sample printer AS/400
Text Symbol: 003 = Sample printer direct to host spooler
Text Symbol: 004 = Sample printer through output processor SAPLPD
Text Symbol: 005 = Sample printer through SAPLPD/Berkley Server
Text Symbol: 100 = Report runs only during installation
Text Symbol: 101 = Parameter & not found
INCLUDE INST_FUNC_MODULES.
INCLUDE INST_CONST.
INCLUDE INST_SAMPLE_PRINTER_PARAM.
INCLUDE INST_SAMPLE_PRINTER_DEF.
No SAP DATABASE tables are accessed within this REPORT code!
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'SAPSYSTEM' IMPORTING parameter_value = parameter_value EXCEPTIONS others = 1.
RSPO_DEVICE_GET call function 'RSPO_DEVICE_GET' EXPORTING name = printer_desc-paname TABLES description = prndesc EXCEPTIONS not_found = 1 others = 99.
RSPO_DEVICE_DELETE call function 'RSPO_DEVICE_DELETE' EXPORTING name = printer_desc-paname EXCEPTIONS not_found = 1 others = 99.
RSPO_DEVICE_UPDATE call function 'RSPO_DEVICE_UPDATE' TABLES description = prndesc EXCEPTIONS others = 99.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'ZCSA/INSTALLED_LANGUAGES' IMPORTING parameter_value = parameter_value EXCEPTIONS others = 1.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'SAPGLOBALHOST' IMPORTING parameter_value = parameter_value EXCEPTIONS others = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.