PUTTBCCHK 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 PUTTBCCHK 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 = Output exceptions
Selection Text: PV_PRTAL = in file and on screen
Selection Text: PV_PRTFI = in file only
Selection Text: PV_PRTSC = on screen only
Selection Text: PV_RCHK = Basis Release for Spec. Checks
Selection Text: PV_TABEX = Suffix for Table Names
Selection Text: PV_VIEWX = Suffix for CPSHDW View Names
Selection Text: P_COMPON = Component/Include
Title: Consistency Check of Table PUTTBC (Substitution Tables)
Text Symbol: 001 = Parameters
Text Symbol: 002 = Log Output
Text Symbol: 003 = No component/include found
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.
SUBST_APPEND_PROTOCOL CALL FUNCTION 'SUBST_APPEND_PROTOCOL' EXPORTING l_level = gc_lev_1 l_msgnr = gv_msgnr l_v1 = gv_v1 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.
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_puttbc-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_puttbc-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_puttbc-tabname iv_destrel = pt_puttbc-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_puttbc-tabname iv_destrel = pt_puttbc-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_puttbc-tabname iv_destrel = pt_puttbc-saprelease iv_tabex = pv_tabex iv_buildconv = lv_conv IMPORTING ev_nname = lt_subst_names-nname ev_nname1 = lv_tabname2.
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.
SUBST_APPEND_PROTOCOL 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 PUTTBCCHK or its description.