Inheriting FL class to equipment
I have a FL where process characteristics and TAG number is stored . This will not be changing for long time. I have the physical equipment installed under the same FL . The equipment has its equipment specific characteristics. I want to add FL's class in the equipment so that along with the equipment class-chars , the user should also be able to see FL process class-characteristics. But in standard SAP, you will not be able to inherit a FL class in equipment.
How can we achieve this ?
Jogeswara Rao K replied
Tough requirement. ABAPer needs to work for sometime. But looks achievable.
When the Functional Location is updated with Class related fields the inheritancy code written in the above exit should function.
Logic for the code
The code selects the Equipments under the Functional location into an internal table and with a loop updates these equipments with the Class and characteristic values of the F/Locn.
FMs to help the Code
1. BAPI_OBJCL_GETCLASSES for reading the Class-Char information of the F/Location
2. BAPI_OBJCL_CHANGE for updating the Equipment Class Characteristics (Objectkey field is Equipment number and Objecttable is EQUI, other fields and tables are self-explanatory)
Here in using the 2nd FM some technical difficulty might arise for the Class information already available in the Equipment. For this Read this thread carefully where solution is also present: Problem with entering Equipment Characteristics values using BAPI/FM