P2002 SAP (HR Time Record: Infotype 2002 (Attendances)) Structure details
Description: HR Time Record: Infotype 2002 (Attendances)
Structure field list including key, data, relationships and ABAP select examples
P2002 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 Time Record: Infotype 2002 (Attendances)" 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_P2002 TYPE P2002.
The P2002 table consists of various fields, each holding specific information or linking keys about HR Time Record: Infotype 2002 (Attendances) 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: Cannot Be Enhanced
SAP P2002 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 | ||||
BEGUZ | Start Time | BEGTI | TIMS | 6 | UZEIT | ||||
ENDUZ | End Time | ENDTI | TIMS | 6 | UZEIT | ||||
VTKEN | Previous Day Indicator | VTKEN | CHAR | 1 | XFELD | ||||
AWART | Attendance or Absence Type | AWART | CHAR | 4 | T554S | AWART | |||
ABWTG | Attendance and Absence Days | ABWTG | DEC | 6(2) | TAGE4_2 | ||||
ABRTG | Payroll days | ABRTG | DEC | 6(2) | TAGE4_2 | ||||
ABRST | Payroll hours | ABRST | DEC | 7(2) | JRSTD | ||||
KALTG | Calendar days | KALTG | DEC | 6(2) | TAGE4_2 | ||||
STDAZ | Attendance hours | ATTHR | DEC | 7(2) | JRSTD | ||||
LGART | Wage Type | LGART | CHAR | 4 | T512Z | LGART | |||
BWGRL | Valuation Basis for Different Payment | PTM_VBAS7S | CURR | 13(2) | P_AMT07V | ||||
AUFKZ | Extra Pay Indicator | AUFKN | CHAR | 1 | AUFKN | ||||
VERSL | Overtime Compensation Type | VRSCH | CHAR | 1 | T555R | VRSCH | |||
TRFGR | Pay Scale Group | TRFGR | CHAR | 8 | Assigned to domain | TRFGR | |||
TRFST | Pay Scale Level | TRFST | CHAR | 2 | Assigned to domain | TRFST | |||
PRAKN | Premium Number | PRAKN | CHAR | 2 | T510P | PRAKN | |||
PRAKZ | Premium Indicator | PRAKZ | NUMC | 4 | PRAKZ | ||||
OTYPE | Object Type | OTYPE | CHAR | 2 | T778O | OTYPE | POT | ||
PLANS | Position | PLANS | NUMC | 8 | T528B | PLANS | |||
GENER | Generation flag | PGENER | CHAR | 1 | XFELD | ||||
EXBEL | External Document Number | EXBEL | CHAR | 8 | CHAR08 | ||||
HRSIF | Set number of hours | HRS_INPFL | CHAR | 1 | XFELD | ||||
ALLDF | Record is for Full Day | ALLDF | CHAR | 1 | XFELD | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | TCURC | WAERS | FWS | ||
LOGSYS | Logical system | LOGSYS | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
AWTYP | Reference Transaction | AWTYP | CHAR | 5 | Assigned to domain | AWTYP | |||
AWREF | Reference Document Number | AWREF | CHAR | 10 | ALPHA | AWREF | |||
AWORG | Reference Organizational Units | AWORG | CHAR | 10 | AWORG | ||||
DOCSY | Logical system for document (personnel time) | PTM_DOCSY | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
DOCNR | Document number for time data | PTM_DOCNR | NUMC | 20 | PTM_DOCNR | ||||
WTART | Work tax area | WTART | CHAR | 4 | Assigned to domain | WRKAR | |||
FAPRS | Evaluation Type for Attendances/Absences | FAPRS | CHAR | 2 | T554H | FAPRS | |||
TDLANGU | Definition Set for IDs | TMW_TDLANGU | CHAR | 10 | Assigned to domain | TMW_TDLANGU | |||
TDSUBLA | Definition Subset for IDs | TMW_TDSUBLA | CHAR | 3 | Assigned to domain | TMW_TDSUBLA | |||
TDTYPE | Time Data ID Type | TDTYPE | CHAR | 4 | TDTYP | TDKENN | |||
KEPAU | No break | TIM_KEPAU | CHAR | 1 | XFELD | ||||
EXPAU | Breaks Specified Explicitly | TIM_EXPAU | CHAR | 1 | XFELD | ||||
PBEG1 | Start of Break | PDBEG | TIMS | 6 | UZEIT | ||||
PEND1 | End of Break | PDEND | TIMS | 6 | UZEIT | ||||
PBEZ1 | Paid Break Period | PDBEZ | DEC | 4(2) | DEC2_2 | ||||
PUNB1 | Unpaid Break Period | PDUNB | DEC | 4(2) | DEC2_2 | ||||
PBEG2 | Start of Break | PDBEG | TIMS | 6 | UZEIT | ||||
PEND2 | End of Break | PDEND | TIMS | 6 | UZEIT | ||||
PBEZ2 | Paid Break Period | PDBEZ | DEC | 4(2) | DEC2_2 | ||||
PUNB2 | Unpaid Break Period | PDUNB | DEC | 4(2) | DEC2_2 | ||||
NXDFL | Next Day Indicator | PTM_NXDFL | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP structure P2002 using ABAP code?
As P2002 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 P2002 as there is no data to select.How to access SAP table P2002
Within an ECC or HANA version of SAP you can also view further information about P2002 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