Script SUBCSTB : SUBCSTB
APADDWST: After adding a work center in the [M:CST] screen
Use this entry point to add information concerning the work center or operation in the [M:CST] screen.
Context and operating mode
Transaction
There is no transaction in progress.
Log file
There is an open log file.
Explanations
Three masks are entered with all the information necessary to calculate a standard cost.
For this entry point, the work centers are loaded through the routing.
For the current operation, both work centers are inserted in [M:CST] on 2 different lines.
Available variables and masks
Variable or mask | Definition |
CLCCST0 [M:CST0] | Contains the site |
CLCCSTPAR [M:CTP] | Contains the type of cost to be calculated (standard cost, provisional cost, actual production cost) and all the information necessary for the identification and the cost calculation method |
CLCCST [M:CST] | Contains the calculation details (material cost, operational cost, sub-contract cost, overheads) |
Integer LTRG | 1: Calculation of the overheads at the level of the document |
Integer LBASE | Calculation basis for overheads (quantity or amount according to the value of [F:OVE]FORBASIS) |
Open tables
In the table below, the Significant content flag indicates that the content matches the context.
Table |
Significant content |
Table title |
ITMMASTER |
YES |
Product master |
ITMFACILIT |
YES |
Product-site |
ROUOPE |
YES |
Operation |
CTLADDMAT: Addition of a material in the [M:CST] screen
Use this entry point to control the addition of a component (material) in the [M:CST] screen.
Context and operating mode
Transaction
There is no transaction in progress.
Log file
There is an open log file.
Explanations
Three masks are entered with all the information necessary to calculate a standard cost.
For this entry point, the components are loaded through the BOM.
Available variables and masks
The GPE variable is initialized to 0. If you set it to 1, the current material will not be loaded in the table.
However, if this entry point can be used to force the material to load in the table, the quantity fields must be forced to a value other than zero as they are used for division calculations:
[M:CST]MQTYSTU([M:CST]NBMAT)
and
[F]STDQTY
[F]RETQTY
[F]USEQTY
Variable or mask |
Definition |
CLCCST0 [M:CST0] |
Contains the site |
CLCCSTPAR [M:CTP] |
Contains the type of cost to be calculated (standard cost, provisional cost, actual production cost) and all the information necessary for the identification and the cost calculation method |
CLCCST [M:CST] |
Contains the calculation details (material cost, operational cost, sub-contract cost, overheads) |
Integer LTRG |
1: Calculation of the overheads at the level of the document |
Integer LBASE |
Calculation basis for overheads (quantity or amount according to the value of [F:OVE]FORBASIS) |
Open tables
In the table below, the Significant content flag indicates that the content matches the context.
Table |
Significant content |
Table title |
ITMMASTER |
YES |
Product |
ITMFACILIT |
YES |
Product-site |
MFGMAT or SCOMAT |
YES |
WO component or EO component |
LOADWIP: Replacing the table WIPCOST (MWI)
Use this entry point to replace the table WIPCOST (MWI) with a customized view when used in conjunction with the WIPREGPRIX entry point in FUNWIPMFC.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file (the ERR_TRA variable should be loaded before calling the ECR_TRACE subprogram).
Available variables and masks
Variable or mask | Definition |
Mask MFCCLC0 [DIA] | Launch screen (site, parameters) |
Char ERR_TRA (132) | Error text for the log file |
[M:CTP]VCRTYP | =10 if calculation on WO |
Open tables for work orders
In the table below, the Significant content flag indicates that the content matches the context.
Table |
Significant content |
Table Title |
MFGHEAD |
YES if calculation on WO |
Work order header |
MFGCOST |
NO |
Production cost price |
MFCNAT |
NO |
Nature detail - PC |
FACILITY |
NO |
Site |
ITMMASTER |
NO |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMMVT |
NO |
Product totals |
MFGOPE |
NO |
Work order operation |
MFGITM |
NO |
Work order product line |
MFGMAT |
NO |
Material work order |
MFGITMTRK |
NO |
Product production tracking |
Open tables for subcontract orders
In the table below, the Significant content flag indicates that the content matches the context.
Table |
Significant content |
Table Title |
SCOHEAD |
YES if calculation on EO |
Subcontract order header |
MFGCOST |
NO |
Production cost price |
MFCNAT |
NO |
Nature detail - PC |
FACILITY |
NO |
Site |
ITMMASTER |
NO |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMMVT |
NO |
Product totals |
SCOSRV |
NO |
Department |
SCOITM |
NO |
Product line subcontract order |
SCOMAT |
NO |
Material subcontract order |
PRECEIPTD |
NO |
Receipt lines |