DTREG SAP (Downtime Entered) Structure details
Description: Downtime Entered
Structure field list including key, data, relationships and ABAP select examples
DTREG is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Downtime Entered" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_DTREG TYPE DTREG.
The DTREG table consists of various fields, each holding specific information or linking keys about Downtime Entered data available in SAP. These include WERK (Plant), ARBPL (Work center), DTRNU (Internal Counter), OBJTY (Object types of the CIM resource).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP DTREG structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
WERK | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
ARBPL | Work center | ARBPL | CHAR | 8 | ARBPL | AGR | |||
DTRNU | Internal Counter | DTRNR | NUMC | 10 | DT_COUNT | ||||
OBJTY | Object types of the CIM resource | CR_OBJTY | CHAR | 2 | CR_OBJTY | ||||
OBJID | Object ID of the resource | CR_OBJID | NUMC | 8 | Assigned to domain | CR_OBJID | |||
KAPID | Capacity ID | KAPID | NUMC | 8 | Assigned to domain | KAPID | |||
KAPAR | Capacity category | KAPART | CHAR | 3 | Assigned to domain | KAPART | CAA | ||
DTELI | Downtime Element ID | DTELI | CHAR | 8 | DTELID | DTELID | |||
DTELT | Description of the Downtime Element | DTELT | CHAR | 40 | DTELTX | ||||
DTDAT | Downtime Date | DTDAT | DATS | 8 | DATUM | ||||
SCHNR | Shift number of the available capacity | SCHICHTNR | NUMC | 1 | NUM01 | ||||
TEAM | Person Responsible for Control Area | MANNSCHAFT | CHAR | 8 | CHAR8 | ||||
DTEH | Downtime Unit | DTEH | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
DTDVO | Default Duration of Downtimes | DTDVO | QUAN | 13(3) | MENG13 | ||||
DTDPL | Planned Duration of Downtime | DTDPL | QUAN | 13(3) | MENG13 | ||||
DTDER | Duration Entered for Downtimes | DTDER | QUAN | 13(3) | MENG13 | ||||
ANDAT | Creation Date of Downtime | DTANDAT | DATS | 8 | DATUM | ||||
ANLEG | Downtimes Created By | DTANLEG | CHAR | 12 | USNAM | ||||
AEDAT | Changed On | AEDAT | DATS | 8 | DATUM | ||||
AENZT | Changed At | AENZT | TIMS | 6 | TIME | ||||
AENAM | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
DELTA | Last Changed | DTDELTA | QUAN | 13(3) | MENG13 | ||||
LTFLAG | Long Text Indicator | LTFLAG | CHAR | 1 | CHAR1 | ||||
RFLAG | Work Center Indicator | RFLAG | CHAR | 1 | CHAR1 |
Key field | Non-key field |
How do I retrieve data from SAP structure DTREG using ABAP code?
As DTREG is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on DTREG as there is no data to select.How to access SAP table DTREG
Within an ECC or HANA version of SAP you can also view further information about DTREG and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects