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

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




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




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

BAPIP0021SG 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) SG" 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_BAPIP0021SG TYPE BAPIP0021SG.

The BAPIP0021SG table consists of various fields, each holding specific information or linking keys about HR Master Record: Infotype 0021 (Family/Rel.Person) SG 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: Can be enhanced (character-type or numeric)


SAP BAPIP0021SG 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
LASTNAMELast Name PAD_NACHNCHAR40PAD_NACHN
FIRSTNAMEFirst Name PAD_VORNACHAR40PAD_VORNM
MAIDENNAMEName at Birth PAD_NAME2CHAR40PAD_NACHN
GENDERGender Key GESCHCHAR1GESCH
DATEOFBIRTHDate of Birth GBDATDATS8PDATEGBDAT
NATIONALITYNationality NATSLCHAR3Assigned to domainLAND1NAT
NAMEOFSUBTYPEName of Subtype SBTTXCHAR40TEXT40
NAMEOFGENDERShort Description of Repository Objects AS4TEXTCHAR60AS4TEXT
NAMEOFNATIONationality NATIOCHAR15TEXT15
IDNUMBERPersonnel ID Number PRDNICHAR20CHAR20
RESIDENCY_TYPEResidency type PMRESCHAR2Assigned to domainPMRES
TAXIDTax ID P25_TAXIDCHAR15CHAR15
ETHNIC_ORIGINEthnic origin RACKYCHAR2Assigned to domainRACKY
EMP_STATUSSpouse employment status SPEMSCHAR1XFELD
MEM_ER_STRTHouse number and street STRASCHAR30TEXT30
MEM_ER_2NDSTRT2nd Address Line LOCATCHAR30TEXT30
MEM_ER_CITYCity ORT01CHAR25TEXT25
MEM_ER_PSTCDPostal Code PSTLZCHAR10PSTLZ
MEM_STRTHouse number and street STRASCHAR30TEXT30
MEM_2NDSTRTHouse number and street STRASCHAR30TEXT30
MEM_CITYCity ORT01CHAR25TEXT25
MEM_PSTCDPostal Code PSTLZCHAR10PSTLZ
MEM_COUNTRYCountry Key LAND1CHAR3T005LAND1LND
MEM_NAMEOFCNTYCountry Name LANDXCHAR15TEXT15
MEM_PHONENUMTelephone Number TELNRCHAR14TELNR
EMPLOYERNAMEName of employer P25_ERNAMCHAR100TEXT100
DESIGNATIONDesignation P25_DESGNCHAR15TEXT15
SCHOOLNAMEName of school P25_SNAMECHAR100TEXT100
CONFINEMENT_NOConfinement Number P25M_CONFNNUMC1NUMC01
CERTIFICATE_NOChild Birth Certificate Number P25M_CLCNOCHAR15CHAR15
CHILD_TYPEChild Type P25M_CLDTYCHAR2Assigned to domainAUSPR

Key field Non-key field



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

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

How to access SAP table BAPIP0021SG

Within an ECC or HANA version of SAP you can also view further information about BAPIP0021SG 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!