We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
The Customer Exit EXIT_SAPLORF3_003 (function module of function group XORF7) can be used for the adaption of an user defined statistical model for the calculation of the Rotable Float / Expedables Demand (instead of using the internal model).
The import interface is given by the structure WA3_IP_ABAP. This structure is defined in the Data Dictionary like ORFALGEX. The interface of the external model is larger than the interface of the internal model (WA1_IP_ABAP, which is defined in the Data Dictionary like ORFALGIN). WA3_IP_ABAP contains the following fields:
|N_TP_EX||Number of Aircraft|
|N_EQ_EX||Number of Parts per Aircraft|
|MTBR_EX||Mean Time Between Removals (MTBE)|
|TAT_REWORK_EX||Turnaround Time (Repair, External Model) / Provision Period|
|TAT_TRANSP_EX||Turnaround Time (Transport, External Model)|
|PRICE_EX||Price of Part|
|MAD_EX||Minimum Annual Demand|
Thereby, the values are determined like in the interface of the internal model . The Annual Demand is calculated as proposal with the formulas of the internal model.
The export interface is given by the structure WA2_IP_ABAP which is the same like in the internal model. It is given by:
|ASL||Average Shop Load / Provision Period Demand|
|RF||Rotable Float / Expedables Demand|
All three interface structures are directly written to the main screen of the part based stock calculation (bottom areas of screen 0200 of program ORF2).
Structure of Coding
The function module EXIT_SAPLORF3_003 is encapsulated in an other function module USER_EXIT_CALC (function group: ORF3). The latter is called from the program ORF2 (Single Item Stock Calculation) and ORF6 (Multible Item Stock Calculation). Hence, the function module is called for every IP part type seperately.
For a better unstanding, compare the two form routines CALC_I and CALC_E which are located in the include ORF2F05 of the program ORF2. Here, CALC_I calls the corresponding functions of the internal model, CALC_E calls the customer exit.
The calculation of the results can be diveded in three parts: First, check wether the import values of the interfcace are given in the correct ranges. Second, calculate the Average Shop Load / Provision Period Demand. Third, calculate the Rotable Float / Expedables Demand in dependence on the Average Shop Load / Provision Period Demand and the Confidence Level.