AFFH SAP (PRT assignment data for the work order) Table details
Dictionary Type: Table
Description: PRT assignment data for the work order
Description: PRT assignment data for the work order
Table field list including key, data, relationships and ABAP select examples
AFFH is a standard SAP Table which is used to store PRT assignment data for the work order data and is available within R/3 SAP systems depending on the version and release level.
The AFFH table consists of various fields, each holding specific information or linking keys about PRT assignment data for the work order data available in SAP. These include AUFPL (Routing number of operations in the order), PZLFH (Item counter for production resources/tools), LOEKZ (Deletion Indicator), PARKZ (Indicator: inactive changes).. 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: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP AFFH table 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 |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
AUFPL | Routing number of operations in the order | CO_AUFPL | NUMC | 10 | AUFPL | ||||
PZLFH | Item counter for production resources/tools | PZLFH | NUMC | 8 | PZLFH | ||||
LOEKZ | Deletion Indicator | LKENZ | CHAR | 1 | XFELD | ||||
PARKZ | Indicator: inactive changes | PARKZ | CHAR | 1 | XFELD | ||||
DATUI | Date record created on | ANDAT | DATS | 8 | DATUM | ||||
USERI | User who created record | ANNAM | CHAR | 12 | USNAM | ||||
DATUC | Changed On | AEDAT | DATS | 8 | DATUM | ||||
USERC | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
OBJTY | Object types of the CIM resource | CR_OBJTY | CHAR | 2 | CR_OBJTY | ||||
OBJID | Object ID of the resource | CR_OBJID | NUMC | 8 | CRID | CR_OBJID | |||
PLNTY_KEY | Task List Type | PLNTY | CHAR | 1 | TCA01 | PLNTY | PTY | H_TCA01 | |
PLNNR_KEY | Key for Task List Group | PLNNR | CHAR | 8 | ALPHA | PLNNR | PLN | PLKS | |
PZLFH_KEY | Item counter for production resources/tools | PZLFH | NUMC | 8 | PZLFH | ||||
ZAEHL_KEY | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
OBJCT | Object of a task list | OBJCT_D | CHAR | 1 | OBJKT | ||||
APLZL | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
PSNFH | Item Number for Production Resource/Tool | PSNFH | NUMC | 4 | PSNFH | ||||
OBJNR | Object number | J_OBJNR | CHAR | 22 | ONR00 | J_OBJNR | ONR | ||
STEUF | Control key for management of production resources/tools | STEUF | CHAR | 4 | TCF10 | STEUF | |||
KZKBL | Indicator: Create load records for prod. resources/tools | KZKBL | CHAR | 1 | XFELD | ||||
BZOFFB | Reference date to start of production resource/tool usage | BZOFFB | CHAR | 2 | TCA54 | CP_BZOFF | |||
OFFSTB | Offset to start of production resource/tool usage | OFFSTB | QUAN | 5 | VNZTV | ||||
EHOFFB | Offset unit for start of prod. resource/tool usage | EHOFFB | UNIT | 3 | T006 | CUNIT | MEINS | ||
BZOFFE | Reference date for end of production resource/tool usage | BZOFFE | CHAR | 2 | TCA54 | CP_BZOFF | |||
OFFSTE | Offset to finish of production resource/tool usage | OFFSTE | QUAN | 5 | VNZTV | ||||
EHOFFE | Offset unit for end of production resource/tool usage | EHOFFE | UNIT | 3 | T006 | CUNIT | MEINS | ||
FSFHD | Earliest scheduled start (date) for PRT usage | CF_FSFHD | DATS | 8 | DATUM | ||||
FSFHZ | Earliest scheduled start (time) for PRT usage | CF_FSFHZ | TIMS | 6 | UZEIT | ||||
FEFHD | Earliest scheduled finish (date) of PRT usage | CF_FEFHD | DATS | 8 | DATUM | ||||
FEFHZ | Earliest scheduled end (time) of PRT usage | CF_FEFHZ | TIMS | 6 | UZEIT | ||||
SSFHD | Latest scheduled start (date) for PRT usage | CF_SSFHD | DATS | 8 | DATUM | ||||
SSFHZ | Latest scheduled start (time) for PRT usage | CF_SSFHZ | TIMS | 6 | UZEIT | ||||
SEFHD | Latest scheduled finish (date) of PRT usage | CF_SEFHD | DATS | 8 | DATUM | ||||
SEFHZ | Latest scheduled end (time) for PRT usage | CF_SEFHZ | TIMS | 6 | UZEIT | ||||
ISFHD | Actual start (date) of PRT usage | CF_ISFHD | DATS | 8 | DATUM | ||||
ISFHZ | Actual start (time) of PRT usage | CF_ISFHZ | TIMS | 6 | UZEIT | ||||
IEFHD | Actual finish (date) of PRT usage | CF_IEFHD | DATS | 8 | DATUM | ||||
IEFHZ | Actual finish (time) of PRT usage | CF_IEFHZ | TIMS | 6 | UZEIT | ||||
DAUFL | Duration of PRT usage | CF_DAUFL | FLTP | 16(16) | CX_ZEIT | ||||
DAUEH | Time unit for duration of PRT usage | CF_DAUEH | UNIT | 3 | T006 | CUNIT | MEINS | ||
MGEINH | Quantity unit of production resource/tool | MGEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
MGVGW | Standard value for the PRT quantity | MGVGW | QUAN | 9(3) | MENG9 | ||||
MGSOLEH | Quantity unit of production resource/tool | MGEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
MGSOL | Total planned quantity of production resource/tool | MGSOL | QUAN | 9(3) | MENG9 | ||||
MGISTEH | Quantity unit of production resource/tool | MGEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
MGIST | Confirmed quantity of production resource/tool | MGIST | QUAN | 9(3) | MENG9 | ||||
MGRSTEH | Quantity unit of production resource/tool | MGEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
MGRST | Remaining quantity of the production resource/tool | MGRST | QUAN | 9(3) | MENG9 | ||||
MGAUSEH | Quantity unit of production resource/tool | MGEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
MGAUS | Quantity of checked-out production resources/tools | MGAUS | QUAN | 9(3) | MENG9 | ||||
MGFORM | Formula for calculating the total quantity of PRT | CF_MGFORM | CHAR | 6 | TC25 | AP_FORMEL | |||
EWEINH | Usage value unit of the production resource/tool | EWEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
EWVGW | Standard usage value for production resources/tools | EWVGW | QUAN | 9(3) | MENG9 | ||||
EWSOLEH | Usage value unit of the production resource/tool | EWEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
EWSOL | Total planned usage value of production resource/tool | EWSOL | QUAN | 9(3) | MENG9 | ||||
EWISTEH | Usage value unit of the production resource/tool | EWEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
EWIST | Actual usage value for production resource/tool | EWIST | QUAN | 9(3) | MENG9 | ||||
EWRSTEH | Usage value unit of the production resource/tool | EWEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
EWRST | Remaining usage value of the production resource/tool | EWRST | QUAN | 9(3) | MENG9 | ||||
EWFORM | Formula for calculating the total usage value of PRT | CF_EWFORM | CHAR | 6 | TC25 | AP_FORMEL | |||
TXTSP | Language Key | SPRAS | LANG | 1 | T002 | ISOLA | SPRAS | SPR | H_T002 |
KTSCH | Standard text key for production resources/tools | CF_KTSCH | CHAR | 7 | T435 | KTSCH | |||
TXTZ1 | First line of text for production resources/tools | TXTZ1 | CHAR | 40 | TEXT40 | ||||
OBJTYPE | Change indicator | OCM_OBJ_TYPE | CHAR | 1 | OCM_OBJ_TYPE | ||||
CH_PROC | Process that has lead to the change of an object | OCM_CH_PROC | CHAR | 1 | OCM_CH_PROC | ||||
AENNR | Change Number | AENNR | CHAR | 12 | Assigned to domain | AENNR | AENNR | AEN |
Key field | Non-key field |
How do I retrieve data from SAP table AFFH using ABAP code
The following ABAP code Example will allow you to do a basic selection on AFFH to SELECT all data from the tableDATA: WA_AFFH TYPE AFFH.
SELECT SINGLE *
FROM AFFH
INTO CORRESPONDING FIELDS OF WA_AFFH
WHERE...
How to access SAP table AFFH
Within an ECC or HANA version of SAP you can also view further information about AFFH and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects