AFIH is a standard Maintenance Orders Transparent Table in SAP PM application, which stores Maintenance order header data. Below you can view the Table Structure, columns(fields), SAP Wiki pages, discussion threads, related TCodes, FMs, ABAP Reports, BW Datasources, and Authorization Objects for AFIH. You can use the transaction code SE16 to view the data in this table, and SE11 TCode for the table structure and definition.

AFIH — Meta Data

Description: Maintenance order header
Main Category: PM
Sub Category: Maintenance Orders
Table type: Transparent Table (TRANSP)

AFIH — Table Structure, Fields(Columns) and Definitions

    Position Column Name Description Primary Key Data Type Length Check Table
    1 MANDT Client X CLNT 3 T000
    2 AUFNR Order X CHAR 12 AUFK
    3 .INCLUDE 0
    4 ARTPR Priority Type CHAR 2 T356A
    5 PRIOK Priority CHAR 1 T356
    6 EQUNR Equipment Number CHAR 18 EQUI
    7 BAUTL Assembly CHAR 40 MARA
    8 ILOAN Location and account assignment for technical object CHAR 12 ILOA
    9 ILOAI ILOA individual CHAR 1
    10 ANLZU Updated information in related user data field CHAR 1 T357M
    11 IWERK Maintenance Planning Plant CHAR 4 T399I
    12 INGPR Updated information in related user data field CHAR 3 T024I
    13 APGRP Reserved Field/Unused Field CHAR 3 T024A
    14 PM_OBJTY Updated information in related user data field CHAR 2
    15 GEWRK Updated information in related user data field NUMC 8 CRID
    16 KUNUM Account Number of Customer or Debtor CHAR 10 KNA1
    17 ANING Updated information in related user data field CHAR 12
    18 GAUZT Updated information in related user data field FLTP 16
    19 GAUEH Updated information in related user data field UNIT 3 T006
    20 ANLBD Updated information in related user data field DATS 8
    21 ANLVD Updated information in related user data field DATS 8
    22 ANLBZ Updated information in related user data field TIMS 6
    23 ANLVZ Updated information in related user data field TIMS 6
    24 INSPK Name of Person Responsible for Technical Inspection CHAR 12
    25 DATAN Date of Technical Inspection DATS 8
    26 WARPL Maintenance Plan CHAR 12 MPLA
    27 ABNUM Maintenance Plan Call Number INT4 10
    28 WAPOS Maintenance Item CHAR 16
    29 LAUFN Updated information in related user data field CHAR 12 AUFK
    30 OBKNR Numerical field INT8 19 SER00
    31 REVNR Character field CHAR 8 T352R
    32 ADDAT Accident document date DATS 8
    33 ADUHR Updated information in related user data field TIMS 6
    34 IPHAS Updated information in related user data field CHAR 1
    35 ILART Activity Type CHAR 3 T353I
    36 QMNUM Notification CHAR 12 QMEL
    37 HISDA Updated information in related user data field DATS 8
    38 AKKNZ Updated information in related user data field CHAR 1
    39 PLKNZ Updated information in related user data field CHAR 1
    40 SERIALNR Serial Number CHAR 18
    41 SERMAT Material Number CHAR 40 MARA
    42 DEVICEID Unique ID of Synchronization Container CHAR 40
    43 SCREENTY Scenario or Subscreen Category CHAR 4 TQBT
    44 ADPSP Updated information in related user data field CHAR 40
    45 RSUPG Upgrade Order Indicator CHAR 1
    46 CHANGEDDATETIME UTC Time Stamp in Short Form (YYYYMMDDhhmmss) DEC 15
    47 .INCLU--AP 0
    48 /ISDFPS/OBJNR Object number CHAR 22 *
    49 /ISDFPS/MEQUI Updated information in related user data field CHAR 18 *
    50 .INCLU--AP 0
    51 /ISDFPS/MHIO_ADDATE Completion Date for Call Object DATS 8
    52 /ISDFPS/MHIO_ADTIME Completion Time for Call Object TIMS 6
    53 /ISDFPS/USERMODE Scheduling determined by user CHAR 1
    54 .INCLU--AP 0
    55 UII Eindeutige Teile-ID CHAR 72
    56 .INCLU--AP 0
    57 .INCLUDE 0
    58 ORCOD PM/CS Order Code Indicating Rotable Process CHAR 1 *
    59 PRMAN CMC: Priority Manually Changed CHAR 1
    60 PRVAL Single-Character Flag NUMC 2
    61 TWTDE CMC: Use Minimum or Standard TWT from PP Matrix CHAR 1
    62 MSTCK Single-Character Flag CHAR 1

