BAPIP0021LMY SAP (HR Master Record: Infotype 0021 (Family/Rel.Person)) Structure details

Dictionary Type: Structure
Description: HR Master Record: Infotype 0021 (Family/Rel.Person)




ABAP Code to SELECT data from BAPIP0021LMY
Related tables to BAPIP0021LMY
Access table BAPIP0021LMY




Structure field list including key, data, relationships and ABAP select examples

BAPIP0021LMY 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_BAPIP0021LMY TYPE BAPIP0021LMY.

The BAPIP0021LMY 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 BAPIP0021LMY 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
EMPLOYEENOPersonnel Number PERNR_DNUMC8PERNRPER
SUBTYPESubtype SUBTYCHAR4SUBTYSUB
OBJECTIDObject Identification OBJPSCHAR2OBJPSOPS
LOCKINDICLock Indicator for HR Master Data Record SPRPSCHAR1SPRPS
VALIDENDEnd Date ENDDADATS8DATUM
VALIDBEGINStart Date BEGDADATS8DATUM
RECORDNRNumber of Infotype Record with Same Key SEQNRNUMC3NUM03
MEMBERTYPEType of Family Record FAMSACHAR4SUBTY
MEMBERIDObject Identification OBJPSCHAR2OBJPSOPS
RELATIONSHIPRelationship to Child KDSVHCHAR2Assigned to domainAUSPR
FIRSTNAMEFirst Name PAD_VORNACHAR40PAD_VORNM
LASTNAMELast Name PAD_NACHNCHAR40PAD_NACHN
SURNAMEPREFIXName Prefix VORSWCHAR15T535NTITEL
FULLNAMEComplete Name PAD_CNAMECHAR80TEXT80
MAIDENNAMEName at Birth PAD_NAME2CHAR40PAD_NACHN
INITIALSInitials INITSCHAR10TEXT10
GENDERGender Key GESCHCHAR1GESCH
DATEOFBIRTHDate of Birth GBDATDATS8PDATEGBDAT
PLACEOFBIRTHBirthplace PAD_GBORTCHAR40PAD_ORT01
LANDOFBIRTHCountry of Birth GBLNDCHAR3T005LAND1
NATIONALITYNationality NATSLCHAR3T005LAND1NAT
NAMEOFMEMBERTYPEName of Subtype SBTTXCHAR40TEXT40
NAMEOFGENDERShort Description of Repository Objects AS4TEXTCHAR60AS4TEXT
NAMEOFLANDOFBIRTHCountry Name LANDXCHAR15TEXT15
NAMEOFNATIONALITYNationality NATIOCHAR15TEXT15
NAMEOFSCHOOLTYPEText (20 Characters) TEXT20CHAR20TEXT20
RELATIONTEXTText (20 Characters) TEXT20CHAR20TEXT20
PERSONALIDIC number ICNUMCHAR20ICNUM
PASSPORTNUMBERPassport number P14_PASNRCHAR20CHAR20
TAXNUMBERIncome tax number of employee (MY) P14_TNOEECHAR20CHAR20
TAXOFFICESpouse tax office Malaysia P14_STXOFCHAR4CHAR4
REFERENCENUMBERReference Personnel Number for Family Member ERBNRCHAR12CHAR12
EMPLOYMENTSTATUSSpouse employment status P14_SEMPSCHAR1XFELD
JOBTITLEJob Title STLTXCHAR25TEXT25
EMPLOYERNAMESpouse employer P14_SPEMRCHAR40CHAR40
NAMEFORMATName Format Indicator for Employee in a List KNZNMNUMC2KNZN2
SCHOOLTYPESchool Type of Family Member FASARCHAR2Assigned to domainSLART
BIRTHCERTIFICATEIDBirth certificate ID P14_BTHIDCHAR20CHAR20
HANDICAPPEDChild handicap status P14_HANCHCHAR1XFELD
CHILDCUSTODYChild custody status P14_CHCUSCHAR1XFELD
MARITALSTATUSMarital status for income tax purpose (MY) P14_MARSTCHAR1XFELD
STREETHouse number and street STRASCHAR30TEXT30
SECONDADDRESS2nd Address Line LOCATCHAR30TEXT30
THIRDADDRESSDistrict ORT02CHAR25TEXT25
POSTALCODEPostal Code PSTLZ_HRCHAR10PSTLZ
CITYCity ORT01CHAR25TEXT25
REGIONSTATE (State, Province, County) REGIOCHAR3Assigned to domainREGIO
COUNTRYCountry Key LAND1CHAR3Assigned to domainLAND1LND
CONAMEC/O Name CONAMCHAR25NACHN
TELEPHONENUMBERTelephone Number TELNRCHAR14TELNR
COMMTYPE1Communication Type COMKYCHAR4Assigned to domainCOMKY
COMMNUMBER1Communication Number COMNRCHAR20CHAR20
COMMTYPE2Communication Type COMKYCHAR4Assigned to domainCOMKY
COMMNUMBER2Communication Number COMNRCHAR20CHAR20
COMMTYPE3Communication Type COMKYCHAR4Assigned to domainCOMKY
COMMNUMBER3Communication Number COMNRCHAR20CHAR20
COMMTYPE4Communication Type COMKYCHAR4Assigned to domainCOMKY
COMMNUMBER4Communication Number COMNRCHAR20CHAR20
NAMEOFREGIONDescription BEZEI20CHAR20TEXT20

Key field Non-key field



How do I retrieve data from SAP structure BAPIP0021LMY using ABAP code?

As BAPIP0021LMY 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 BAPIP0021LMY as there is no data to select.

How to access SAP table BAPIP0021LMY

Within an ECC or HANA version of SAP you can also view further information about BAPIP0021LMY and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!