SAP Reports / Programs | Basis Components | Use Subcomponents | Print and Output Management(BC-CCM-PRN) SAP BC

MSPADF45 SAP ABAP INCLUDE - documentation and ABAP source code







MSPADF45 is a standard ABAP INCLUDE 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 MSPADF45 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT MSPADF45. "Basic submit
SUBMIT MSPADF45 AND RETURN. "Return to original report after report execution complete
SUBMIT MSPADF45 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MSPADF45

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RSPO_CF_IS_CASCADING_DEVTYPE CALL FUNCTION 'RSPO_CF_IS_CASCADING_DEVTYPE' EXPORTING devtype = tsp03d-patype EXCEPTIONS devicetype_not_cascading = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Spool Admin.: Zurück'(164)

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Spool Admin.: Zurück'(164)

POSS_UIDEV_OPTCFG_NEW_DEVTYPE CALL FUNCTION 'POSS_UIDEV_OPTCFG_NEW_DEVTYPE' EXPORTING printername = tsp03d-name new_devtype = tsp03d-patype EXCEPTIONS printer_no_options = 1 OTHERS = 2.

POSS_UIPT_NEW_DEVTYPE CALL FUNCTION 'POSS_UIPT_NEW_DEVTYPE' EXPORTING printername = tsp03d-name new_devtype = tsp03d-patype EXCEPTIONS printer_no_options = 1 OTHERS = 2.

RSPO_POPUP_DEVICE_INFO CALL FUNCTION 'RSPO_POPUP_DEVICE_INFO' EXPORTING dest = tsp03d-padest EXCEPTIONS OTHERS = 1.

RSPO_POPUP_DEVICE_EVENTS CALL FUNCTION 'RSPO_POPUP_DEVICE_EVENTS' EXPORTING dest = tsp03d-padest EXCEPTIONS not_defined = 1 OTHERS = 2.

RSPO_DEVICE_CHECK_HOSTSPOOL CALL FUNCTION 'RSPO_DEVICE_CHECK_HOSTSPOOL' EXPORTING name = tsp03d-name IMPORTING reachable = answer EXCEPTIONS name_missing = 1 name_twice = 2 not_found = 3 call_error = 4 device_type_problem = 5 OTHERS = 6.

RSPO_DEVICE_CHECK_HOSTSPOOL CALL FUNCTION 'RSPO_DEVICE_CHECK_HOSTSPOOL' EXPORTING name = prtname-name IMPORTING reachable = answer EXCEPTIONS name_missing = 1 name_twice = 2 not_found = 3 call_error = 4 device_type_problem = 5 OTHERS = 6.

RSPO_CHECK_ATTRIBUTE_SET_CLASS CALL FUNCTION 'RSPO_CHECK_ATTRIBUTE_SET_CLASS' EXPORTING name = attrset EXCEPTIONS OTHERS = 1.

RSPO_OPTION_GET CALL FUNCTION 'RSPO_OPTION_GET' EXPORTING name = optname IMPORTING value = optval.

POSS_CHECK_KERNEL CALL FUNCTION 'POSS_CHECK_KERNEL' * IMPORTING * MAXOPT = EXCEPTIONS kernel_no_support = 1 OTHERS = 2.

POSS_DEVT_HAS_OPTIONS CALL FUNCTION 'POSS_DEVT_HAS_OPTIONS' EXPORTING devtype = tsp03d-patype IMPORTING has_options = hopt.

POSS_UIDEV_OPTCFG_INIT CALL FUNCTION 'POSS_UIDEV_OPTCFG_INIT' EXPORTING printername = tsp03d-name devtype = tsp03d-patype showonly = readonly_mode init_options = init sourceprinter = sourceprn EXCEPTIONS printer_no_options = 1 invalid_printer = 2 OTHERS = 3.

POSS_UIDEV_OPTCFG_CHANGED CALL FUNCTION 'POSS_UIDEV_OPTCFG_CHANGED' EXPORTING printer = tsp03d-padest IMPORTING changes_made = c.

POSS_UIDEV_OPTCFG_SAVE CALL FUNCTION 'POSS_UIDEV_OPTCFG_SAVE' EXPORTING printername = tsp03d-name EXCEPTIONS invalid_printer = 1.

POSS_DEV_OPTCFG_DELETE CALL FUNCTION 'POSS_DEV_OPTCFG_DELETE' EXPORTING printer = tsp03d-padest.

POSS_UIDEV_OPTCFG_UIMODE CALL FUNCTION 'POSS_UIDEV_OPTCFG_UIMODE' EXPORTING uimode = mode * WARN_SAVE_POPUP = ' ' IMPORTING user_cancelled = can.

POSS_UIDEV_PT_INIT





CALL FUNCTION 'POSS_UIDEV_PT_INIT' EXPORTING printername = tsp03d-name devtype = tsp03d-patype showonly = showonly init_tickets = init sourceprinter = sourceprn EXCEPTIONS printer_no_options = 1 invalid_printer = 2 OTHERS = 3.

POSS_UIDEV_PT_CHANGED CALL FUNCTION 'POSS_UIDEV_PT_CHANGED' EXPORTING printername = g_printer IMPORTING changes_made = c.

POSS_UIDEV_PT_SAVE CALL FUNCTION 'POSS_UIDEV_PT_SAVE' EXPORTING printername = tsp03d-name.

POSS_DEV_PT_DELETE CALL FUNCTION 'POSS_DEV_PT_DELETE' EXPORTING printername = tsp03d-name printticket = space deleteall = 'X' EXCEPTIONS unknown_printer = 1 OTHERS = 2.

POSS_UIDEV_PT_UIMODE CALL FUNCTION 'POSS_UIDEV_PT_UIMODE' EXPORTING showonly = showonly * IMPORTING * DATA_WAS_CHANGED = .

ADS_CHECK_XDCINFO_ADS CALL FUNCTION 'ADS_CHECK_XDCINFO_ADS' EXPORTING * CONNECTION = xdcname = l_s xdcowner = g_dev_xdc_owner IMPORTING xdcinfo_ok = l_ok EXCEPTIONS cannot_connect_to_ads = 1 no_xdc_api = 2 OTHERS = 3.

ADS_GET_DEVTYPE_ATTRIBUTES CALL FUNCTION 'ADS_GET_DEVTYPE_ATTRIBUTES' EXPORTING prtype = tsp03d-patype color = tsp03d-colorprt IMPORTING xdcname = l_s owner = g_dev_xdc_owner.

SPCPC_GET_PRINTER_STATUS CALL FUNCTION 'SPCPC_GET_PRINTER_STATUS' EXPORTING printername = prname IMPORTING status = status status_ext = statext return_code = rc.

RSPO_DEV_GET_SNMPSTATUS CALL FUNCTION 'RSPO_DEV_GET_SNMPSTATUS' EXPORTING name = prname IMPORTING is_enabled = is_enabled disabled_reason = disable_reason snmpspo_configured = snmpspo_conf EXCEPTIONS not_found = 1 no_support_krn = 2 no_support_snmp = 3 OTHERS = 4.

RSPO_DEV_SNMPDATA_READ CALL FUNCTION 'RSPO_DEV_SNMPDATA_READ' EXPORTING printer = printername IMPORTING address = address * version = snmpversion * community = community * device_index = devindex EXCEPTIONS invalid_printer = 1 OTHERS = 2.

HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = p_dokclass doklangu = sy-langu * doktitle = p_doktitle dokname = p_dokname TABLES links = l_links EXCEPTIONS object_not_found = 1 sapscript_error = 2 OTHERS = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MSPADF45 or its description.