SAP MCAFIH PM-/CS Order Table data and field list

MCAFIH 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 "PM-/CS Order" 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_MCAFIH TYPE MCAFIH.

The MCAFIH table consists of various fields, each holding specific information or linking keys about PM-/CS Order data available in SAP. These include AUFNR (Order Number), AUART (Order Type), ILART (Maintenance activity type), IPHAS (Maintenance Processing Phase)... 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. .

MCAFIH structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP MCAFIH 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 MCAFIH 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
AUFNROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
AUARTOrder Type AUFARTCHAR4Assigned to domainAUFARTAAT
ILARTMaintenance activity type ILACHAR3Assigned to domainILARTH_T350I
IPHASMaintenance Processing Phase PM_PHASECHAR1PM_PHASE
PLKNZMaintenance order planning indicator AUF_PLKNZCHAR1AUF_PLKNZ
AKKNZOrder Category Indicator Plant Maintenance AKKNZCHAR1AKKNZ
OBJNRObject number J_OBJNRCHAR22Assigned to domainJ_OBJNRONR
AUFPLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
PRIOKPriority PRIOKCHAR1Assigned to domainPRIOKPRIOK
QMNUMNotification No QMNUMCHAR12Assigned to domainALPHAQMNUMIQM
IWERKMaintenance Planning Plant IWERKCHAR4Assigned to domainWERKSIWK
INGRPPlanner Group for Customer Service and Plant Maintenance INGRPCHAR3Assigned to domainINGRPIHG
TPLNRFunctional Location TPLNRCHAR30Assigned to domainTPLNRTPLNRIFLIFLM
EQUNREquipment Number EQUNRCHAR18Assigned to domainALPHAEQUNREQNEQUI
BAUTL_HDAssembly BAUTLCHAR18Assigned to domainMATN1MATNRMAT
PM_OBJTYObject Type of CIM Resources for Work Center PM_OBJTYCHAR2CR_OBJTY
GEWRKObject ID of the Work Center LGWIDNUMC8Assigned to domainCR_OBJID
AWERKPlant associated with main work center AWERKCHAR4Assigned to domainWERKS
VAPLZMain work center for maintenance tasks GEWRKCHAR8ARBPLVAP
REVNRRevision for Plant Maintenance and Customer Service REVNICHAR8Assigned to domainREVNI
ABCKZABC indicator for technical object ABCKZCHAR1Assigned to domainABCKZ
SWERKMaintenance plant SWERKCHAR4Assigned to domainWERKSSWK
STORTAsset location STORTCHAR10Assigned to domainAP_STAND
BEBERPlant section BEBERCHAR3Assigned to domainBEBERBBE
MSGRPRoom RAUMNRCHAR8CHAR8
GSBERBusiness Area GSBERCHAR4Assigned to domainGSBERGSB
BUKRSCompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
KOKRSControlling Area KOKRSCHAR4Assigned to domainCACCDCAC
KOSTLCost Center KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
WARPLMaintenance Plan WARPLCHAR12Assigned to domainALPHAWARPLMPLMPLAL
WAPOSMaintenance item WAPOSCHAR16ALPHAPOSNUMPSMPOSL
VKORGSales Organization VKORGCHAR4Assigned to domainVKORGVKOC_VKORG
VTWEGDistribution Channel VTWEGCHAR2Assigned to domainVTWEGVTWC_VTWEG
SPARTDivision SPARTCHAR2Assigned to domainSPARTSPAC_SPART
VKGRPSales Group VKGRPCHAR3Assigned to domainVKGRPVKG
VKBURSales Office VKBURCHAR4Assigned to domainVKBURVKB
KUNUMCustomer Number KUNUMCHAR10Assigned to domainALPHAKUNNRKUN
KDAUFSales Order Number KDAUFCHAR10Assigned to domainALPHAVBELNAUN
KDPOSItem Number in Sales Order KDPOSNUMC6NUM06KPO
GLTRPBasic finish date CO_GLTRPDATS8DATUM
GSTRPBasic Start Date PM_ORDGSTRPDATS8DATUM
FTRMSScheduled release date CO_FTRMSDATS8DATUM
GLTRSScheduled finish CO_GLTRSDATS8DATUM
GSTRSScheduled start CO_GSTRSDATS8DATUM
GSTRIActual start date CO_GSTRIDATS8DATUM
GETRIConfirmed Order Finish Date CO_GETRIDATS8DATUM
FTRMIActual release date CO_FTRMIDATS8DATUM
IDAT2Technical completion date AUFIDAT2DATS8DATUM
ADDATPM Order: Reference Date ADDATDATS8DATUM
ADUHRTime of Reference Date ADUHRTIMS6UZEIT
ERNAMName of Person who Created the Object ERNAMCHAR12USNAM
ERDATDate on Which Record Was Created ERDATDATS8DATUM
ERFZEITTime, at Which Record Was Added ERZEITTIMS6UHRZT
AENAMName of Person Who Changed Object AENAMCHAR12USNAM
AEDATChanged On AEDATDATS8DATUM
AEZEITTime of Change AEZEITTIMS6UHRZT
SYSTZTime Zone TIMEZONECHAR6Assigned to domainTZNZONE
EHTAGLead Time Unit (Day) QEINHTAGUNIT3Assigned to domainCUNITMEINS
ZHLAFIHNumber of orders DZHLAFIHINT410INT4
ZHLAFIH_OFFENNumber of Open Orders DZHLAFIH_OFINT410INT4
ZHLAFIH_ABGSNumber of Closed Orders DZHLAFIH_ABINT410INT4
ZHLAFIH_NDGEFNumber of orders not to be run DZHLAFIH_NDINT410INT4
ZHLAFIH_TGERLNumber of On-time Closed Orders DZHLAFIH_TEINT410INT4
ZHLAFIH_SOFNumber of Immediate Orders DZHLAFIH_SOFINT410INT4
ZHLAFIH_UNGPLNumber of Unscheduled Orders DZHLAFIH_UPLINT410INT4
ZHLAFIH_GEPLNumber of Planned Orders DZHLAFIH_GPLINT410INT4
DLZNETTOOrder Lead Time/Working Days Acc. to Factory Calendar(Net) DAFIHDZ_NFLTP16(16) QSTATWERT
DLZBRUTTOOrder Run-time in Calendar Days (Gross) DAFIHDZ_BFLTP16(16) QSTATWERT
ASTTXField displaying user status CO_ASTTXCHAR40CHAR40
STTXTSystem Status CO_STTXTCHAR40CHAR40
GLUZSScheduled finish time CO_GLUZSTIMS6UHRZT
GSUZSScheduled Start (Time) CO_GSUZSTIMS6ATIME
GLUZPBasic finish (time) CO_GLUZPTIMS6UHRZT
GSUZPBasic start time CO_GSUZPTIMS6UHRZT
GSUZIActual start time CO_GSUZITIMS6UHRZT
GEUZIConfirmed order finish (time) CO_GEUZITIMS6UHRZT
.INCLU--AP 0
ARM_SETUPConfiguration Code /ISDFPS/LM_ARM_SETUPCHAR30/ISDFPS/DO_LM_SETUP
MODEL_IDModel ID/Weapon System /ISDFPS/DE_LM_MODEL_IDCHAR14Assigned to domain/ISDFPS/DO_LM_MODEL_ID/ISDFPS/MODID/ISDFPS/SH_LM_MODEL_ID
NUM_PERSONSNumber of Persons /ISDFPS/LM_NUM_PERSNUMC3
KRYPTOSTATUSCrypto Status /ISDFPS/LM_KRYPTOCHAR1
LANDING_LOCDestination /ISDFPS/LM_LOCATIONCHAR40TEXT40
CALL_SIGNCall Sign /ISDFPS/LM_CALL_SIGNCHAR12
TIME_OVER_TARGETTime Over Target /ISDFPS/LM_TIME_OTTIMS6
TARGET_LOCDestination /ISDFPS/LM_LOCATIONCHAR40TEXT40
ZULU_TNZONETime Zone TZNZONECHAR6Assigned to domainTZNZONE
START_TNZONETakeoff/Landing Time in the Zulu Time Zone /ISDFPS/LM_TIMETIMS6
START_DATEDate /ISDFPS/LM_DATEDATS8
LANDING_TNZONETakeoff/Landing Time in the Zulu Time Zone /ISDFPS/LM_TIMETIMS6
LANDING_DATEDate /ISDFPS/LM_DATEDATS8
FLIGHT_DURATIONPlanned Flight Time /ISDFPS/FLIGHT_DURATIONDEC11(2) DEC9_2
FL_DURATION_UNITTime Unit for Planned Flight Duration /ISDFPS/FLIGHT_DURATION_UNITUNIT3Assigned to domainCUNITMEINS
F_OBJNRObject number J_OBJNRCHAR22Assigned to domainJ_OBJNRONR
OPERATN_ID_GUIDInternal Key for Force Element /ISDFPS/FORCE_IDCHAR32SYSUUID_C
OPERATN_ID_PLVARPlan Version PLVARCHAR2Assigned to domainPLVARPOP
OPERATN_ID_OTYPEObject Type OTYPECHAR2Assigned to domainOTYPEPOT
OPERATN_ID_OBJIDObject ID HROBJIDNUMC8Assigned to domainHROBJIDPON
OPERATION_CNTInternal (Version) Counter /ISDFPS/FORCE_CNTNUMC6NUMC6
MISSIONMission /ISDFPS/DE_LM_MISSIONCHAR12Assigned to domain/ISDFPS/DO_LM_MISSION/ISDFPS/MISSION/ISDFPS/SH_MISSION
EXTERNAL_IDExternal ID /ISDFPS/DE_LM_EXTERNAL_IDCHAR12CHAR12
LATEST_TAKE_OFFLatest Takeoff /ISDFPS/DE_LM_LATEST_TAKE_OFFTIMS6
LAUNCHING_PADRunway /ISDFPS/DE_LM_LAUNCHING_PADCHAR5
STEXTDescription /ISDFPS/DE_LM_DESCRCHAR40/ISDFPS/DO_LM_TEXT40
FORCE_CNTInternal (Version) Counter /ISDFPS/FORCE_CNTNUMC6NUMC6
CREADATDate of Application /ISDFPS/CREADATDATS8DATS
CREABYCreated by /ISDFPS/CREABYCHAR12USNAM
CHNGDATLast Changed on /ISDFPS/CHNGDATDATS8DATS
CHNGBYLast Changed by /ISDFPS/CHNGBYCHAR12USNAM
LOGSYSLogical System /ISDFPS/LOGSYSCHAR10Assigned to domainALPHALOGSYS/ISDFPS/ALE_SYNC_SYSTEM
ISFLIGHTCheckbox XFELDCHAR1XFELD
ESTATUser Status J_ESTATCHAR5Assigned to domainJ_ESTAT

Key field Non-key field



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

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

How to access SAP table MCAFIH

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

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