MCS07 SAP (Structure for Combining Key Figure and Its Unit) Structure details
Description: Structure for Combining Key Figure and Its Unit
Structure field list including key, data, relationships and ABAP select examples
MCS07 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 "Structure for Combining Key Figure and Its Unit" 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_MCS07 TYPE MCS07.
The MCS07 table consists of various fields, each holding specific information or linking keys about Structure for Combining Key Figure and Its Unit data available in SAP. These include GSTRU (Generated DDIC table for LIS, conditions, messages), LFNR2 (Serial number), STFNA (Field name in the generated DDIC structure), QUTAB (Reference table).. 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: Cannot Be Enhanced
SAP MCS07 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 |
GSTRU | Generated DDIC table for LIS, conditions, messages | GSTRU | CHAR | 30 | Assigned to domain | AS4TAB | |||
LFNR2 | Serial number | LFNR3 | NUMC | 3 | LFNR3 | ||||
STFNA | Field name in the generated DDIC structure | STFNA | CHAR | 30 | Assigned to domain | FDNAME | |||
QUTAB | Reference table | QUTAB | CHAR | 30 | TABNAME | ||||
QUFNA | Table field for document structure | QUFNA | CHAR | 30 | Assigned to domain | FDNAME | |||
KINCL | Set indicator if source table is an Include structure | KINCL | CHAR | 1 | X | ||||
SFEIN | Unit of statistics field | SFEIN | CHAR | 2 | TMC6 | SFEIN | |||
SEFNA | Unit field name of a key figure | SEFNA | CHAR | 30 | Assigned to domain | FDNAME | |||
SQTAB | Source table | SQTAB | CHAR | 30 | TABNAME | ||||
SQFNA | Source Field | SQFNA | CHAR | 30 | Assigned to domain | FDNAME | |||
QFEIN | Unit of source field in statistics updating | QFEIN | CHAR | 2 | TMC6 | SFEIN | |||
TABNAME | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
FIELDNAME | Field Name | FIELDNAME | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
LANGU | Language Key | DDLANGUAGE | LANG | 1 | Assigned to domain | ISOLA | SPRAS | ||
POSITION | Position of the field in the table | TABFDPOS | NUMC | 4 | AS4POS | ||||
OFFSET | Offset of a field | DOFFSET | NUMC | 6 | DOFFSET | ||||
DOMNAME | Domain name | DOMNAME | CHAR | 30 | Assigned to domain | DOMNAME | DD_DOMA | ||
ROLLNAME | Data element (semantic domain) | ROLLNAME | CHAR | 30 | Assigned to domain | ROLLNAME | ROL | DD_DTEL | |
CHECKTABLE | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
LENG | Length (No. of Characters) | DDLENG | NUMC | 6 | DDLENG | ||||
INTLEN | Internal Length in Bytes | INTLEN | NUMC | 6 | DDLENG | ||||
OUTPUTLEN | Output Length | OUTPUTLEN | NUMC | 6 | DDLENG | ||||
DECIMALS | Number of Decimal Places | DECIMALS | NUMC | 6 | DDLENG | ||||
DATATYPE | ABAP/4 Dictionary: Screen data type for Screen Painter | DYNPTYPE | CHAR | 4 | DATATYPE | ||||
INTTYPE | ABAP data type (C,D,N,...) | INTTYPE | CHAR | 1 | INTTYPE | ||||
REFTABLE | Table for reference field | REFTABLE | CHAR | 30 | Assigned to domain | AS4TAB | |||
REFFIELD | Reference field for currency and qty fields | REFFIELD | CHAR | 30 | Assigned to domain | FDNAME | |||
PRECFIELD | Name of included table | PRECFIELD | CHAR | 30 | Assigned to domain | FDNAME | |||
AUTHORID | Authorization class | AUTHORID | CHAR | 3 | AUTHORID | ||||
MEMORYID | Set/Get parameter ID | MEMORYID | CHAR | 20 | Assigned to domain | MEMORYID | |||
LOGFLAG | Indicator for writing change documents | LOGFLAG | CHAR | 1 | AS4FLAG | ||||
MASK | Template (not used) | AS4MASK | CHAR | 20 | AS4MASK | ||||
MASKLEN | Template length (not used) | MASKLEN | NUMC | 4 | MASKLEN | ||||
CONVEXIT | Conversion Routine | CONVEXIT | CHAR | 5 | CONVEXIT | ||||
HEADLEN | Maximum length of heading | HEADLEN | NUMC | 2 | SCRLEN | ||||
SCRLEN1 | Max. length for short field label | SCRLEN_S | NUMC | 2 | SCRLEN | ||||
SCRLEN2 | Max. length for medium field label | SCRLEN_M | NUMC | 2 | SCRLEN | ||||
SCRLEN3 | Max. length for long field label | SCRLEN_L | NUMC | 2 | SCRLEN | ||||
FIELDTEXT | Short Description of Repository Objects | AS4TEXT | CHAR | 60 | AS4TEXT | ||||
REPTEXT | Heading | REPTEXT | CHAR | 55 | REPTEXT | ||||
SCRTEXT_S | Short Field Label | SCRTEXT_S | CHAR | 10 | SCRTEXT_S | ||||
SCRTEXT_M | Medium Field Label | SCRTEXT_M | CHAR | 20 | SCRTEXT_M | ||||
SCRTEXT_L | Long Field Label | SCRTEXT_L | CHAR | 40 | SCRTEXT_L | ||||
KEYFLAG | Identifies a key field of a table | KEYFLAG | CHAR | 1 | KEYFLAG | ||||
LOWERCASE | Lowercase letters allowed/not allowed | LOWERCASE | CHAR | 1 | AS4FLAG | ||||
MAC | Flag if search help is attached to the field | DDSHATTACH | CHAR | 1 | DDBOOL | ||||
GENKEY | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
NOFORKEY | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
VALEXI | Existence of fixed values | VALEXI | CHAR | 1 | AS4FLAG | ||||
NOAUTHCH | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
SIGN | Flag for sign in numerical fields | SIGNFLAG | CHAR | 1 | AS4FLAG | ||||
DYNPFLD | Flag: field to be displayed on the screen | DYNPROFLD | CHAR | 1 | AS4FLAG | ||||
F4AVAILABL | Does the field have an input help | DDF4AVAIL | CHAR | 1 | DDBOOL | ||||
COMPTYPE | DD: Component Type | COMPTYPE | CHAR | 1 | COMPTYPE | ||||
LFIELDNAME | Field name | FNAM_____4 | CHAR | 132 | DYNFNAM | ||||
LTRFLDDIS | Basic write direction has been defined LTR (left-to-right) | DDLTRFLDDI | CHAR | 1 | DDBOOL | ||||
BIDICTRLC | DD: No Filtering of BIDI Formatting Characters | DDBIDICTRL | CHAR | 1 | DDBOOL | ||||
OUTPUTSTYLE | DD: Output Style (Output Style) for Decfloat Types | OUTPUTSTYLE | NUMC | 2 | OUTPUTSTYLE | ||||
NOHISTORY | DD: Flag for Deactivating Input History in Screen Field | DDNOHISTORY | CHAR | 1 | DDBOOL | ||||
AMPMFORMAT | DD: Indicator whether AM/PM time format is required | DDAMPMFORMAT | CHAR | 1 | DDAMPMFORMAT |
Key field | Non-key field |
How do I retrieve data from SAP structure MCS07 using ABAP code?
As MCS07 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 MCS07 as there is no data to select.How to access SAP table MCS07
Within an ECC or HANA version of SAP you can also view further information about MCS07 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