SAP AFFH01 Order PRT Data (for LDB) - 01 Table data and field list

AFFH01 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 "Order PRT Data (for LDB) - 01" 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_AFFH01 TYPE AFFH01.

The AFFH01 table consists of various fields, each holding specific information or linking keys about Order PRT Data (for LDB) - 01 data available in SAP. These include MANDT (Client), AUFPL (Routing number of operations in the order), PZLFH (Item counter for production resources/tools), LOEKZ (Deletion Indicator)... 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. .

AFFH01 structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP AFFH01 structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the AFFH01 table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient MANDTCLNT3T000MANDT
AUFPLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
PZLFHItem counter for production resources/tools PZLFHNUMC8PZLFH
LOEKZDeletion Indicator LKENZCHAR1XFELD
PARKZIndicator: inactive changes PARKZCHAR1XFELD
DATUIDate record created on ANDATDATS8DATUM
USERIUser who created record ANNAMCHAR12USNAM
DATUCChanged On AEDATDATS8DATUM
USERCName of Person Who Changed Object AENAMCHAR12USNAM
OBJTYObject types of the CIM resource CR_OBJTYCHAR2CR_OBJTY
OBJIDObject ID of the resource CR_OBJIDNUMC8CRIDCR_OBJID
PLNTY_KEYTask List Type PLNTYCHAR1TCA01PLNTYPTYH_TCA01
PLNNR_KEYKey for Task List Group PLNNRCHAR8ALPHAPLNNRPLNPLKS
PZLFH_KEYItem counter for production resources/tools PZLFHNUMC8PZLFH
ZAEHL_KEYInternal counter CIM_COUNTNUMC8CIM_COUNT
OBJCTObject of a task list OBJCT_DCHAR1OBJKT
APLZLInternal counter CIM_COUNTNUMC8CIM_COUNT
PSNFHItem Number for Production Resource/Tool PSNFHNUMC4PSNFH
OBJNRObject number J_OBJNRCHAR22ONR00J_OBJNRONR
STEUFControl key for management of production resources/tools STEUFCHAR4TCF10STEUF
KZKBLIndicator: Create load records for prod. resources/tools KZKBLCHAR1XFELD
BZOFFBReference date to start of production resource/tool usage BZOFFBCHAR2TCA54CP_BZOFF
OFFSTBOffset to start of production resource/tool usage OFFSTBQUAN5VNZTV
EHOFFBOffset unit for start of prod. resource/tool usage EHOFFBUNIT3T006CUNITMEINS
BZOFFEReference date for end of production resource/tool usage BZOFFECHAR2TCA54CP_BZOFF
OFFSTEOffset to finish of production resource/tool usage OFFSTEQUAN5VNZTV
EHOFFEOffset unit for end of production resource/tool usage EHOFFEUNIT3T006CUNITMEINS
FSFHDEarliest scheduled start (date) for PRT usage CF_FSFHDDATS8DATUM
FSFHZEarliest scheduled start (time) for PRT usage CF_FSFHZTIMS6UZEIT
FEFHDEarliest scheduled finish (date) of PRT usage CF_FEFHDDATS8DATUM
FEFHZEarliest scheduled end (time) of PRT usage CF_FEFHZTIMS6UZEIT
SSFHDLatest scheduled start (date) for PRT usage CF_SSFHDDATS8DATUM
SSFHZLatest scheduled start (time) for PRT usage CF_SSFHZTIMS6UZEIT
SEFHDLatest scheduled finish (date) of PRT usage CF_SEFHDDATS8DATUM
SEFHZLatest scheduled end (time) for PRT usage CF_SEFHZTIMS6UZEIT
ISFHDActual start (date) of PRT usage CF_ISFHDDATS8DATUM
ISFHZActual start (time) of PRT usage CF_ISFHZTIMS6UZEIT
IEFHDActual finish (date) of PRT usage CF_IEFHDDATS8DATUM
IEFHZActual finish (time) of PRT usage CF_IEFHZTIMS6UZEIT
DAUFLDuration of PRT usage CF_DAUFLFLTP16(16) CX_ZEIT
DAUEHTime unit for duration of PRT usage CF_DAUEHUNIT3T006CUNITMEINS
MGEINHQuantity unit of production resource/tool MGEINHUNIT3T006CUNITMEINS
MGVGWStandard value for the PRT quantity MGVGWQUAN9(3) MENG9
MGSOLEHQuantity unit of production resource/tool MGEINHUNIT3T006CUNITMEINS
MGSOLTotal planned quantity of production resource/tool MGSOLQUAN9(3) MENG9
MGISTEHQuantity unit of production resource/tool MGEINHUNIT3T006CUNITMEINS
MGISTConfirmed quantity of production resource/tool MGISTQUAN9(3) MENG9
MGRSTEHQuantity unit of production resource/tool MGEINHUNIT3T006CUNITMEINS
MGRSTRemaining quantity of the production resource/tool MGRSTQUAN9(3) MENG9
MGAUSEHQuantity unit of production resource/tool MGEINHUNIT3T006CUNITMEINS
MGAUSQuantity of checked-out production resources/tools MGAUSQUAN9(3) MENG9
MGFORMFormula for calculating the total quantity of PRT CF_MGFORMCHAR6TC25AP_FORMEL
EWEINHUsage value unit of the production resource/tool EWEINHUNIT3T006CUNITMEINS
EWVGWStandard usage value for production resources/tools EWVGWQUAN9(3) MENG9
EWSOLEHUsage value unit of the production resource/tool EWEINHUNIT3T006CUNITMEINS
EWSOLTotal planned usage value of production resource/tool EWSOLQUAN9(3) MENG9
EWISTEHUsage value unit of the production resource/tool EWEINHUNIT3T006CUNITMEINS
EWISTActual usage value for production resource/tool EWISTQUAN9(3) MENG9
EWRSTEHUsage value unit of the production resource/tool EWEINHUNIT3T006CUNITMEINS
EWRSTRemaining usage value of the production resource/tool EWRSTQUAN9(3) MENG9
EWFORMFormula for calculating the total usage value of PRT CF_EWFORMCHAR6TC25AP_FORMEL
TXTSPLanguage Key SPRASLANG1T002ISOLASPRASSPRH_T002
KTSCHStandard text key for production resources/tools CF_KTSCHCHAR7T435KTSCH
TXTZ1First line of text for production resources/tools TXTZ1CHAR40TEXT40
OBJTYPEChange indicator OCM_OBJ_TYPECHAR1OCM_OBJ_TYPE
CH_PROCProcess that has lead to the change of an object OCM_CH_PROCCHAR1OCM_CH_PROC
AENNRChange Number AENNRCHAR12Assigned to domainAENNRAENNRAEN
DAUSEDuration of the PRT usage CF_DAUSEQUAN5(1) DAUER_4_1
AUFNROrder Number AUFNRCHAR12AUFKALPHAAUFNRANR
FHMARProduction resources/tools category FHMARCHAR1TCF02FHMARFHMARFHA
FHMNRProduction resource/tool number FHMNRCHAR33FHMNR
FHWRKProduction resources/tools in plant FHWRKCHAR4T001WWERKSWRK
MATNRMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
SFHNRProduction resources and tools SFHNRCHAR18ALPHASFHNRFHSFHMS
DOKARDocument Type DOKARCHAR3TDWADOKARCV2
DOKNRDocument number DOKNRCHAR25DRAWALPHADOKNRCV1
DOKVRDocument Version DOKVRCHAR2DOKVRCV3
DOKTLDocument Part DOKTL_DCHAR3DOKTLCV4
EQUNREquipment Number EQUNRCHAR18EQUIALPHAEQUNREQNEQUI
EQWPLMaintenance Plan WARPLCHAR12MPLAALPHAWARPLMPLMPLAL
EQWTXMaintenance Plan Text WPTXTCHAR40TEXT40
EQPNTMeasuring Point IMRC_POINTCHAR12IMPTTALPHAIMRC_POINTIPTIMPM
EQPTXDescription of Measuring Point IMRC_PTTXTCHAR40TEXT40
ATNAMCharacteristic Name ATNAMCHAR30ATNAMFEA
ATVORIndicator: Negative Values Allowed IMRC_INEGVCHAR1X
MSEHIUnit of Measurement MSEHIUNIT3T006CUNITMEINS
ATDIMExponent display ATDIMINT25EXP10
ANZDZNumber of Decimal Places ANZDZINT25ANZDZ
FHKTXDescription of the production resource/tool FHKTXCHAR40TEXT40
BASEHBase unit of measure for production resources/tools CF_BASEHUNIT3T006CUNITMEINS
MEINSBase Unit of Measure MEINSUNIT3T006CUNITMEINS
FGRU1Grouping key 1 for production resources/tools FGRUACHAR4TCF12FGRUA
FGRU2Grouping key 2 for production resources/tools FGRUBCHAR4TCF12FGRUA
STOWKPlant location of the production resource/tool CF_STOWKCHAR4T001WWERKSWRK
STORTLocation of a production resource or tool CF_STORTCHAR10T499SAP_STAND
FSTTXTSystem Status CO_STTXTCHAR40CHAR40
CF_KZSVSIndicator for start of PRT usage: Offset to Operation start CF_KZSVSCHAR1XFELD
CF_KZSVEIndicator for start of PRT usage: Offset to op. finish CF_KZSVECHAR1XFELD
CF_KZEVSIndicator for end of PRT usage: Offset to operation start CF_KZEVSCHAR1XFELD
CF_KZEVEIndicator for end of PRT usage: Offset to operation finish CF_KZEVECHAR1XFELD
STEUF_REFControl key cannot be changed CF_STKZRCHAR1XFELD
KTSCH_REFReference Key Cannot be Changed CF_KTKZRCHAR1XFELD
BZOFFB_REFStart reference date cannot be changed CF_BBKZRCHAR1XFELD
OFFSTB_REFOffset to start cannot be changed CF_OBKZRCHAR1XFELD
BZOFFE_REFEnd reference date cannot be changed CF_BEKZRCHAR1XFELD
OFFSTE_REFOffset to end cannot be changed CF_OEKZRCHAR1XFELD
MGFORM_REFFormula for calculating the total quantity cannot be changed CF_MFKZRCHAR1XFELD
EWFORM_REFFormula to calculate entire usage value cannot be changed CF_EFKZRCHAR1XFELD
TXTKZIndicator: Long text exists CF_TXTKZCHAR1FLAG
INDBTField defined as in SY-TABIX TABIX_DINT410TABIX
COMP_RESOCM: Result of comparison of two order objects OCM_COMP_RESCHAR1OCM_COMP_RES
VSNMRNumber or description of a version VSNMRCHAR12VSNMRVS2
ORGAUFPLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
ORGPZLFHItem counter for production resources/tools PZLFHNUMC8PZLFH

