SAP Reports / Programs

RADTBCHK SAP ABAP Report - Checks Table Consistency







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


Text pool values


Title: Checks Table Consistency
Text Symbol: 001 = of a table
Text Symbol: 002 = POOL/CLUSTER
Text Symbol: 003 = MC table
Text Symbol: 004 = View table name
Text Symbol: 005 = of na MC object
Text Symbol: 006 = of a lock object
Text Symbol: 007 = of a view
Text Symbol: 008 = of a table or structure
Text Symbol: 009 = of a data element
Text Symbol: 010 = of a table type
Text Symbol: 011 = of a type pool
Text Symbol: 012 = Built-in ABAP type
Text Symbol: 013 = Cannot Be Enhanced
Text Symbol: 014 = Can Be Enhanced (Char. Type)
Text Symbol: 015 = Can Be Enhanced (Numeric or Char. Type)
Text Symbol: 016 = Can Be Enhanced (Deep)
Text Symbol: 017 = Key Field
Text Symbol: 018 = DataField


INCLUDES used within this REPORT RADTBCHK

INCLUDE RADBTOU0.
INCLUDE RATTBUT0.
INCLUDE RADTBCON.
INCLUDE RADBTSE0.
INCLUDE RADBTMAC.
INCLUDE RADADMAC.
INCLUDE RADDODBC.
INCLUDE RADDOCH1.


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:

TR_CHECK_NAME_CLASS call function 'TR_CHECK_NAME_CLASS' exporting wi_object = 'TABL' wi_objname = tcn_name wi_pgmid = 'R3TR' importing we_name_class = tcn_class exceptions others = 1.

TR_CHECK_NAME_CLASS call function 'TR_CHECK_NAME_CLASS' exporting wi_object = 'TABL' wi_objname = tcn_name wi_pgmid = 'R3TR' importing we_name_class = tcn_class exceptions others = 1.

DD_TABL_CHK_SAANORM call function 'DD_TABL_CHK_SAANORM' exporting name = tablename saac = saac objecttype = type_check_saa_2o3pc_ subtype = tabclass maxlen = maxlen importing rclist = rclist.

DD_CHECK_NAME_SPACE call function 'DD_CHECK_NAME_SPACE' exporting active_only = 'X' name = tabname objtype = objtype importing errnum = rc.

TRINT_CHECK_OBJS_COMPATIBLE * call function 'TRINT_CHECK_OBJS_COMPATIBLE' * exporting * iv_old_obj_name = use_name * iv_new_obj_name = app_name * iv_weak_check = ' ' * importing * ev_objs_compatible = compatible * es_msg = message * exceptions * wrong_syntax_obj_old = 1 * wrong_syntax_obj_new = 2 * no_tadir_old = 3 * no_tadir_new = 4 * no_tdevc_old = 5 * no_tdevc_new = 6 * others = 7.

DD_TABL_CHK_SAANORM call function 'DD_TABL_CHK_SAANORM' exporting name = dd03p_tab-fieldname saac = saac "Holds which checks have to be done objecttype = type_check_saa_2o3pc_ subtype = tabclass maxlen = maxlen importing rclist = rclist. "Clear RCLIST in FORM

DD_TBFD_CHK_KEY call function 'DD_TBFD_CHK_KEY' exporting allowed_keynumber = maxkey keyc = keyc importing field_out_of_key = field_out_of_key rclist = rclist "Clear RCLIST in form field_with_ttyp = field_with_ttyp field_with_cliref = field_with_cliref field_with_string = field_with_string field_with_float = field_with_float field_with_decfloat = field_with_decfloat stringtype = stringtype tables dd03p_tab = dd03p_tab.

DD_TBFD_CHK_DUPFIELDS call function 'DD_TBFD_CHK_DUPFIELDS' tables dd03p_tab = dd03p_tab duplicates = duplicates.

DD_DDTYPE_TO_ABAPTYPE call function 'DD_DDTYPE_TO_ABAPTYPE' exporting ddlen = dd03p_tab-leng ddtype = dd03p_tab-datatype importing ablen = dd03p_tab-intlen abtype = dd03p_tab-inttype exceptions illegal_value = 01 others = 02.

