SAP Reports / Programs | Basis Components | ABAP Workbench, Java IDE and Infrastructure | Activation Program, Conversion Program, DB Utility, MC, SPDD(BC-DWB-DIC-AC) SAP BC

RDDGEN01 SAP ABAP Report - DD: Table Generation Program - Functions







RDDGEN01 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 RDDGEN01 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 RDDGEN01. "Basic submit
SUBMIT RDDGEN01 AND RETURN. "Return to original report after report execution complete
SUBMIT RDDGEN01 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: BATCH = Background
Selection Text: COMFILE = Transport request
Selection Text: CONTROL = Output type: T-Test,R-Report,S
Selection Text: DATASET = Sequential file
Selection Text: FCT = Function: CRE, DEL, CMP, CNV,
Selection Text: IXPRIQTY = Initial storage size
Selection Text: IXSECQTY = Storage size for extension
Selection Text: NAMETAB = Comparison with DB catalog
Selection Text: NEWOWNER = New table owner
Selection Text: OLDOWNER = Current table owner
Selection Text: PRIQTY = Initial storage size
Selection Text: PROTNAME = Log name
Selection Text: SAPTAB = SAP table (X, space)
Selection Text: SECQTY = Storage size for extension
Selection Text: SEPARATE = Generate single programs
Selection Text: TABNAME = Table Name
Selection Text: TEST = TEST
Title: DD: Table Generation Program - Functions
Text Symbol: 118 = The table was activated
Text Symbol: 122 = In alphabetical order, first field changed is
Text Symbol: 124 = There is a backup copy of this table
Text Symbol: 125 = If necessary, it can be deleted with SE14, menu "Utilities"
Text Symbol: 130 = INSERT statement produces DUPLICATE RECORD error
Text Symbol: 131 = Lock for SELECT statement reached
Text Symbol: 132 = Error in SAPDSQL
Text Symbol: 133 = Specified database does not exist
Text Symbol: 136 = ALTER TABLE statement not supported in ABAP
Text Symbol: 137 = Nametab format
Text Symbol: 138 = is no longer supported in the ABAP Dictionary
Text Symbol: 139 = Inconsistency between nametab and field catalog
Text Symbol: 144 = Specified new DB table already exists
Text Symbol: 150 = Format
Text Symbol: 117 = Activate table
Text Symbol: 116 = Adjust the table screen
Text Symbol: 115 = Enter the database for the tablespace in TPTAB
Text Symbol: 114 = System contains several tablespaces with the same name
Text Symbol: 113 = Logical pooled/cluster tables need not be created
Text Symbol: 112 = Error string





Text Symbol: 111 = HEADERDD02L provides an undocumented result
Text Symbol: 107 = Nametab generation cancelled with error, error number
Text Symbol: 106 = No statement generated
Text Symbol: 105 = GETDD03P changed DDERR string instead of ERR string
Text Symbol: 103 = Function canceled
Text Symbol: 102 = This should not occur, value
Text Symbol: 101 = Unknown comparison result
Text Symbol: 100 = Generated statement last executed produces result
Text Symbol: 098 = Call "Check" function in the DD table maintenance
Text Symbol: 911 = 911
Text Symbol: 910 = 910
Text Symbol: 907 = Internal error (see log)
Text Symbol: 906 = Tables with long fields (>255 bytes) cannot be converted
Text Symbol: 905 = TPTAB entry found
Text Symbol: 904 = TPIND entry found
Text Symbol: 902 = No entry found in TPIND
Text Symbol: 900 = No entry found in TPTAB
Text Symbol: 201 = Use background conversion
Text Symbol: 179 = Error copying data to other clients
Text Symbol: 178 = Fields could not be added
Text Symbol: 177 = Table could not be created
Text Symbol: 176 = Temporary table could not be created
Text Symbol: 175 = Parameters could not be set
Text Symbol: 171 = Call UNLOCK
Text Symbol: 170 = DB table modification was successful
Text Symbol: 169 = Failed to create log record for table $ with RC $
Text Symbol: 168 = Object locked by user $ in DB utility
Text Symbol: 164 = Data was copied to $ clients
Text Symbol: 163 = Table $ contains the following duplicate records:
Text Symbol: 162 = Table is already active
Text Symbol: 160 = DUPLICATE RECORD errors occurred
Text Symbol: 159 = DUPLICATE RECORD error occurred during reloading
Text Symbol: 158 = Table unloaded
Text Symbol: 157 = This function must be called with "Generate report"
Text Symbol: 156 = Specify valid program parameters
Text Symbol: 155 = Restart successful
Text Symbol: 154 = This function must be called with "Execute immediately"
Text Symbol: 151 = Error type
Text Symbol: 096 = Key of entity table changed





Text Symbol: 049 = Records
Text Symbol: 043 = Table definitions are identical
Text Symbol: 042 = Table deleted
Text Symbol: 041 = Table created
Text Symbol: 040 = Table conversion successful
Text Symbol: 038 = Command file could not be opened
Text Symbol: 037 = Command file locked by another user
Text Symbol: 036 = Command file already released
Text Symbol: 034 = Table already exists
Text Symbol: 032 = ABAP Dictionary definition does not exist
Text Symbol: 031 = Valid output type in this case is S or R
Text Symbol: 030 = Generation of an SQL script not possible for this table
Text Symbol: 029 = Only creation of TRANSP tables is supported
Text Symbol: 028 = Table is in the database
Text Symbol: 027 = Changed
Text Symbol: 026 = Table class changed to
Text Symbol: 025 = Tables do not have common fields (data loss after conversion)
Text Symbol: 023 = Definitions are not identical, key formats have changed
Text Symbol: 022 = Definitions are not identical, field formats changed
Text Symbol: 021 = Fields have been added, deleted, or sequence changed
Text Symbol: 020 = Table is being processed
Text Symbol: 018 = Fields were added at the end
Text Symbol: 017 = Table not in the database
Text Symbol: 016 = Table inactive in DD
Text Symbol: 015 = Table locked by user
Text Symbol: 014 = You have no authorization for table
Text Symbol: 013 = Table type not supported
Text Symbol: 012 = Activation program locked by
Text Symbol: 011 = Table in DD is locked by
Text Symbol: 010 = Fields of new DD table cannot be filled
Text Symbol: 009 = Table locked by correction system (TADIR)
Text Symbol: 008 = Current nametab does not contain any fields
Text Symbol: 007 = Current nametab does not exist
Text Symbol: 006 = New DD definition does not exist
Text Symbol: 005 = Data conversion unnecessary in this case
Text Symbol: 004 = Consistency check cancelled due to error
Text Symbol: 003 = Logical pooled/cluster table contains no data
Text Symbol: 002 = Definitions are identical
Text Symbol: 095 = Error in foreign key or check table



Text Symbol: 094 = Error in external field reference
Text Symbol: 093 = Error in internal field reference
Text Symbol: 092 = Referential field error
Text Symbol: 091 = Values for field attributes are incorrect
Text Symbol: 090 = Values for table attributes are incorrect
Text Symbol: 089 = Table definition changed
Text Symbol: 088 = Table or activation locked
Text Symbol: 087 = Field name does not have the correct form
Text Symbol: 086 = Fields cannot be filled
Text Symbol: 085 = Table name does not have correct form
Text Symbol: 084 = Table does not exist
Text Symbol: 083 = Error in table attributes
Text Symbol: 082 = Index error
Text Symbol: 081 = Nametab generation not successful
Text Symbol: 080 = Key length changed, otherwise structure is unchanged
Text Symbol: 079 = Key structure has changed
Text Symbol: 078 = Definitions are not identical
Text Symbol: 077 = New name is
Text Symbol: 076 = Name of the physical pool/cluster structure has changed
Text Symbol: 074 = Call function again
Text Symbol: 073 = No utility lock entry exists for this table
Text Symbol: 071 = Program with report calls has been stored
Text Symbol: 070 = Enter correct function
Text Symbol: 069 = Generated statements are stored in file, file name
Text Symbol: 067 = Fields at the end deleted
Text Symbol: 066 = Enter correct nametab ID (S=SAP nametab, D=DB catalog)
Text Symbol: 064 = Generated statements are stored in the spool file, spool number
Text Symbol: 063 = Generated statements are stored in the program
Text Symbol: 059 = Enter correct output type
Text Symbol: 058 = Enter execution type T, R or D for a command file
Text Symbol: 057 = Parameter combination not allowed
Text Symbol: 056 = Pooled or cluster table: fields at the end were deleted
Text Symbol: 054 = Table does not contain any data
Text Symbol: 053 = Either pooled table or data does not exist
Text Symbol: 052 = Dynamic SQL not possible in the background
Text Symbol: 051 = Please enter table name or command file
Text Symbol: 050 = Table contains


INCLUDES used within this REPORT RDDGEN01

INCLUDE RD5GTTXT.


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_COMPARE_TAB * CALL FUNCTION 'DD_COMPARE_TAB' * EXPORTING * SAPTAB = SAPTAB * SOURCE1 = 'B' " Datenbank * SOURCE2 = 'D' " Data Dictionary * TABNAME = NAME * VERS1 = 'A' " egal * VERS2 = 'A' " aktive Version * IMPORTING * FIELDNAME = VERR-FIELDNAME * SUBRC = SUBRC.

DD_GET_DD03P * CALL FUNCTION 'DD_GET_DD03P' * EXPORTING ** DEFSTATUS = 'A' " Status der Datenelemente u.

CALL FUNCTION * STMTAB-LINE = 'CALL FUNCTION ''DB_SET_TABLE_PARAMETER'' '.

CALL FUNCTION * STMTAB-LINE = 'CALL FUNCTION ''DB_SET_TABLE_PARAMETER'' '.

CALL FUNCTION * STMTAB-LINE = 'CALL FUNCTION ''DB_SET_TABLE_PARAMETER'' '.

CALL FUNCTION * STMTAB-LINE = 'CALL FUNCTION ''DD_NAMETAB_TO_DDFIELDS'' '.

CALL FUNCTION * STMTAB-LINE = 'CALL FUNCTION ''DB_CREATE_TABLE'' '.

DD_GET_NAMETAB * CALL FUNCTION 'DD_GET_NAMETAB' * EXPORTING * STATUS = 'M' * TABNAME = TNAME * IMPORTING ** F_STATUS = I01 ** R_MODEFLAG = I02 * R_STATUS = R_STATUS * X030L_WA = X030L * TABLES * X031L_TAB = X031L.

DD_PUT_NAMETAB * CALL FUNCTION 'DD_PUT_NAMETAB' * EXPORTING ** MODEFLAG = E01 * STATUS = 'A' * X030L_WA = X030L * TABLES * X031L_TAB = X031L.

DB_EXISTS_TABLE ** CALL FUNCTION 'DB_EXISTS_TABLE' EXPORTING TABNAME = TNAME ** IMPORTING SUBRC = SUBRC.

DD_GET_NAMETAB_HEADER * CALL FUNCTION 'DD_GET_NAMETAB_HEADER' * EXPORTING * STATUS = NTFLAG * TABNAME = TABNAME * IMPORTING ** R_MODEFLAG = I01 ** R_STATUS = I02 * X030L_WA = X030L_WA.



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