SAP Reports / Programs

RUTCHKNT SAP ABAP Report - DD: ABAP Dictionary/runtime objects consistency check







RUTCHKNT 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 RUTCHKNT 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 RUTCHKNT. "Basic submit
SUBMIT RUTCHKNT AND RETURN. "Return to original report after report execution complete
SUBMIT RUTCHKNT 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: P_INACT = Check against inactive nametab
Title: DD: ABAP Dictionary/runtime objects consistency check
Text Symbol: 407 = View field &
Text Symbol: 408 = Field at wrong position
Text Symbol: 411 = FRK field not in generated structure
Text Symbol: 412 = Too many FRK fields in generated struct.
Text Symbol: 413 = FRK field &
Text Symbol: 414 = FRK field at wrong position
Text Symbol: 501 = Srch hlp attachm. to fld & missing
Text Symbol: 502 = Too many search help attachm. to field &
Text Symbol: 503 = Srch help attachm. to &
Text Symbol: 504 = Too many search help attachm. to the view
Text Symbol: 505 = Srch hlp attach. to view missing
Text Symbol: 511 = Srch hlp field not in gen. structure
Text Symbol: 512 = Too many srch hlp fields in gen. struc
Text Symbol: 513 = Attachm. field &
Text Symbol: 514 = SH field at wrong position
Text Symbol: 601 = $: $ Act: $ Exp: $
Text Symbol: 902 = Srch help header
Text Symbol: 905 = Inclusion not in stored search help
Text Symbol: 906 = Inclusion only in stored search help
Text Symbol: 907 = Inclusion &
Text Symbol: 908 = Parameter not in stored search help
Text Symbol: 909 = Parameter only in stored search help
Text Symbol: 910 = Parameter &
Text Symbol: 911 = Attachment not in stored search help
Text Symbol: 912 = Attachment only in stored search help
Text Symbol: 913 = Attachm. &
Text Symbol: 920 = Inclusion at wrong position
Text Symbol: 921 = Parameter at wrong position
Text Symbol: 922 = Assignment at wrong position
Text Symbol: 406 = Too many fields in generated struct.
Text Symbol: 001 = NT header
Text Symbol: 002 = Gen. view structure
Text Symbol: 003 = There is a DB view with the same name
Text Symbol: 004 = Only exists in Dictionary as view structure
Text Symbol: 006 = There is a DB table with teh same name.
Text Symbol: 007 = Needed for open conversion





Text Symbol: 008 = Active in Dictionary as &T.
Text Symbol: 009 = Created in Tadir as &T.
Text Symbol: 010 = Nametab type form: & &,
Text Symbol: 011 = Time stamp: &
Text Symbol: 020 = (Shift of position)
Text Symbol: 070 = Key field & not set to NOT NULL
Text Symbol: 101 = Object is partially active as dep. obj.
Text Symbol: 102 = Nametab does not exist
Text Symbol: 103 = Error when generating nametab from DD source
Text Symbol: 104 = Table not defined in the Dictionary
Text Symbol: 105 = Error expanding substructures
Text Symbol: 106 = SQL table not defined in the Dictionary
Text Symbol: 107 = SQL tabelle: Technical settings cannot be read
Text Symbol: 108 = Error generating the view structure
Text Symbol: 109 = View structure exists for entity view
Text Symbol: 110 = View structure does not exist
Text Symbol: 111 = View structure could not be generated
Text Symbol: 112 = Data element not defined in Dictionary
Text Symbol: 120 = Table type not defined in the Dictionary
Text Symbol: 302 = Field not in active nametab
Text Symbol: 303 = Too many fields in act. nametab
Text Symbol: 304 = NT field &
Text Symbol: 305 = Field at wrong position
Text Symbol: 403 = FRK for &
Text Symbol: 405 = Field not in generated structure


INCLUDES used within this REPORT RUTCHKNT

INCLUDE RADBTMAC.
INCLUDE RADBTOUM.
INCLUDE RADNTCON.


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:

DD_MSCHK_ACT_REPAIR CALL FUNCTION 'DD_MSCHK_ACT_REPAIR' EXPORTING objtype = objdir-object objname = objdir-obj_name fct = 'A' prid = prid.

DD_GET_NAMETAB CALL FUNCTION 'DD_GET_NAMETAB' EXPORTING status = status tabname = tabname get_all = 'X' IMPORTING * F_STATUS = * R_MODEFLAG = * R_STATUS = x030l_wa = x030l_nt TABLES x031l_tab = x031l_nt EXCEPTIONS not_found = 4 no_fields = 4 OTHERS = 4.

DD_TABL_GET CALL FUNCTION 'DD_TABL_GET' EXPORTING get_state = get_state prid = prid tabl_name = tabname withtext = ' ' add_typeinfo = 'D' IMPORTING dd02v_wa_a = dd02v_wa_a dd09l_wa_a = dd09l_wa_a got_state = got_state TABLES dd03p_tab_a = dd03p_tab_a dd05m_tab_a = dd05m_tab_a dd08v_tab_a = dd08v_tab_a dd35v_tab_a = dd35v_tab_a dd36m_tab_a = dd36m_tab_a EXCEPTIONS access_failure = 01.

DD_SQLT_GET CALL FUNCTION 'DD_SQLT_GET' EXPORTING get_state = get_state_s name = sqltab prid = prid withtext = ' ' IMPORTING dd06v_wa_a = dd06v_wa_a got_state = got_state_s TABLES dd16v_tab_a = dd16v_tab_a dd16v_tab_n = dd16v_tab_n "not optional! EXCEPTIONS access_failure = 01 illegal_value = 02.

DD_TABT_GET





