1. AUTO TECO for Plating & Laser marking
AS IS: T code: ZCTECO _Automatic PP order TECO Report.
TO BE: Requirement of Automatic Production order closure.
Copy the existing program from ZCTECO and do the below needful changes as per business
requirement. Production order closure based on production scheduler with respect to
validation of Order quantity, Goods issue quantity and Goods receipt quantity.
(NOTE:Program would be executedbothinForeground&background)
Logic:
Use the ZPPARAM table concept to fetch the details of Production Scheduler. The above
program shall be executed only for production order having production schedulers as
maintained in the ZPPARAM table
Pass Production order(AUFNR_AFKO) in AFKO Table to fetch the Production Supervisor
(FEVOR_AFKO) for Production scheduler C40 to C79 and C90 to C99 in PARAM table as shown
below. Retain only those production orders
Pass Order (AUFNR _AFKO) in AFPO Table to fetch the Material Number (MATNR).
Pass the Material (MATNR_ AFPO) in MARC to fetch the Production Supervisor (FEVOR_MARC)
in MARC Table.
If and only if validation of Production Supervisor in AFKO Table (FEVOR_AFKO) = Equals to
(FEVOR_MARC) Production Supervisor in MARC Table, then process for further validation.
If the above validation fails keep in error log as “Örder No-Production Schedulerof Material &
Order does not match
PARAM values will be maintained in ranges. PARAM3 will haveinitial value
and PARAM4 will have last no of the range. All the values to be considered,
inclusive of initial and final schedulars
PARAM1 NewT code: Not Decided
2. AUTO TECO for Plating & Laser marking
PARAM2 PSCHED
PARAM3 Initial Value- C40
PARAM4 Final Value-C79
2nd Validation:
If Order quantity (PGMNG_AFPO) equals to Goods issue quantity in table AUFM Movement
Type = 261 (if and only if BWART=261) and also equals to Goods receipt quantity (Movement
Type 101) WEMNG in AFPO then automatically closure (TECO) will happen tothe respective
production order.
Order quantity (PGMNG_AFPO) = Goods issue quantity in table AUFM Movement Type = 261
(if and only if BWART=261) = Goods receipt quantity WEMNG Movement Type 101) (WEMNG
_AFPO
Or else don’t make any changes to orders which are not passing the above validation.
In the success log- display the complete list of technically complete order (TECO orders)