SPCPC_DIST_PRG_TO_TSG is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to schedule PAL Printer Group distribution in background via a batch job...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter SPCPC_DIST_PRG_TO_TSG 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.
Selection Text: SP_PRG = Printer Group
Selection Text: SO_TSG = Select
Selection Text: RB_TSG = Target System Groups
Selection Text: RB_FAV = Favorite Targets
Title: PAL: Distribute Printer Group to Target System Groups
Text Symbol: 019 = &1 "&2" not distributed to any Target System Group(s)
Text Symbol: 018 = &1 "&2" distributed to some of the Target System Group(s).
Text Symbol: 017 = &1 "&2" distributed to none of the selected Target System Group(s).
Text Symbol: 016 = &1 "&2" distributed to all selected Target System Group(s).
Text Symbol: 015 = Favorite Targets of "&1" empty.
Text Symbol: 014 = Distribution Targets
Text Symbol: 013 = "&1" not found
Text Symbol: 012 = "&1" is empty
Text Symbol: 011 = Enter &1
Text Symbol: 010 = Required information could not be retrieved
Text Symbol: 009 = Description
Text Symbol: 008 = Target System Group
Text Symbol: 007 = Target System
Text Symbol: 006 = Printer Group
Text Symbol: 005 = Printer
Text Symbol: 003 = Distribution Results
Text Symbol: 002 = Selected Distribution
Text Symbol: 001 = Distribution Source
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SPCPC_GET_PRINTER_GRP call function 'SPCPC_GET_PRINTER_GRP' exporting printer_group = ls_prg importing printer_groups = lt_prg return_code = l_rc.
SPCPC_GET_CPC_PRINTER call function 'SPCPC_GET_CPC_PRINTER' exporting printer_group = ls_prg importing printers = lt_pr return_code = l_rc.
SPCPC_GET_TARGET_SYSTEM call function 'SPCPC_GET_TARGET_SYSTEM' exporting target_system_group = ls_tsg importing target_systems = lt_ts return_code = l_rc.
SPCPC_PUSH call function 'SPCPC_PUSH' exporting printer_group = ls_prg target_system_group = ls_tsg importing * STATUS = l_status return_code = l_rc.
SPCPC_GET_DIST_STATUS_EX call function 'SPCPC_GET_DIST_STATUS_EX' exporting printer_group_name = ls_prg-pgname target_system_group_name = ls_tsg-tsgname * CODE = '*' * DESCRIPTION = '*' * DIST_STATUS = importing dist_status_ex = lt_status_tmp.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SPCPC_DIST_PRG_TO_TSG - PAL: Distribute Printer Group to Target System Groups SPCPC_DIST_PRG_TO_TSG - PAL: Distribute Printer Group to Target System Groups SPCPCUTIL - Global definitions for package SPCPC SPCPCDEF - Include SPCPCDEF SPATHPOS - Program for Object Type SPATHPOS : WFL Process Route Item SPATHPOS - Program for Object Type SPATHPOS : WFL Process Route Item