SAP Help, Wiki Resources, and Forum Discussions on AFIH


Related Tables

TABLE Description Functional Area
AUFK Order master data CO - Overhead Cost Orders
AFKO Order header data PP orders PP - Production Orders
AFVC Operation within an order PP - Production Orders
AFPO Order item PP - Production Orders
ILOA PM Object Location and Account Assignment PM - Functional Locations
AFVV DB structure of the quantities/dates/values in the operation PP - Production Orders
AFRU Order Confirmations PP - Confirmations

Transaction Codes for SAP Table AFIH

TCODE Description Functional Area
AFAB Post depreciation FI - Basic Functions
SPRO Customizing - Edit Project Basis - Customizing Project Management (IMG)
IW31 Create Order PM - Maintenance Orders
IW32 CHANGE ORDER PM - Maintenance Orders
IW33 Display PM Order PM - Maintenance Orders
SE16 Data Browser Basis - Workbench Utilities
SE11 ABAP Dictionary Maintenance Basis - Dictionary Maintenance
IW38 Change PM Orders PM - Maintenance Orders

FMs for SAP Table AFIH

FM Description Functional Area
BAPI_ALM_ORDER_MAINTAIN Process Maintenance-/Service Order PM - Maintenance Orders
CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal Basis - Syntax, Compiler, Runtime
STATUS_TEXT_EDIT The 4 Character Status is Edited within One Line (40 Character) Cross Application - General status management
REUSE_ALV_GRID_DISPLAY Output of a simple list (single-line) Basis - SAP List Viewer
READ_TEXT SAPscript: Read text BC - SAPscript
BAPI_ALM_NOTIF_DATA_ADD PM/CS Notification: Add Data PM - Maintenance Notifications
BAPI_ALM_NOTIF_SAVE Save PM/CS Notification PM - Maintenance Notifications
F4IF_INT_TABLE_VALUE_REQUEST F4 help also returning the value to be displayed in internal table Basis - F4 Help

ABAP Reports for SAP Table AFIH

ABAP REPORT Description Functional Area
SAPLIQS0 Include SAPLIQS0
RIPRJT00 PM: Job Ticket PM - Plant Maintenance
RIAUFK20 Display and Change Service and Maintenance Orders PM - Maintenance Orders
ALSYSAL Program for Object Type SYSALERT: System Alert Basis - Monitoring
RHBEGDA0 Set new start date Basis - Organizational Management
SAPLBTCH Background Processing
SPRSL TEXT 630 - Workbench Tools: Editors
RSAP0001 Program for object type SAP0001 : BapiService Basis - BW Service API

BW Datasources for SAP Table AFIH

BW DATASOURCE Description Functional Area
2LIS_17_I3HDR Plant maintenance orders PM - Plant Maintenance
2LIS_17_I3OPER Plant Maintenance Order Process PM - Plant Maintenance
2LIS_18_I3OPER Service order operation -
2LIS_18_I3HDR Service Orders -
0PM_ORDER_ATTR Plant Maintenance Order Attribute PM - Plant Maintenance
2LIS_02_ITM Purchasing Data (Item Level) MM - Materials Management
2LIS_04_P_ARBPL Work Center View from PP/PP-PI PP - Production Planning and Control
0CS_OM_OPA_1 Service Orders: Costs and Allocations -

Authorization Objects for SAP Table AFIH

AUTHORIZATION OBJECT Description Functional Area
K_KEKO CO-PC: Product Costing
ECM_CTXT Engineering Change Management: Context
B_USERST_T Status Management: Set/Delete User Status using Transaction
I_IWERK PM: Maintenance Planning Plant
CMS_RBL Authorization object for receivable in CMS
CMS_CAG Authorization object for CAG
J_1ITDS Authorization object for TDS transaction J1IN
P_ORGIN HR: Master Data