SMLAY SAP (Structure for Transferring Layer Data from Non-SAP Systems) Structure details
Description: Structure for Transferring Layer Data from Non-SAP Systems
Structure field list including key, data, relationships and ABAP select examples
SMLAY 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 Transferring Layer Data from Non-SAP Systems" 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_SMLAY TYPE SMLAY.
The SMLAY table consists of various fields, each holding specific information or linking keys about Structure for Transferring Layer Data from Non-SAP Systems data available in SAP. These include MYREC (Balance sheet valuation: type of data record), MYFID (LIFO Valuation: Material Groupings), MYHIST (LIFO Valuation: Type of History Data (Layer)), MYVER (LIFO Layer Version).. 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 SMLAY 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 | |||
MYREC | Balance sheet valuation: type of data record | MYREC | CHAR | 1 | MYREC | ||||
MYFID | LIFO Valuation: Material Groupings | MYFID | CHAR | 1 | MYFID | ||||
MYHIST | LIFO Valuation: Type of History Data (Layer) | MYHIST | CHAR | 1 | MYHIST | ||||
MYVER | LIFO Layer Version | MYVER | CHAR | 1 | CHAR1 | MYV | |||
MYKEY | LIFO valuation level | MYKEY | CHAR | 4 | Assigned to domain | MYKEY | MYL | ||
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
MYPOOL | Pool number for LIFO valuation | MYPOOL | CHAR | 4 | Assigned to domain | LIFO_POOL | POL | ||
GJAHR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
MYPER | Posting Period | MYPER | NUMC | 2 | NUMC2 | ||||
MYWRT | LIFO layer value (gross) | CMYWRT | NUMC | 13 | NUMC13 | ||||
MYWRN | LIFO layer value (net) | CMYWRN | NUMC | 13 | NUMC13 | ||||
MYMNG | LIFO layer quantity | CMYMNG | NUMC | 13 | NUMC13 | ||||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
PEINH | Price unit | CPEINH | NUMC | 5 | NUMC5 | ||||
PRS01 | Price for value adjustment | CPRS0X | NUMC | 11 | NUMC11 | ||||
PRS02 | Price for value adjustment | CPRS0X | NUMC | 11 | NUMC11 | ||||
PRS03 | Price for value adjustment | CPRS0X | NUMC | 11 | NUMC11 | ||||
MYPIX | Price index for index LIFO valuation | CMYPIX | NUMC | 11 | NUMC11 | ||||
MYBAS | Layer base value | CMYBAS | NUMC | 13 | NUMC13 | ||||
MYZMNG | Quantity received for period | CZUMNG | CHAR | 14 | CHAR14 | ||||
MYZWRT | Value of receipts for period | CZUWRT | CHAR | 14 | CHAR14 | ||||
DATLO | Date | DATUM | DATS | 8 | DATUM | ||||
METHOD | LIFO/FIFO Method | MYMETHOD | CHAR | 6 | Assigned to domain | MYMETHOD | MYM | ||
EBELN | Purchasing Document Number | EBELN | CHAR | 10 | Assigned to domain | ALPHA | EBELN | BES | MEKK_C |
EBELP | Item Number of Purchasing Document | EBELP | NUMC | 5 | Assigned to domain | EBELP | BSP | ||
MBLNR | Number of Material Document | MBLNR | CHAR | 10 | ALPHA | BELNR | MBN | ||
MJAHR | Material Document Year | MJAHR | NUMC | 4 | GJAHR | GJAHR | MJA | ||
MBLPO | Item in Material Document | MBLPO | NUMC | 4 | MBLPO | POS | |||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | Assigned to domain | BWTAR | BWT | ||
BWART | Movement Type (Inventory Management) | BWART | CHAR | 3 | Assigned to domain | BWART | BWA | ||
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
AUFNR | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
FBASE | FIFO | MY_FBASE | CHAR | 1 | XFELD | ||||
POOLIM | LIFO Valuation: Type of Pool Valuation | MYPOOLIM | CHAR | 1 | MYPOOLIM | ||||
.INCLU--AP | 0 | ||||||||
MATNR_EXT | External Long Material Number | MATNR_EXT | CHAR | 40 | MATNL | MATNR_EXT |
Key field | Non-key field |
How do I retrieve data from SAP structure SMLAY using ABAP code?
As SMLAY 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 SMLAY as there is no data to select.How to access SAP table SMLAY
Within an ECC or HANA version of SAP you can also view further information about SMLAY 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