SAP Reports / Programs

RDTCMPTB SAP ABAP Report - DD Tool for Comparing ABAP Dictionary/Database/Nametab







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


Text pool values


Title: DD Tool for Comparing ABAP Dictionary/Database/Nametab
Text Symbol: 010 = Active nametab
Text Symbol: 011 = Inactive nametab
Text Symbol: 012 = Active ABAP Dictionary version
Text Symbol: 013 = Latest Dictionary version
Text Symbol: 014 = Table does not have to be converted
Text Symbol: 015 = >>>>>>> Definitions are not consistent <<<<<<<<
Text Symbol: 016 = > Definitions are consistent. No conversion <<
Text Symbol: 008 = Error with nametab generation from the latest DD
Text Symbol: 000 = D e f i n i t i o n C o m p a r e P r o g r a m
Text Symbol: 001 = Active nametab of table: & does not exist
Text Symbol: 002 = Table: & does not exist in the database
Text Symbol: 003 = Active nametab fields not found. Inconsistency
Text Symbol: 004 = Inactive nametab of the table: & does not exist
Text Symbol: 005 = Inactive nametab fields not found. Error
Text Symbol: 006 = >>>>>>>>>> Internal Information <<<<<<<<<<<
Text Symbol: 007 = Error when generating a nametab from the active DD
Text Symbol: 026 = Call consistency check
Text Symbol: 027 = Field name
Text Symbol: 028 = Position
Text Symbol: 029 = >>>>>> Definitions are consistent <<<<<<<<<<<<<<
Text Symbol: 030 = Inconsistency between Dictionary + database
Text Symbol: 031 = Runtime errors may occur when you access the table
Text Symbol: 032 = Consistency must be restored
Text Symbol: 033 = Please refer to the repair information
Text Symbol: 025 = Table conversion cannot correct errors
Text Symbol: 017 = Structure change can be made by SQL code
Text Symbol: 018 = Structure change must be made by means of conversion
Text Symbol: 019 = Consistency can be established through activation
Text Symbol: 020 = Action: &; Mode flag: &; Subrc: &.
Text Symbol: 021 = Consistency comparison for table: &
Text Symbol: 022 = Comparison: & - &.
Text Symbol: 023 = SQL code: -> F5
Text Symbol: 024 = Caution: system error has occurred
Text Symbol: 009 = Database
Text Symbol: 043 = Nametab header unchanged
Text Symbol: 044 = Discrepancies exist in the nametab header
Text Symbol: 045 = Nametab fields unchanged





Text Symbol: 046 = Discrepancies exist in the nametab fields
Text Symbol: 047 = Nametab version
Text Symbol: 048 = New in the Dictionary version
Text Symbol: 049 = Deleted from the Dictionary
Text Symbol: 050 = Changed (Dictionary)
Text Symbol: 042 = Nametab must be activated to ensure completeness
Text Symbol: 034 = or consult your SAP Basis consultant
Text Symbol: 035 = Table does not exist in the database
Text Symbol: 036 = Error occurred when writing the nametab
Text Symbol: 037 = Nametab reconstructed from database definition
Text Symbol: 038 = Nametab reconstructed. C a u t i o n
Text Symbol: 039 = Important data lost!
Text Symbol: 040 = Activate table in transaction SE11
Text Symbol: 041 = Nametab and database are now consistent
Text Symbol: 060 = Generated SQL statements
Text Symbol: 061 = Active nametab header
Text Symbol: 062 = Details: -> F5
Text Symbol: 063 = Field comparison (details) -> F6
Text Symbol: 064 = Field structure is unchanged
Text Symbol: 065 = Nametab header generated from active DD sources
Text Symbol: 100 = A change has been made to the primary key
Text Symbol: 059 = This is an interim solution only
Text Symbol: 051 = Changed (nametab)
Text Symbol: 052 = Changed internally
Text Symbol: 053 = Field structure was changed
Text Symbol: 054 = Fields were inserted / deleted
Text Symbol: 055 = Fields were modified (type and length change)
Text Symbol: 056 = Active DD definition corresponds to the nametab
Text Symbol: 057 = Technical information -> F5
Text Symbol: 058 = Table


INCLUDES used within this REPORT RDTCMPTB

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:

DB_EXISTS_TABLE CALL FUNCTION 'DB_EXISTS_TABLE' EXPORTING TABNAME = TABELLE IMPORTING SUBRC = RC.

DD_GET_NAMETAB CALL FUNCTION 'DD_GET_NAMETAB' EXPORTING STATUS = STATUS TABNAME = TABELLE IMPORTING * F_STATUS = I01 R_MODEFLAG = R_MODEFLAG R_STATUS = R_STATUS X030L_WA = X030L_WA TABLES X031L_TAB = X031L_TAB EXCEPTIONS NOT_FOUND = 01 NO_FIELDS = 02.

DD_NTAB_GEN CALL FUNCTION 'DD_NTAB_GEN' EXPORTING DD02V_WA = DD02V_WA_A DD09L_WA = DD09L_WA_A INCL_ALIGN = 'X' IMPORTING X030L_WA = X030L_WA TABLES DD03P_TAB = DD03P_TAB_A DD08V_TAB = DD08V_TAB_A X031L_TAB = X031L_TAB EXCEPTIONS WRONG_DATATYPE = 01 WRONG_TABTYPE = 02.






DD_NTAB_GEN CALL FUNCTION 'DD_NTAB_GEN' EXPORTING DD02V_WA = DD02V_WA_N DD09L_WA = DD09L_WA_N INCL_ALIGN = 'X' IMPORTING X030L_WA = X030L_WA TABLES DD03P_TAB = DD03P_TAB_N DD08V_TAB = DD08V_TAB_N X031L_TAB = X031L_TAB EXCEPTIONS WRONG_DATATYPE = 01 WRONG_TABTYPE = 02.

DD_DBNT_TO_SAPNT_MAP CALL FUNCTION 'DD_DBNT_TO_SAPNT_MAP' EXPORTING EXEC_MODE = 'R' TABNAME = TABELLE PRID = 0 IMPORTING X030L_WA = X030L_WA TABLES X031L_TAB = X031L_TAB EXCEPTIONS MAPPING_NOT_POSSIBLE = 01.

DD_TABL_GET CALL FUNCTION 'DD_TABL_GET' EXPORTING GET_STATE = STATE LANGU = SY-LANGU PRID = PRT_ID TABL_NAME = TABELLE WITHTEXT = ' ' IMPORTING DD02V_WA_A = DD02V_WA_A DD02V_WA_N = DD02V_WA_N DD09L_WA_A = DD09L_WA_A DD09L_WA_N = DD09L_WA_N GOT_STATE = GOT_STATE TABLES DD03P_TAB_A = DD03P_TAB_A DD03P_TAB_N = DD03P_TAB_N DD05M_TAB_A = DD05M_TAB_A DD05M_TAB_N = DD05M_TAB_N DD08V_TAB_A = DD08V_TAB_A DD08V_TAB_N = DD08V_TAB_N DD12V_TAB_A = DD12V_TAB_A DD12V_TAB_N = DD12V_TAB_N DD17V_TAB_A = DD17V_TAB_A DD17V_TAB_N = DD17V_TAB_N EXCEPTIONS ACCESS_FAILURE = 01.

DD_PUT_NAMETAB CALL FUNCTION 'DD_PUT_NAMETAB' EXPORTING * MODEFLAG = E01 STATUS = ASTATUS " Schreibe aktive Version.

DD_DECIDE CALL FUNCTION 'DD_DECIDE' EXPORTING ACTION = ACTION MODEFLAG = MODEFLAG MODUS = MODUS PROT_ID = DUMMY_ID NO_PROG = 'X' NO_EXISTS_CHECK = 'X' X030L_NEW = X030L_WA_NEW X030L_OLD = X030L_WA_OLD IMPORTING R_ACTION = R_ACTION R_MODEFLAG = R_MODEFLAG R_SUBRC = R_SUBRC TABLES PSTATEMENTS = STATEMENTS X031L_NEW = X031L_TAB_NEW X031L_OLD = X031L_TAB_OLD.

DD_WRITE_NAMETAB_COMPARE * CALL FUNCTION 'DD_WRITE_NAMETAB_COMPARE' * EXPORTING * NT_HEAD = X030L_WA_OLD * NT_HEAD_CMP = X030L_WA_NEW * SHORTNT = ' ' * TABLES * NT_FIELDS = X031L_TAB_NEW * NT_FIELDS_CMP = X031L_TAB_NEW.



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