Key field Non-key field



How do I retrieve data from SAP structure AFFH01 using ABAP code?

As AFFH01 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 AFFH01 as there is no data to select.

How to access SAP table AFFH01

Within an ECC or HANA version of SAP you can also view further information about AFFH01 and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).

Related SAP tables and the relationships to AFFH01

    ARKOPF - Archiving run header data
        VSKOPF - Version: Header - general data for a
    VBUP - Sales Document: Item Status
    CKIP1 - Periodic Values for Unit Costing Item
    COSP1 - CO Object: Cost Totals for External Postings
        COVP11 - CO object: Line items with doc. header (by period)
            COEPD11 - CO object: Unvaluated ln. item settlement w/status
                COEPBR11 - CO Object: Valuated Line Item Settlement
        COVJ11 - CO object: Line items with doc header (by year)
        COVO1 - CO Object: Open Items for Line Items (w/o doc.Hdr)
    COSPD1 - CO object: External cost totals - calculated
    COSPP - Transfer of Order in the COSP Table to the Project
    COKS1 - CO Object: Control Data for Secondary Planning
    VBKDPO - Sales document: Business item data (POSNR > 0)
    HEAD13 - SAPscript: Text Header
        LINE13 - SAPscript: Text Lines
    COSS1 - CO Object: Cost Totals for Internal Postings
        COVP12 - CO object: Line items with doc. header (by period)
            COEPD12 - CO object: Unvaluated ln. item settlement w/status
                COEPBR12 - CO Object: Valuated Line Item Settlement
        COVJ12 - CO object: Line items with doc header (by year)
        COVO12 - CO object: Fxd price agreement commitment ln items
    COSSD1 - CO object: Internal cost totals - calculated
    COSSP - Transfer of the Order COSS Table to the Project
    FPLA - Billing plan
    COKR1 - CO Object: Control Data for Statistical Key Figs
        HEAD14 - SAPscript: Text Header
            LINE14 - SAPscript: Text Lines
    COSR1 - CO Object: Statistical Key Figure Totals
        COVPR1 - CO object: Stat. key figure line items by period
        COVJR1 - CO object: Line items stat. key figures (by year)
    COSL1 - CO Object: Activity Type Totals
        COVPL1 - CO object: Activity type line items by period
        COVJL1 - CO object: Line items for acty types (by year)
    COSLD - CO object: Activity type sums - calculated
    FPLT - Billing Plan: Dates
    COSB1 - CO Object: Total Variances/Results Analyses
        COVPB1 - CO object: Variance/accrual line items by period
    COSBD1 - CO object: Sums of variance/accrual - calculated
    ANIA1 - Depr. simulation for invest. projects
        ANIB1 - Invest. projects: Depr. simulation analysis report
    ANLI1 - Link table for capital investment measure -> AuC
    FMSU1 - FM totals records for financial data
        COVFP1 - CO object: Financial data line items with doc. hdr
    TPI031 - CO Objects: Date of Last Interest Run
    EKKO - Purchasing Document Header
    PSDYVB - LDB PSJ: Dummy structure under VBAP
    EKPO - Purchasing Document Item
        EKET - Scheduling Agreement Schedule Lines
        EKKN - Account Assignment in Purchasing Document
        EKBE - Purchasing Document History
    EBAN - Purchase requisition
        EBKN - Purchase Requisition Account Assignment
    FPLAPS - Billing plan for PSP network plan
        FPLTPS - Billing plan for PSP/network (dates)
    LIKP - SD Document: Delivery Header Data
        LIPS - SD document: Delivery: Item data
    PSDYVK - LDB PSJ: Dummy structure under VBAK
    PSMERK - Characteristics for summarization wo.classificatn
    DRAD - Document-object link
    PRPS_R - Project Hierarchy Reporting Structure
        PRTE - Scheduling Data for Project Item
        PSMLST - Milestone I/O Table
        PSTX - PS Texts (Header)
    RSTHIE - BRST structure of the hierarchy table
        PLAF - Planned order
        PSMERK_PRPS - Characteristics for Summarization for WBS Elements
    KBED04 - Capacity Requirement Recs for Planned Orders (LDB)
    RESB04 - Reservation/dependent reqs for plan order (LDB)
        PSDYPR - LDB PSJ: Dummy structure under PRPS_R
    AUFK - Order master data
        AFKO - Order Header Data PP Orders
            AFPO - Order Item
            AFFL - Work order sequence
                ACT01 - Activity for LDB 01
    PSDYRH - LDB PSJ: Dummy structure under RSTHIE
    AFAB01 - Network Relationship (for LDB) - 01
    MLSTD - Milestone I/O Table
    PSTX1 - PS Texts (Header) for Activity (1)
    AFFH01 - Order PRT Data (for LDB) - 01
    KBED01 - Capacity Requirement Records (for LDB) - 01
        KBEZ - Additional data for table KBED (for ind.req/split)
            KPER - Additional data for KBEZ (person split in days)
        AFRU02 - Order Confirmations (for LDB) -02
    RESB01 - Reservation/Dependent Requirement for LDB-01
        PSDYOK - LDB PSJ: Dummy structure under RESB01
    PROJ - Project definition
    AFRU01 - Order Confirmations (for LDB) - 01
    PSMERK_ACT - Charactersitics for Summarization for Activity
    PSDYNV - LDB PSJ: Dummy structure under ACT01
        AFIH - Maintenance order header
        PSDYNP - LDB PSJ: Dummy structure under AUFK
    IMTP - Investment programs
        IMPR - Investment Program Positions
            PSDYIP - LDB PSJ: Dummy structure under IMPR
        PSDYPG - LDB PSJ: Dummy structure under IMTP
    PEGOB - Peg (master data of the CO object)
    PSDYPD - LDB PSJ: Dummy structure under PROJ
    PEGQTY - Assigned pegging object quantities
    PSDYPEG - LDB PSJ: Dummy Structure Under PEGOB
    ELM_PS - Additional data for hierarchy nodes (LDB PSJ)
        JSTO - Status object information
            PSTAT - Condensed status display
            JCDO - Change Documents for Status Object (Table JSTO)
            JEST - Individual Status per Object
                JCDS - Change docs. for system/user status (table JEST)
        ONR00 - General Object Number
            RPSCO1 - Summarization Table for Project Reporting
    VBAK - Sales Document: Header Data
            RPSQT - Summarization table for project reporting (quants)
            EV_PARAM - Object parameters for earned value analysis
            EV_POC - Earned value analysis: percentage of completion
            EV_VAL - Earned value analysis: earned value
            COBRA - Settlement Rule for Order Settlement
                COBRB - Distribution rules for sett. rule for order sett.
            BPHI1 - Cross-hierarchy data Control
            BPTR1 - Object Data Control
                BPGE1 - Totals record total value Control
                    BPVG1 - Table Generated for View BPVG1
    VBUK - Sales Doc.: Header Status and Administrative Data
                    BKHS1 - Header - Unit Costing (Control + Totals)
                        HEAD10 - SAPscript: Text Header
                            LINE10 - SAPscript: Text Lines
                        BKHT1 - Texts for CKHS
                        BKIS1 - Individual calculation/verification item gen.
                            BKIT1 - Texts for CKIS
                        BKIP1 - Periodic Values for Unit Costing Item
                BPJA1 - Totals record for total year value Control
                    BPVJ1 - Table Generated for View BPVJ1
                    BKHS2 - Header - Unit Costing (Control + Totals)
    VBKD - Sales Document: Business Data
    HEAD20 - SAPscript: Text Header
        LINE20 - SAPscript: Text Lines
    BKHT2 - Texts for CKHS
    BKIS2 - Individual calculation/verification item gen.
        BKIT2 - Texts for CKIS
    BKIP2 - Periodic Values for Unit Costing Item
                BPPE1 - Totals Record for Period Values Control
                    BPVP1 - Table Generated for View BPVP1
                BPIG1 - Budget Object Index (Overall Budget)
                BPIJ1 - Budget Object Index (Annual Budget)
    VBAP - Sales Document: Item Data
            COKA1 - CO Object: Cost Element Control Data
            COKP1 - CO Object: Primary Planning Control Data
                HEAD11 - SAPscript: Text Header
                    LINE11 - SAPscript: Text Lines
                CKHS1 - Header - Unit Costing (Control + Totals)
                    CKHT1 - Texts for CKHS
                    HEAD12 - SAPscript: Text Header
                        LINE12 - SAPscript: Text Lines
                    CKIS1 - Individual calculation/verification item gen.
                        CKIT1 - Texts for CKIS