AFIHW SAP (PM Order Include Part of Order Header (Fields from AFIH)) Structure details

Dictionary Type: Structure
Description: PM Order Include Part of Order Header (Fields from AFIH)




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




Structure field list including key, data, relationships and ABAP select examples

AFIHW 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 Order Include Part of Order Header (Fields from AFIH)" 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_AFIHW TYPE AFIHW.

The AFIHW table consists of various fields, each holding specific information or linking keys about PM Order Include Part of Order Header (Fields from AFIH) data available in SAP. These include PRIOK (Priority), EQUNR (Equipment Number), BAUTL (Assembly), ILOAN (Location and account assignment for technical object).. 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 AFIHW 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
ARTPRPriority Type ARTPRCHAR2T356AARTPR
PRIOKPriority PRIOKCHAR1T356PRIOKPRIOK
EQUNREquipment Number EQUNRCHAR18EQUIALPHAEQUNREQNEQUI
BAUTLAssembly BAUTLCHAR18MARAMATN1MATNRMAT
ILOANLocation and account assignment for technical object ILOANCHAR12ILOAILOAN
ILOAIILOA Individual ILOAICHAR1X
ANLZUSyst.Condition ANLZUCHAR1T357MANLZU
IWERKMaintenance Planning Plant IWERKCHAR4T399IWERKSIWK
INGPRPlanner Group for Customer Service and Plant Maintenance INGRPCHAR3T024IINGRPIHG
APGRPResponsible planner group/department VAGRPCHAR3T024AVAGRPH_T024A
PM_OBJTYObject Type of CIM Resources for Work Center PM_OBJTYCHAR2CR_OBJTY
GEWRKObject ID of the Work Center LGWIDNUMC8CRIDCR_OBJID
KUNUMCustomer Number KUNUMCHAR10KNA1ALPHAKUNNRKUN
ANINGName of Person Reponsible for System ANINGCHAR12USNAM
GAUZTPlanned downtime in hours GAUZTFLTP16(16) FLTP
GAUEHUnit for Breakdown Duration MAUEHUNIT3T006CUNITMEINS
ANLBDDate until which the system is available ANLBDDATS8DATUM
ANLVDDate from which the system is available ANLVDDATS8DATUM
ANLBZTime until which the system is available ANLBZTIMS6UHRZT
ANLVZTime from Which System is Available ANLVZTIMS6UHRZT
INSPKName of Person Responsible for Technical Inspection INSPKCHAR12USNAM
DATANDate of Technical Inspection DATANDATS8DATUM
WARPLMaintenance Plan WARPLCHAR12MPLAALPHAWARPLMPLMPLAL
ABNUMMaintenance Plan Call Number ABNUMINT410ABNUM
WAPOSMaintenance item WAPOSCHAR16ALPHAPOSNUMPSMPOSL
LAUFNOrder number LAUFNCHAR12AUFKALPHAAUFNRANR
OBKNRObject list number OBJKNRINT410Assigned to domainOBJKN
REVNRRevision for Plant Maintenance and Customer Service REVNICHAR8T352RREVNI
ADDATPM Order: Reference Date ADDATDATS8DATUM
ADUHRTime of Reference Date ADUHRTIMS6UZEIT
IPHASMaintenance Processing Phase PM_PHASECHAR1PM_PHASE
ILARTMaintenance activity type ILACHAR3T353IILARTH_T350I
QMNUMNotification No QMNUMCHAR12QMELALPHAQMNUMIQM
HISDAPM request: History date HISDADATS8DATUM
AKKNZOrder Category Indicator Plant Maintenance AKKNZCHAR1AKKNZ
PLKNZMaintenance order planning indicator AUF_PLKNZCHAR1AUF_PLKNZ
SERIALNRSerial Number GERNRCHAR18GERNRGERNRSER
SERMATMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
DEVICEIDAdditional Device Data DEVICEIDCHAR40DEVICEID
SCREENTYScenario or Subscreen Category SCRTPCHAR4Assigned to domainSCRTP
ADPSPReference Element PM/PS ADDCOMPARE_CORECHAR40Assigned to domainADDCOMPARE_COREADCP
RSUPGUpgrade Order Indicator RSUPGCHAR1XFIELD
VAWRKPlant associated with main work center WERGWCHAR4T001WWERKS
VAPLZMain work center for maintenance tasks GEWRKCHAR8ARBPLVAP
VATXTShort text for the work center AP_KTEXTCHAR40TEXT40
INNAMName of the Maintenance Planner Group INNAMCHAR18TEXT18
OL_AEKNZChange indicator AEKNZCHAR1FLAG
PMCO_AEKNZChange indicator AEKNZCHAR1FLAG
SP_AEKNZChange indicator AEKNZCHAR1FLAG
PRINT_FLAGIndicator: Order Printing Requested PM_PRT_FLGCHAR1X
ABRUF_FLAGFlag: Maintenance plan call PM_ABR_FLGCHAR1X
WO_FLAGIndicator: Order Creation from PM Notification PM_WO_FLGCHAR1X
PLVARPlan Version PLVARCHAR2T778PPLVARPOP
WCM_VBKZChange indicator AEKNZCHAR1FLAG
.INCLU--AP 0
/ISDFPS/OBJNRObject number J_OBJNRCHAR22Assigned to domainJ_OBJNRONR
/ISDFPS/MEQUIMaster Equipment /ISDFPS/MEQUICHAR18Assigned to domainALPHAEQUNR
.INCLU--AP 0
ORCODPM/CS Order Code Indicating Rotable Process ADPM_ORDERCODECHAR1ADPMPRIOHDADPM_ORDERCODE
PRMANCMC: Priority Manually Changed ADPM_PRMANCHAR1CHAR1
PRVALPriority for PM/CS Orders ADPM_RTPRIONUMC2DOKU_SEQN2
TWTDECMC: Use Minimum or Standard TWT from PP Matrix ADPM_TWTFLAGCHAR1CHAR1
MSTCKSingle-Character Indicator CHAR1CHAR1CHAR1
.INCLU--AP 0
UIIUnique Item Identifier UII_CHAR72CHAR72UII_CHAR72UIIH_UII

Key field Non-key field



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

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

How to access SAP table AFIHW

Within an ECC or HANA version of SAP you can also view further information about AFIHW 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!