DD_TBFD_CHK_KEYCHANGE call function 'DD_TBFD_CHK_KEYCHANGE' importing rclist = rclist tables dd03p_tab_a = dd03p_tab_a dd03p_tab_n = dd03p_tab_n chkfields = tab_of_chkfields.

DD_TBFD_CHK_TABLELENGTH call function 'DD_TBFD_CHK_TABLELENGTH' exporting allowed_length = maxtablen list_of_excepttabs = ' ' importing rc = rc tables dd03p_tab = dd03p_tab.

DD_TBFD_CHK_REFERENCE call function 'DD_TBFD_CHK_REFERENCE' exporting referencec = referencec tables dd03p_tab = dd03p_tab reference_tab = reference_tab.

DD_TBFD_CHK_DELFIELD call function 'DD_TBFD_CHK_DELFIELD' exporting delfieldc = delfieldc tables aggfld_tab = aggfld_tab dd03p_tab_a = dd03p_tab_a dd03p_tab_n = dd03p_tab_n reffld_tab = reffld_tab.

DD_TBFD_CHK_POOL call function 'DD_TBFD_CHK_POOL' exporting dd06v_wa = dd06v_wa poolcheckc = poolcheckc importing rclist = rclist tables dd03p_tab = dd03p_tab dd16v_tab = dd16v_tab errfld = errfld.

DD_DDTYPE_TO_ABAPTYPE call function 'DD_DDTYPE_TO_ABAPTYPE' exporting ddlen = dd03p_tmp-leng ddtype = dd03p_tmp-datatype importing ablen = dd03p_tmp-intlen abtype_int = dd03p_tmp-inttype exceptions illegal_value = 01.

TRINT_CHECK_CENTRAL_BASIS_TABL call function 'TRINT_CHECK_CENTRAL_BASIS_TABL' exporting iv_tabname = tabname exceptions missing_tadir = 1 central_basis = 2 others = 3.

SEO_CLIF_GET_MULTIPLE call function 'SEO_CLIF_GET_MULTIPLE' exporting cifkeys = cifkeys version = '1' "realised not modelled state = '1' "active importing classes = classes interfaces = interfaces not_existing = not_existing.

TR_GET_NAMESPACE_AND_ROLE call function 'TR_GET_NAMESPACE_AND_ROLE' exporting iv_pgmid = r3tr iv_object = tabl iv_objname = tab importing ev_namespace = tabl_namespace ev_role = tabl_role exceptions namespace_not_existing = 1 invalid_object = 2 others = 3.

TR_READ_NAMESPACE





call function 'TR_READ_NAMESPACE' exporting iv_namespace = prefix importing es_trnspace = trnspace_wa exceptions namespace_not_existing = 1 others = 2.

TR_VALID_NAMESPACE_LIST call function 'TR_VALID_NAMESPACE_LIST' exporting iv_edit_only = ' ' iv_producer_only = 'X' iv_licensed_only = ' ' iv_display_as_f4_list = ' ' * IMPORTING * ES_SELECTED_NAMESPACE = * EV_LINE_SELECTED = * TABLES * ET_NAMESPACE = exceptions no_valid_namespace_found = 1 others = 2.

DD_TABL_USAGE * call function 'DD_TABL_USAGE' * EXPORTING * IS_DD02V = dd02v_wa * IT_DD03P = dd03p_tab[] * IT_DD05M = dd05m_tab[] * IT_DD08V = dd08v_tab[] * IT_DD35V = dd35v_tab[] * I_PRID = prid * I_WRITE = ' ' * I_CHECK = check * i_calculate = calculate * IMPORTING * RC = rc * CHANGING * CS_USAGES = usages_tab.

DD_VIHD_GET call function 'DD_VIHD_GET' EXPORTING GET_STATE = 'M' VIEW_NAME = dd02v_wa-sqltab IMPORTING DD25V_WA_N = DD25V_WA GOT_STATE = got_state EXCEPTIONS ILLEGAL_VALUE = 1 OTHERS = 2.



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