SAP AFIH Maintenance order header Table

Overview

AFIH is a standard SAP S/4HANA table that stores Maintenance order header data. There are total 65 fields in the AFIH table. The following is a list of the fields that make up this table. Key fields are marked in blue.

The table AFIH belongs to Maintenance Orders (PM-WOC-MO) module and is located in the package Appl. Development R/3 Plant Maintenance Order Processing (IWO1).

In addition, following links provide an overview of foreign key relationships, if any, that link AFIH to other SAP tables and standard CDS views available based on AFIH table in S/4HANA 2020.

Techincal Settings of AFIH

Below are technical details of the table AFIH

  • Buffering not allowed
  • No buffering
  • Storage type is Column Store

List of AFIH Fields

The following table gives you an overview of the fields available in AFIH

FieldDescriptionData ElementCheck TableData TypeLength
MANDTClientMANDTT000CLNT3
AUFNROrder NumberAUFNRAUFKCHAR12
ARTPRPriority TypeARTPRT356ACHAR2
PRIOKPriorityPRIOKT356CHAR1
EQUNREquipment NumberEQUNREQUICHAR18
BAUTLAssemblyBAUTLMARACHAR40
ILOANLocation and account assignment for technical objectILOANILOACHAR12
ILOAIILOA IndividualILOAICHAR1
ANLZUSystem ConditionANLZUT357MCHAR1
IWERKMaintenance Planning PlantIWERKT399ICHAR4
INGPRPlanner Group for Customer Service and Plant MaintenanceINGRPT024ICHAR3
APGRPResponsible Planner Group or DepartmentVAGRPT024ACHAR3
PM_OBJTYObject Type of CIM Resources for Work CenterPM_OBJTYCHAR2
GEWRKObject ID of the Work CenterLGWIDCRIDNUMC8
KUNUMCustomer NumberKUNUMKNA1CHAR10
ANINGName of Person Reponsible for SystemANINGCHAR12
GAUZTPlanned downtime in hoursGAUZTFLTP16
GAUEHUnit for Breakdown DurationMAUEHT006UNIT3
ANLBDDate until which the system is availableANLBDDATS8
ANLVDDate from which the system is availableANLVDDATS8
ANLBZTime until which the system is availableANLBZTIMS6
ANLVZTime from Which System is AvailableANLVZTIMS6
INSPKName of Person Responsible for Technical InspectionINSPKCHAR12
DATANDate of Technical InspectionDATANDATS8
WARPLMaintenance PlanWARPLMPLACHAR12
ABNUMMaintenance Plan Call NumberABNUMINT410
WAPOSMaintenance itemWAPOSCHAR16
LAUFNOrder numberLAUFNAUFKCHAR12
OBKNRObject list numberOBJKNRSER00INT819
REVNRRevision for Plant Maintenance and Customer ServiceREVNIT352RCHAR8
ADDATPM Order: Reference DateADDATDATS8
ADUHRTime of Reference DateADUHRTIMS6
IPHASMaintenance Processing PhasePM_PHASECHAR1
ILARTMaintenance activity typeILAT353ICHAR3
QMNUMNotification NumberQMNUMQMELCHAR12
HISDAPM request: History dateHISDADATS8
AKKNZOrder Category Indicator Plant MaintenanceAKKNZCHAR1
PLKNZMaintenance order planning indicatorAUF_PLKNZCHAR1
SERIALNRSerial NumberGERNRCHAR18
SERMATMaterial NumberMATNRMARACHAR40
DEVICEIDAdditional Device DataDEVICEIDCHAR40
SCREENTYScenario or Subscreen CategorySCRTPTQBTCHAR4
ADPSPReference Element PM/PSADDCOMPARE_CORECHAR40
RSUPGUpgrade Order IndicatorRSUPGCHAR1
CHANGEDDATETIMEUTC Time Stamp in Short Form (YYYYMMDDhhmmss)TZNTSTMPSDEC15
MAINTORDPERSONRESPONSIBLEPerson Responsible IDEAMS_PERSON_RESPONSIBLECHAR12
MAINTORDOVRLPROCPHASEOverall Process PhaseEAM_OSTAT_PHASECHAR2
MAINTORDOVRLPROCSUBPHASEOverall Process SubphaseEAM_OSTAT_SPHASE*CHAR4
/ISDFPS/OBJNRObject numberJ_OBJNR*CHAR22
/ISDFPS/MEQUIMaster Equipment/ISDFPS/MEQUI*CHAR18
/ISDFPS/MHIO_ADDATECompletion Date for Call ObjectMHIO_ADDATDATS8
/ISDFPS/MHIO_ADTIMECompletion Time for Call ObjectMHIO_ADUHRTIMS6
/ISDFPS/USERMODEScheduling determined by userUSERMODCHAR1
UIIUnique Item IdentifierUII_CHAR72CHAR72
DATAMODELVERSIONData Migration State of Maintenance OrderEAM_SDM_VERSION_AFIHCHAR2
SERVICE_DOC_TYPEBusiness Transaction TypeCRMT_PROCESS_TYPECHAR4
SERVICE_DOC_IDTransaction IDCRMT_OBJECT_ID_DBCHAR10
SERVICE_DOC_ITEM_IDShortened Item Number in DocumentCRMS4_NUMBER_INTNUMC6
IS_BILLABLELogical VariableCRMT_BOOLEANCHAR1
FLDLOGSDELIVISHELDONSHOREHold On-ShoreFLOG_HOLDCHAR1
ORCODPM/CS Order Code Indicating Rotable ProcessADPM_ORDERCODE*CHAR1
PRMANCMC: Priority Manually ChangedADPM_PRMANCHAR1
PRVALPriority for PM/CS OrdersADPM_RTPRIONUMC2
TWTDECMC: Use Minimum or Standard TWT from PP MatrixADPM_TWTFLAGCHAR1
MSTCKSingle-Character FlagCHAR1CHAR1

Foreign Key Relationships

A foreign key field is a table field that is allocated to a check table and becomes part of the table's foreign key. The following table gives you an overview of the foreign keys for AFIH

Table NameFieldCardinalityCheck Table
AFIHANLZUC: CNT357M
AFIHAPGRPC: CNT024A
AFIHARTPRC: CNT356A
AFIHAUFNR1: CNAUFK
AFIHBAUTLC: CNMARA
AFIHEQUNRC: CNEQUI
AFIHGAUEHC: CNT006
AFIHGEWRKC: CNCRID
AFIHILARTC: CNT353I
AFIHILOANC: CNILOA
AFIHINGPRC: CNT024I
AFIHIWERKC: CNT399I
AFIHKUNUMC: CNKNA1
AFIHLAUFNC: CNAUFK
AFIHMANDT1: CNT000
AFIHOBKNR:SER00
AFIHPRIOKC: CNT356
AFIHQMNUMC: CNQMEL
AFIHREVNRC: CNT352R
AFIHSCREENTY:TQBT
AFIHSERMAT:MARA
AFIHWARPLC: CNMPLA

Other References