P2001_AF SAP (Additional Query Fields) Structure details
Description: Additional Query Fields
Structure field list including key, data, relationships and ABAP select examples
P2001_AF 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 "Additional Query Fields" 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_P2001_AF TYPE P2001_AF.
The P2001_AF table consists of various fields, each holding specific information or linking keys about Additional Query Fields data available in SAP. These include BEGDA (Valid from date of infotype record), ENDDA (Valid to date of infotype record), PLANNED (Planned Time According to Personal Work Schedule), PLANNEDW (Planned working hours on workdays).. 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 P2001_AF 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 |
REPTT | Reporting Time Type | REPRTT | CHAR | 8 | Assigned to domain | REPTT | |||
BEGDA | Valid from date of infotype record | BEGDA_ORIGINAL | DATS | 8 | DATUM | ||||
ENDDA | Valid to date of infotype record | ENDDA_ORIGINAL | DATS | 8 | DATUM | ||||
PLANNED | Planned Time According to Personal Work Schedule | PTDW_PLHRS | DEC | 9(2) | PTDW_HRS | ||||
PLANNEDW | Planned working hours on workdays | PLANNED_WD | DEC | 9(2) | PTDW_HRS | ||||
ABSHRS | Total absence hours | ABSTD_SUM | DEC | 7(2) | JRSTD | ||||
PERCENT | Percentage rate absences/planned hrs | PERCT_ABSHRS | DEC | 5(2) | DEC3_2 | ||||
PYRHRS | Total payroll hours | PYHS_SUM | DEC | 7(2) | JRSTD | ||||
ABSDAY | Total absence days | ABSDAY | DEC | 6(2) | TAGE4_2 | ||||
CALDAY | Total calendar days | CALDAY | DEC | 6(2) | TAGE4_2 | ||||
PYRDAY | Total payroll days | PYRDAY | DEC | 6(2) | TAGE4_2 | ||||
INDCOS | Cost assignment indicator | INDCOS | CHAR | 1 | INDCOS | ||||
ABSTP | Absence/attendance category | ABSTP | CHAR | 1 | ABSTP | ||||
TDTYPE | Time Data ID Type | TDTYPE | CHAR | 4 | TDTYP | TDKENN | |||
.INCLU-_CO | 0 | ||||||||
BUKRS_CO | Debited company code | DEBT_CMPC | CHAR | 4 | Assigned to domain | BUKRS | |||
GSBER_CO | Debited business area | DEBT_BUSA | CHAR | 4 | Assigned to domain | GSBER | |||
KOKRS_CO | Controlling Area | KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
KOSTL_CO | Debited Cost Center | DEBT_CCTR | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | ||
AUFNR_CO | Debited Order | DEBT_ORDER | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ||
PS_PO_CO | Debited WBS element | DEBT_WBS_E | CHAR | 24 | PROJN | PS_POSID | |||
LSTAR_CO | Debited Activity Type | DEBT_ACTT | CHAR | 6 | Assigned to domain | LSTAR | |||
VORNR_CO | Debited activity | DEBT_ACTVY | CHAR | 4 | NUMCV | VORNR | |||
NPLNR_CO | Debited network | DEBT_NETW | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ||
FISTL_CO | Funds Center | FISTL | CHAR | 16 | Assigned to domain | FISTL | FIS | ||
FIPOS_CO | Commitment Item | FIPOS | CHAR | 14 | Assigned to domain | FIPOS | FIP | ||
GEBER_CO | Fund | BP_GEBER | CHAR | 10 | Assigned to domain | BP_GEBER | FIC | ||
DART_CO | Service Type (Public Service Germany) | DART | CHAR | 2 | Assigned to domain | DART | DAR | ||
UDART_CO | Service Category (Public Service Germany) | UDART | CHAR | 2 | Assigned to domain | UDART | UDA | ||
.INCLU-_AR | 0 | ||||||||
BUKRS_AR | Receiving company code | RECV_CMPC | CHAR | 4 | Assigned to domain | BUKRS | |||
KOKRS_AR | Controlling Area | KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
GSBER_AR | Receiving business area | RECV_BUSA | CHAR | 4 | Assigned to domain | GSBER | |||
KOSTL_AR | Receiver Cost Center | RECV_CCTR | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | ||
AUFNR_AR | Receiver Order | RECV_ORDER | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ||
PS_PO_AR | Receiver WBS element | RECV_WBS_E | CHAR | 24 | PROJN | PS_POSID | |||
CO_PR_AR | Receiver Business Process | RECV_PROCS | CHAR | 12 | Assigned to domain | ALPHA | CO_PRZNR | ||
NPLNR_AR | Receiver network | RECV_NETW | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ||
VORNR_AR | Receiving activity | RECV_ACTVY | CHAR | 4 | NUMCV | VORNR | |||
.INCLU-_AS | 0 | ||||||||
BUKRS_AS | Sending company code | SEND_CMPC | CHAR | 4 | Assigned to domain | BUKRS | |||
GSBER_AS | Sending business area | SEND_BUSA | CHAR | 4 | Assigned to domain | GSBER | |||
KOSTL_AS | Sender cost center | SEND_CCTR | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | ||
LSTAR_AS | Sender Activity Type | SEND_ACTT | CHAR | 6 | Assigned to domain | LSTAR |
Key field | Non-key field |
How do I retrieve data from SAP structure P2001_AF using ABAP code?
As P2001_AF 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 P2001_AF as there is no data to select.How to access SAP table P2001_AF
Within an ECC or HANA version of SAP you can also view further information about P2001_AF 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