PUTTBCHK 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 PUTTBCHK 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.
Inconsistencies in table PUTTB
Selection Text: PV_EXCPT = Print Exceptions {'Y', 'N'}
Selection Text: PV_PROT = Log {Yes, No, Only}
Selection Text: PV_RCHK = Release for specific checks
Selection Text: PV_TABEX = Table name extension
Selection Text: PV_VIEWX = CPSHDW-view name extension
Title: Consistency check of table PUTTB (Substitution tables)
001 T| Table- |fnd|Attributs|cmp|Attributs|Exceptions
002 y| name |in | Rel 2 |to | Rel 1 | if
003 p| |Rel| or |Rel| or |Defined
004 e| | 2 | Errors | 1 | Errors |
INCLUDE RDDRSCST. " --- CONSTANTS FOR REPOSITORY SWITCH
No SAP DATABASE tables are accessed within this REPORT code!
STRF_SETNAME CALL FUNCTION 'STRF_SETNAME' EXPORTING DIRTYPE = GV_DIRTYPE FILENAME = GV_PROTLIST SUBDIR = GC_SUBPROT IMPORTING FILE = GV_PROTFILE.
SUBST_APPEND_PROTOCOL CALL FUNCTION 'SUBST_APPEND_PROTOCOL' EXPORTING L_LEVEL = GC_LEV_1 L_MSGNR = GV_MSGNR L_NEWOBJ = GC_NEWOBJ_X TABLES P_TAB = GT_PROT.
SUBST_WRITE_PROTOCOL CALL FUNCTION 'SUBST_WRITE_PROTOCOL' EXPORTING ACTTYPE = GV_DIRTYPE IFNAME = GV_PROTFILE IMPORTING EFNAME = GV_PROTFILE TABLES P_TAB = GT_PROT.
SUBST_APPEND_PROTOCOL CALL FUNCTION 'SUBST_APPEND_PROTOCOL' EXPORTING L_LEVEL = GC_LEV_1 L_SEVERITY = GV_SEVERITY L_MSGNR = GV_MSGNR L_NEWOBJ = GC_NEWOBJ_X L_V1 = GV_V1 L_V2 = GV_V2 L_V3 = GV_V3 TABLES P_TAB = GT_PROT.
SUBST_WRITE_PROTOCOL CALL FUNCTION 'SUBST_WRITE_PROTOCOL' EXPORTING ACTTYPE = GV_DIRTYPE IFNAME = GV_PROTFILE IMPORTING EFNAME = GV_PROTFILE TABLES P_TAB = GT_PROT.
DB_GET_TABLE_PARAMETER CALL FUNCTION 'DB_GET_TABLE_PARAMETER' EXPORTING SOURCE = LV_SRC_PAR TABNAME = PV_TABNAME IMPORTING DD02DBS = LS_DB_PARAM.
DB_GET_TABLE_PARAMETER CALL FUNCTION 'DB_GET_TABLE_PARAMETER' EXPORTING SOURCE = LV_SRC_PAR TABNAME = PV_TABNAME IMPORTING DD02DBS = LS_DD_PARAM.
DD_GET_STORAGE_CLASS CALL FUNCTION 'DD_GET_STORAGE_CLASS' EXPORTING TABNAME = PV_TABNAME IMPORTING TABART = LV_TABART.
DD_GET_NAMETAB CALL FUNCTION 'DD_GET_NAMETAB' EXPORTING TABNAME = PT_PUTTB-TABNAME IMPORTING X030L_WA = LW_X030L TABLES X031L_TAB = LT_X031L EXCEPTIONS NOT_FOUND = 01 NO_FIELDS = 02.
DB_EXISTS_TABLE CALL FUNCTION 'DB_EXISTS_TABLE' EXPORTING TABNAME = PT_PUTTB-TABNAME IMPORTING SUBRC = LV_SUBRC.
UPG_RELCMP_COMPONENT CALL FUNCTION 'UPG_RELCMP_COMPONENT' EXPORTING IV_COMPONENT = GC_COMPONENT_SAP_BASIS IV_REL1 = LV_REL IV_REL2 = LV_REL2 IMPORTING EV_RESULT = LV_CMP.
SUBST_CREATE_SUBST_NAME CALL FUNCTION 'SUBST_CREATE_SUBST_NAME' EXPORTING IV_ONAME = PT_PUTTB-TABNAME IV_DESTREL = PT_PUTTB-SAPRELEASE IV_TABEX = PV_TABEX IV_BUILDCONV = LV_CONV IMPORTING EV_NNAME = LT_SUBST_NAMES-NNAME.
SUBST_CREATE_SUBST_NAME CALL FUNCTION 'SUBST_CREATE_SUBST_NAME' EXPORTING IV_ONAME = PT_PUTTB-TABNAME IV_DESTREL = PT_PUTTB-SAPRELEASE IV_TABEX = PV_TABEX IV_BUILDCONV = LV_CONV IMPORTING EV_NNAME = LV_TABNAME.
DD_GET_NAMETAB CALL FUNCTION 'DD_GET_NAMETAB' EXPORTING TABNAME = LV_TABNAME IMPORTING X030L_WA = LW_X030L TABLES X031L_TAB = LT_X031L EXCEPTIONS NOT_FOUND = 01 NO_FIELDS = 02.
SUBST_CREATE_SUBST_NAME CALL FUNCTION 'SUBST_CREATE_SUBST_NAME' EXPORTING IV_ONAME = LT_VIEW_NAMES-ONAME IV_DESTREL = LV_RCHK IV_TABEX = PV_VIEWX IV_BUILDCONV = LV_CONV IMPORTING EV_NNAME = LT_VIEW_NAMES-NNAME.
SUBST_CREATE_SUBST_NAME CALL FUNCTION 'SUBST_CREATE_SUBST_NAME' EXPORTING IV_ONAME = PT_PUTTB-TABNAME IV_DESTREL = PT_PUTTB-SAPRELEASE IV_TABEX = PV_TABEX IV_BUILDCONV = LV_CONV IMPORTING EV_NNAME = LT_SUBST_NAMES-NNAME EV_NNAME1 = LV_TABNAME2.
DD_GET_NAMETAB CALL FUNCTION 'DD_GET_NAMETAB' EXPORTING TABNAME = LV_TABNAME IMPORTING X030L_WA = LW_X030L TABLES X031L_TAB = LT_X031L EXCEPTIONS NOT_FOUND = 01 NO_FIELDS = 02.
DB_EXISTS_TABLE CALL FUNCTION 'DB_EXISTS_TABLE' EXPORTING TABNAME = LV_TABNAME IMPORTING SUBRC = LV_SUBRC.
CALL FUNCTION 'SUBST_APPEND_PROTOCOL' EXPORTING L_LEVEL = GC_LEV_2 L_SEVERITY = GV_SEVERITY L_MSGNR = GV_MSGNR L_V1 = GV_V1 L_V2 = GV_V2 L_V3 = GV_V3 L_V4 = GV_V4 TABLES P_TAB = GT_PROT.
SUBST_WRITE_PROTOCOL CALL FUNCTION 'SUBST_WRITE_PROTOCOL' EXPORTING ACTTYPE = GV_DIRTYPE IFNAME = GV_PROTFILE IMPORTING EFNAME = GV_PROTFILE TABLES P_TAB = GT_PROT.
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 PUTTBCHK or its description.
PUTTBCHK - Consistency check of table PUTTB (Substitution tables) PUTTBCHK - Consistency check of table PUTTB (Substitution tables) PUTTBCCOMPARE - Comparison of PUTTBC Components PUTTBCCOMPARE - Comparison of PUTTBC Components PUTTBCCHK - Consistency Check of Table PUTTBC (Substitution Tables) PUTTBCCHK - Consistency Check of Table PUTTBC (Substitution Tables)