LYRSN SAP (Reason codes) Table details
Dictionary Type: Table
Description: Reason codes
Description: Reason codes
Table field list including key, data, relationships and ABAP select examples
LYRSN is a standard SAP Table which is used to store Reason codes data and is available within R/3 SAP systems depending on the version and release level.
The LYRSN table consists of various fields, each holding specific information or linking keys about Reason codes data available in SAP. These include LYARD (Yard), RSNCD (Reason Code), EXOBJ (Execution Object).. 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: E - Control table, SAP and customer have separate key areasDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
Text table = LYRSNT
SAP LYRSN table 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 | |||
LYARD | Yard | LXYRD_YARD | CHAR | 3 | Assigned to domain | LXYRD_YARD | LXYRD_LYARD | H_LXYRD_LYARD | |
RSNCD | Reason Code | LXYRD_RSNCD | CHAR | 2 | CHAR2 | ||||
EXOBJ | Execution Object | LXYRD_EXOBJ | CHAR | 2 | LXYRD_EXOBJ |
Key field | Non-key field |
How do I retrieve data from SAP table LYRSN using ABAP code
The following ABAP code Example will allow you to do a basic selection on LYRSN to SELECT all data from the tableDATA: WA_LYRSN TYPE LYRSN.
SELECT SINGLE *
FROM LYRSN
INTO CORRESPONDING FIELDS OF WA_LYRSN
WHERE...
How to access SAP table LYRSN
Within an ECC or HANA version of SAP you can also view further information about LYRSN 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