CALL FUNCTION 'DD_TABT_GET' EXPORTING GET_STATE = get_state_tabt PRID = prid TABL_NAME = tabtname * TRACELEVEL = 0 IMPORTING DD09L_WA_A = dd09l_wa_a GOT_STATE = got_state_tabt EXCEPTIONS ILLEGAL_VALUE = 1 OP_FAILURE = 2 OTHERS = 3.

DD_DTEL_GET CALL FUNCTION 'DD_DTEL_GET' EXPORTING get_state = get_dtel_state langu = sy-langu prid = prid roll_name = tabname withtext = 'X' IMPORTING dd04l_wa_a = dd04l_wa_a * dd04l_wa_n = dd04l_wa_n dd01l_wa = dd01l_wa got_state = got_dtel_state * tpara_wa = tpara_wa TABLES dd04t_tab_a = dd04t_tab_a * dd04t_tab_n = dd04t_tab_n EXCEPTIONS * illegal_value = 1.

DD_TTYP_GET CALL FUNCTION 'DD_TTYP_GET' EXPORTING get_state = get_ttyp_state langu = sy-langu prid = 0 ttyp_name = tabname withtext = ' ' IMPORTING dd40v_wa_a = dd40v_wa_a * dd40v_wa_n = dd40v_wa_n got_state = got_ttyp_state TABLES dd42v_tab_a = dd42v_tab_a * dd42v_tab_n = dd42v_tab_n dd43v_tab_a = dd43v_tab_a EXCEPTIONS * illegal_value = 1 * op_failure = 2 OTHERS = 8.

DD_NTAB_GEN CALL FUNCTION 'DD_NTAB_GEN' EXPORTING dd02v_wa = dd02v_wa dd09l_wa = dd09l_wa incl_align = 'X' IMPORTING x030l_wa = x030l_wa TABLES dd03p_tab = dd03p_tab dd08v_tab = dd08v_tab x031l_tab = x031l_tab EXCEPTIONS wrong_datatype = 01 wrong_tabtype = 02.

DD_TYPE_NTAB_GEN CALL FUNCTION 'DD_TYPE_NTAB_GEN' EXPORTING dd04l_wa = dd04l_wa_a dd01l_wa = dd01l_wa IMPORTING x030l_wa = x030l_tab x031l_wa = x031l_tab EXCEPTIONS wrong_datatype = 1 OTHERS = 2.

DD_TABLTYPE_NTAB_GEN CALL FUNCTION 'DD_TABLTYPE_NTAB_GEN' EXPORTING dd40v_wa = dd40v_wa_a dd41v_wa = rowtype_dd41v_tab IMPORTING x030l_wa = x030l_dd TABLES dd42v_tab = dd42v_tab_a dd43v_tab = dd43v_tab_a x031l_tab = x031l_dd EXCEPTIONS wrong_datatype = 1 wrong_fieldname = 2 OTHERS = 3.

DD_NTABCODE_TO_DDTYPE CALL FUNCTION 'DD_NTABCODE_TO_DDTYPE' EXPORTING ntcode = x031l_dd-fieldtype IMPORTING ddtype = x031l_dd-dtyp EXCEPTIONS OTHERS = 1.

DD_NTABCODE_TO_DDTYPE CALL FUNCTION 'DD_NTABCODE_TO_DDTYPE' EXPORTING ntcode = x031l_tab-fieldtype IMPORTING ddtype = x031l_tab-dtyp EXCEPTIONS OTHERS = 1.

DD_TABD_GET CALL FUNCTION 'DD_TABD_GET' EXPORTING get_state = getstate langu = sy-langu * PRID = 0 tabl_name = viewname withtext = 'X' add_typeinfo = 'D' "Auf die DD03L vertrauen IMPORTING dd02v_wa_a = dd02v_wa got_state = gotst_tabd TABLES dd03p_tab_a = dd03p_tab dd05m_tab_a = dd05m_tab dd08v_tab_a = dd08v_tab dd35v_tab_a = dd35v_tab dd36m_tab_a = dd36m_tab EXCEPTIONS OTHERS = 2.

DD_VIEW_INNER_ACT CALL FUNCTION 'DD_VIEW_INNER_ACT' EXPORTING viewname = viewname prid = prid "Test * PRID = INT_PRID mode_control = mode_control act_mode = 19 "Gen. Viewstruktur in Puffer schreiben

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = fieldtab TABLES dfies_tab = dfies * FIXED_VALUES = EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = aligntab TABLES dfies_tab = dfies * FIXED_VALUES = EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

DB_EXISTS_TABLE CALL FUNCTION 'DB_EXISTS_TABLE' EXPORTING tabname = tabname IMPORTING subrc = locrc.

DB_EXISTS_VIEW CALL FUNCTION 'DB_EXISTS_VIEW' EXPORTING viewname = tabname IMPORTING subrc = locrc.

DD_GET_NAMETAB_HEADER CALL FUNCTION 'DD_GET_NAMETAB_HEADER' EXPORTING tabname = tabname IMPORTING x030l_wa = x030l_wa EXCEPTIONS OTHERS = 2.

DD_MSCHK_ACT_REPAIR CALL FUNCTION 'DD_MSCHK_ACT_REPAIR' EXPORTING objtype = objdir-object objname = objdir-obj_name fct = 'D' prid = prid.

DD_GET_NAMETAB CALL FUNCTION 'DD_GET_NAMETAB' EXPORTING status = 'A' tabname = p_x030l-refname get_all = 'X' IMPORTING x030l_wa = ls_x030l TABLES x031l_tab = lt_x031l EXCEPTIONS not_found = 4 no_fields = 4 OTHERS = 4.

RS_VERS_COMPARE_TAB CALL FUNCTION 'RS_VERS_COMPARE_TAB' EXPORTING keylen = len offset = offset TABLES tab1 = ref_tab tab2 = cmp_tab index_tab = index_tab.



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