P2001_AF SAP (Additional Query Fields) Structure details

Dictionary Type: Structure
Description: Additional Query Fields




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




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
REPTTReporting Time Type REPRTTCHAR8Assigned to domainREPTT
BEGDAValid from date of infotype record BEGDA_ORIGINALDATS8DATUM
ENDDAValid to date of infotype record ENDDA_ORIGINALDATS8DATUM
PLANNEDPlanned Time According to Personal Work Schedule PTDW_PLHRSDEC9(2) PTDW_HRS
PLANNEDWPlanned working hours on workdays PLANNED_WDDEC9(2) PTDW_HRS
ABSHRSTotal absence hours ABSTD_SUMDEC7(2) JRSTD
PERCENTPercentage rate absences/planned hrs PERCT_ABSHRSDEC5(2) DEC3_2
PYRHRSTotal payroll hours PYHS_SUMDEC7(2) JRSTD
ABSDAYTotal absence days ABSDAYDEC6(2) TAGE4_2
CALDAYTotal calendar days CALDAYDEC6(2) TAGE4_2
PYRDAYTotal payroll days PYRDAYDEC6(2) TAGE4_2
INDCOSCost assignment indicator INDCOSCHAR1INDCOS
ABSTPAbsence/attendance category ABSTPCHAR1ABSTP
TDTYPETime Data ID Type TDTYPECHAR4TDTYPTDKENN
.INCLU-_CO 0
BUKRS_CODebited company code DEBT_CMPCCHAR4Assigned to domainBUKRS
GSBER_CODebited business area DEBT_BUSACHAR4Assigned to domainGSBER
KOKRS_COControlling Area KOKRSCHAR4Assigned to domainCACCDCAC
KOSTL_CODebited Cost Center DEBT_CCTRCHAR10Assigned to domainALPHAKOSTL
AUFNR_CODebited Order DEBT_ORDERCHAR12Assigned to domainALPHAAUFNR
PS_PO_CODebited WBS element DEBT_WBS_ECHAR24PROJNPS_POSID
LSTAR_CODebited Activity Type DEBT_ACTTCHAR6Assigned to domainLSTAR
VORNR_CODebited activity DEBT_ACTVYCHAR4NUMCVVORNR
NPLNR_CODebited network DEBT_NETWCHAR12Assigned to domainALPHAAUFNR
FISTL_COFunds Center FISTLCHAR16Assigned to domainFISTLFIS
FIPOS_COCommitment Item FIPOSCHAR14Assigned to domainFIPOSFIP
GEBER_COFund BP_GEBERCHAR10Assigned to domainBP_GEBERFIC
DART_COService Type (Public Service Germany) DARTCHAR2Assigned to domainDARTDAR
UDART_COService Category (Public Service Germany) UDARTCHAR2Assigned to domainUDARTUDA
.INCLU-_AR 0
BUKRS_ARReceiving company code RECV_CMPCCHAR4Assigned to domainBUKRS
KOKRS_ARControlling Area KOKRSCHAR4Assigned to domainCACCDCAC
GSBER_ARReceiving business area RECV_BUSACHAR4Assigned to domainGSBER
KOSTL_ARReceiver Cost Center RECV_CCTRCHAR10Assigned to domainALPHAKOSTL
AUFNR_ARReceiver Order RECV_ORDERCHAR12Assigned to domainALPHAAUFNR
PS_PO_ARReceiver WBS element RECV_WBS_ECHAR24PROJNPS_POSID
CO_PR_ARReceiver Business Process RECV_PROCSCHAR12Assigned to domainALPHACO_PRZNR
NPLNR_ARReceiver network RECV_NETWCHAR12Assigned to domainALPHAAUFNR
VORNR_ARReceiving activity RECV_ACTVYCHAR4NUMCVVORNR
.INCLU-_AS 0
BUKRS_ASSending company code SEND_CMPCCHAR4Assigned to domainBUKRS
GSBER_ASSending business area SEND_BUSACHAR4Assigned to domainGSBER
KOSTL_ASSender cost center SEND_CCTRCHAR10Assigned to domainALPHAKOSTL
LSTAR_ASSender Activity Type SEND_ACTTCHAR6Assigned to domainLSTAR

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 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!