P0222 SAP (HR Master Record for Infotype 0222 (Company Cars GB)) Structure details
Description: HR Master Record for Infotype 0222 (Company Cars GB)
Structure field list including key, data, relationships and ABAP select examples
P0222 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 for Infotype 0222 (Company Cars GB)" 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_P0222 TYPE P0222.
The P0222 table consists of various fields, each holding specific information or linking keys about HR Master Record for Infotype 0222 (Company Cars GB) data available in SAP. These include PERNR (Personnel Number), INFTY (Infotype), SUBTY (Subtype), OBJPS (Object Identification).. 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 P0222 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 |
PERNR | Personnel Number | PERNR_D | NUMC | 8 | PERNR | PER | |||
INFTY | Infotype | INFTY | CHAR | 4 | T582A | INFOTYP | ITP | ||
SUBTY | Subtype | SUBTY | CHAR | 4 | SUBTY | SUB | |||
OBJPS | Object Identification | OBJPS | CHAR | 2 | OBJPS | OPS | |||
SPRPS | Lock Indicator for HR Master Data Record | SPRPS | CHAR | 1 | SPRPS | ||||
ENDDA | End Date | ENDDA | DATS | 8 | DATUM | ||||
BEGDA | Start Date | BEGDA | DATS | 8 | DATUM | ||||
SEQNR | Number of Infotype Record with Same Key | SEQNR | NUMC | 3 | NUM03 | ||||
AEDTM | Changed On | AEDAT | DATS | 8 | DATUM | ||||
UNAME | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
HISTO | Historical Record Flag | HISTO | CHAR | 1 | CHAR1 | ||||
ITXEX | Text Exists for Infotype | ITXEX | CHAR | 1 | XFELD | ||||
REFEX | Reference Fields Exist (Primary/Secondary Costs) | PRFEX | CHAR | 1 | XFELD | ||||
ORDEX | Confirmation Fields Exist | ORDEX | CHAR | 1 | XFELD | ||||
ITBLD | Infotype Screen Control | ITBLD | CHAR | 2 | CHAR2 | ||||
PREAS | Reason for Changing Master Data | PREAS | CHAR | 2 | T530E | PREAS | |||
FLAG1 | Reserved Field/Unused Field | NUSED | CHAR | 1 | NUSED | ||||
FLAG2 | Reserved Field/Unused Field | NUSED | CHAR | 1 | NUSED | ||||
FLAG3 | Reserved Field/Unused Field | NUSED | CHAR | 1 | NUSED | ||||
FLAG4 | Reserved Field/Unused Field | NUSED | CHAR | 1 | NUSED | ||||
RESE1 | Reserved Field/Unused Field of Length 2 | NUSED2 | CHAR | 2 | NUSED2 | ||||
RESE2 | Reserved Field/Unused Field of Length 2 | NUSED2 | CHAR | 2 | NUSED2 | ||||
GRPVL | Grouping Value for Personnel Assignments | PCCE_GPVAL | CHAR | 4 | PCCE_GPVAL | ||||
CRNUM | HR GB: Internal car number | P08_CRNUM | CHAR | 4 | SUBTY | ||||
REGNO | License Plate Number | KFZKZ | CHAR | 10 | CHAR10 | ||||
ASTNO | Car Asset Number | ANLNR | CHAR | 20 | ANLNR | ||||
CARTY | Type of company car | P08_CARTY | CHAR | 1 | P08_CARTY | ||||
CRUSE | Use of company car | P08_CRUSE | CHAR | 1 | P08_CRUSE | ||||
CRNCY | Currency Key | WAERS | CUKY | 5 | TCURC | WAERS | FWS | ||
LISTP | Car list price | P08_LISTP | CURR | 9(2) | WERT05 | ||||
ACCSS | Cost of accessories for company car | P08_ACCSS | CURR | 9(2) | WERT05 | ||||
CAPCN | Capital contribution to company car | P08_CAPCN | CURR | 9(2) | WERT05 | ||||
BUSML | Expected business mileage | P08_EBUSM | DEC | 7 | DEC7 | ||||
MBAND | Business mileage bands for company cars | P08_MBAND | NUMC | 2 | NUM2 | ||||
RGNDA | First registration date | P08_RGNDA | DATS | 8 | DATUM | ||||
PAYPU | Payments for private use | P08_PAYPU | CHAR | 1 | XFELD | ||||
FUEPU | Fuel for private use | P08_FUEPU | CHAR | 1 | XFELD | ||||
ECAPC | Engine capacity | P08_ECAPC | NUMC | 8 | NUM8 | ||||
EGTYP | Engine type for company car | P08_EGTYP | CHAR | 1 | P08_EGTYP | ||||
ACSS2 | Cost of accessories for company car | P08_ACCSS | CURR | 9(2) | WERT05 | ||||
CMAKE | Make of car | P08_CMAKE | CHAR | 20 | TEXT20 | ||||
CMODL | Model of car | P08_CMODL | CHAR | 20 | TEXT20 | ||||
FACTO | Car manufacturer | P_FACTO | CHAR | 2 | T51C1 | P_FACTO | |||
MODEL | Car Model | P_MODEL | CHAR | 6 | T51C3 | P_MODEL | |||
TTYPE | Car transmission types (for UK only) | P_TTYPE | CHAR | 1 | T5GC3 | P_TTYPE | |||
DPLAN | Car Door plan (for UK only) | P_DPLAN | CHAR | 4 | T5GC3 | P_DPLAN | |||
CO2EM | Car C02 Emissions | P_CO2EM | NUMC | 3 | NUMC03 | ||||
RECO2 | C02 reduction value | P_RECO2 | NUMC | 3 | NUM03 | ||||
SCHEM | Car scheme | P08_SCHEM | CHAR | 4 | SUBTY | ||||
LUMPS | Annual car allowance for essential users | P08_LUMPS | CURR | 9(2) | WERT05 | ||||
PRVML | Private mileage | P08_PRVML | DEC | 7 | DEC7 |
Key field | Non-key field |
How do I retrieve data from SAP structure P0222 using ABAP code?
As P0222 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 P0222 as there is no data to select.How to access SAP table P0222
Within an ECC or HANA version of SAP you can also view further information about P0222 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