BAPIP0021SG SAP (HR Master Record: Infotype 0021 (Family/Rel.Person) SG) Structure details
Description: HR Master Record: Infotype 0021 (Family/Rel.Person) SG
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 |
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 | ||||
LASTNAME | Last Name | PAD_NACHN | CHAR | 40 | PAD_NACHN | ||||
FIRSTNAME | First Name | PAD_VORNA | CHAR | 40 | PAD_VORNM | ||||
MAIDENNAME | Name at Birth | PAD_NAME2 | CHAR | 40 | PAD_NACHN | ||||
GENDER | Gender Key | GESCH | CHAR | 1 | GESCH | ||||
DATEOFBIRTH | Date of Birth | GBDAT | DATS | 8 | PDATE | GBDAT | |||
NATIONALITY | Nationality | NATSL | CHAR | 3 | Assigned to domain | LAND1 | NAT | ||
NAMEOFSUBTYPE | Name of Subtype | SBTTX | CHAR | 40 | TEXT40 | ||||
NAMEOFGENDER | Short Description of Repository Objects | AS4TEXT | CHAR | 60 | AS4TEXT | ||||
NAMEOFNATIO | Nationality | NATIO | CHAR | 15 | TEXT15 | ||||
IDNUMBER | Personnel ID Number | PRDNI | CHAR | 20 | CHAR20 | ||||
RESIDENCY_TYPE | Residency type | PMRES | CHAR | 2 | Assigned to domain | PMRES | |||
TAXID | Tax ID | P25_TAXID | CHAR | 15 | CHAR15 | ||||
ETHNIC_ORIGIN | Ethnic origin | RACKY | CHAR | 2 | Assigned to domain | RACKY | |||
EMP_STATUS | Spouse employment status | SPEMS | CHAR | 1 | XFELD | ||||
MEM_ER_STRT | House number and street | STRAS | CHAR | 30 | TEXT30 | ||||
MEM_ER_2NDSTRT | 2nd Address Line | LOCAT | CHAR | 30 | TEXT30 | ||||
MEM_ER_CITY | City | ORT01 | CHAR | 25 | TEXT25 | ||||
MEM_ER_PSTCD | Postal Code | PSTLZ | CHAR | 10 | PSTLZ | ||||
MEM_STRT | House number and street | STRAS | CHAR | 30 | TEXT30 | ||||
MEM_2NDSTRT | House number and street | STRAS | CHAR | 30 | TEXT30 | ||||
MEM_CITY | City | ORT01 | CHAR | 25 | TEXT25 | ||||
MEM_PSTCD | Postal Code | PSTLZ | CHAR | 10 | PSTLZ | ||||
MEM_COUNTRY | Country Key | LAND1 | CHAR | 3 | T005 | LAND1 | LND | ||
MEM_NAMEOFCNTY | Country Name | LANDX | CHAR | 15 | TEXT15 | ||||
MEM_PHONENUM | Telephone Number | TELNR | CHAR | 14 | TELNR | ||||
EMPLOYERNAME | Name of employer | P25_ERNAM | CHAR | 100 | TEXT100 | ||||
DESIGNATION | Designation | P25_DESGN | CHAR | 15 | TEXT15 | ||||
SCHOOLNAME | Name of school | P25_SNAME | CHAR | 100 | TEXT100 | ||||
CONFINEMENT_NO | Confinement Number | P25M_CONFN | NUMC | 1 | NUMC01 | ||||
CERTIFICATE_NO | Child Birth Certificate Number | P25M_CLCNO | CHAR | 15 | CHAR15 | ||||
CHILD_TYPE | Child Type | P25M_CLDTY | CHAR | 2 | Assigned to domain | AUSPR |
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 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