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

SPCPC_DIST_PRG_TO_TSG SAP ABAP Report - PAL: Distribute Printer Group to Target System Groups







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


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 SPCPC_DIST_PRG_TO_TSG. "Basic submit
SUBMIT SPCPC_DIST_PRG_TO_TSG AND RETURN. "Return to original report after report execution complete
SUBMIT SPCPC_DIST_PRG_TO_TSG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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


INCLUDES used within this REPORT SPCPC_DIST_PRG_TO_TSG

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:

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.



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 SPCPC_DIST_PRG_TO_TSG or its description.