BAPIP0021LGB SAP (HR Master Record: Infotype 0021 (Family/Rel.Person)) Structure details
Description: HR Master Record: Infotype 0021 (Family/Rel.Person)
Structure field list including key, data, relationships and ABAP select examples
BAPIP0021LGB 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 "HR Master Record: Infotype 0021 (Family/Rel.Person)" 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_BAPIP0021LGB TYPE BAPIP0021LGB.
The BAPIP0021LGB table consists of various fields, each holding specific information or linking keys about HR Master Record: Infotype 0021 (Family/Rel.Person) data available in SAP. These include EMPLOYEENO (Personnel Number), SUBTYPE (Subtype), OBJECTID (Object Identification), LOCKINDIC (Lock Indicator for HR Master Data Record).. 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 BAPIP0021LGB 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 |
EMPLOYEENO | Personnel Number | PERNR_D | NUMC | 8 | PERNR | PER | |||
SUBTYPE | Subtype | SUBTY | CHAR | 4 | SUBTY | SUB | |||
OBJECTID | Object Identification | OBJPS | CHAR | 2 | OBJPS | OPS | |||
LOCKINDIC | Lock Indicator for HR Master Data Record | SPRPS | CHAR | 1 | SPRPS | ||||
VALIDEND | End Date | ENDDA | DATS | 8 | DATUM | ||||
VALIDBEGIN | Start Date | BEGDA | DATS | 8 | DATUM | ||||
RECORDNR | Number of Infotype Record with Same Key | SEQNR | NUMC | 3 | NUM03 | ||||
MEMBERTYPE | Type of Family Record | FAMSA | CHAR | 4 | SUBTY | ||||
FIRSTNAME | First Name | PAD_VORNA | CHAR | 40 | PAD_VORNM | ||||
LASTNAME | Last Name | PAD_NACHN | CHAR | 40 | PAD_NACHN | ||||
SECONDNAME | Second Name | PAD_NACH2 | CHAR | 40 | PAD_NACHN | ||||
ACADEMICTITLE | Title | TITEL | CHAR | 15 | T535N | TITEL | |||
SURNAMEPREFIX | Name Prefix | VORSW | CHAR | 15 | T535N | TITEL | |||
SECONDSURNAMEPREFIX | Name Prefix | VORSW | CHAR | 15 | T535N | TITEL | |||
ARISTOCRATICTITLE | Other Title | NAMZU | CHAR | 15 | T535N | TITEL | |||
FULLNAME | Complete Name | PAD_CNAME | CHAR | 80 | TEXT80 | ||||
MAIDENNAME | Name at Birth | PAD_NAME2 | CHAR | 40 | PAD_NACHN | ||||
INITIALS | Initials | INITS | CHAR | 10 | TEXT10 | ||||
GENDER | Gender Key | GESCH | CHAR | 1 | GESCH | ||||
DATEOFBIRTH | Date of Birth | GBDAT | DATS | 8 | PDATE | GBDAT | |||
PLACEOFBIRTH | Birthplace | PAD_GBORT | CHAR | 40 | PAD_ORT01 | ||||
STATEOFBIRTH | State | GBDEP | CHAR | 3 | T005S | REGIO | |||
LANDOFBIRTH | Country of Birth | GBLND | CHAR | 3 | T005 | LAND1 | |||
NATIONALITY | Nationality | NATSL | CHAR | 3 | T005 | LAND1 | NAT | ||
NATIONALITY2 | Second Nationality | NATS2 | CHAR | 3 | T005 | LAND1 | |||
NATIONALITY3 | Third Nationality | NATS3 | CHAR | 3 | T005 | LAND1 | |||
NAMEOFGENDER | Short Description of Repository Objects | AS4TEXT | CHAR | 60 | AS4TEXT | ||||
NAMEOFSTATEOFBIRTH | Description | BEZEI20 | CHAR | 20 | TEXT20 | ||||
NAMEOFLANDOFBIRTH | Country Name | LANDX | CHAR | 15 | TEXT15 | ||||
NAMEOFNATIONALITY | Nationality | NATIO | CHAR | 15 | TEXT15 | ||||
NAMEOFNATIONALITY2 | Nationality | NATIO | CHAR | 15 | TEXT15 | ||||
NAMEOFNATIONALITY3 | Nationality | NATIO | CHAR | 15 | TEXT15 | ||||
NAMEOFMEMBERTYPE | Name of Subtype | SBTTX | CHAR | 40 | TEXT40 | ||||
MEMBEREMPLOYER | Employer of Family Member | EGAGA | CHAR | 8 | VARGA | ||||
MEMBERREFNUMBER | Reference Personnel Number for Family Member | ERBNR | CHAR | 12 | CHAR12 | ||||
NAME_FORMAT_INDICATOR | Name Format Indicator for Employee in a List | KNZNM | NUMC | 2 | KNZN2 |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPIP0021LGB using ABAP code?
As BAPIP0021LGB 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 BAPIP0021LGB as there is no data to select.How to access SAP table BAPIP0021LGB
Within an ECC or HANA version of SAP you can also view further information about BAPIP0021LGB 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