Process SUBICC: Cost Calculation
DECLARE: Variable declarations and table openings
This entry point is used to declare variables and to open tables or to carry out initialization processing.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
Available variables and masks
Variable or mask |
Definition |
Mask ITCCLC0 [DIA] |
Entry screen for the calculation options |
Char ERR_TRA(132) |
For an error message |
Open tables
Table |
Table Title |
BOM |
BOM header |
BOMD |
BOM lines |
ITCNAT |
Nature-cost detail |
ITCNATW [INWW] |
Natures-cost detail (temporary) |
ITMBOM |
Product BOM (code +low lev) |
ITMCOST |
Product cost |
ITMCOSTW [ICWW] |
Product cost created |
ITMMASTER |
Product master |
ITMFACILIT |
Product-site |
ITMMVT |
Product totals |
MATCSTW |
Work table (in process of being loaded) |
OVERHEAD |
Overheads |
ROUOPE |
Routing operation |
ROUTING |
Route header |
TABBOMALT |
BOM codes |
TABCUR |
Currencies |
TABFOR |
Formulas |
TABROUALT |
Routing codes |
TABUNIT |
Unit of measure tables |
WORKCOST |
Costing dimension |
WORKSTATIO |
Work centre |
QTYCALC: Changing the calculation quantity
This entry point is used to modify the calculation quantity used when the choice has been made to calculate planned costs for a group of products.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The context is the loading of the MATCSTW work table with all the products to be calculated.
As standard, the calculation quantity is the economic lot quantity, else the technical lot, otherwise 1. To change this quantity (already assigned), it is necessary to enter another value in the [F:MAW]MATQTYTOP variable. Warning, this field must never be blank.
Available variables and masks
Variable or mask |
Definition |
Mask ITCCLC0 [DIA] |
Entry screen for the calculation options |
Char ERR_TRA(132) |
For an error message |
CALITC: Cost calculation choice
This entry point is used to approve or not the cost calculation for a product
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The context is the product-site reading loop meeting the selection criteria.
In standard mode, if the product has a BOM for the code selected in the criteria window or does not have any BOM, the cost is calculated (table MATCSTW loaded).
Available variables and masks
Variable or mask |
Definition |
Mask ITCCLC0 [DIA] |
Entry screen for the calculation options |
Integer LCAL |
Indicates if it is necessary to calculate the standard cost of the current product (0=No, 1=Yes) |
Open tables
Table |
Significant content |
Table Title |
BOM |
NO |
BOM header |
BOMD |
NO |
BOM lines |
ITCNAT |
NO |
Nature-cost detail |
ITCNATW [INWW] |
NO |
Natures-cost detail (temporary) |
ITMBOM |
NO |
Product BOM (code +low lev) |
ITMCOST |
NO |
Product cost |
ITMCOSTW [ICWW] |
NO |
Product cost created |
ITMMASTER |
YES |
Product master |
ITMFACILIT |
YES |
Product-site |
ITMMVT |
NO |
Product totals |
MATCSTW |
YES |
Work table (in process of being loaded) |
OVERHEAD |
NO |
Overheads |
ROUOPE |
NO |
Routing operation |
ROUTING |
NO |
Route header |
TABBOMALT |
NO |
BOM codes |
TABCUR |
NO |
Currencies |
TABFOR |
NO |
Formulas |
TABROUALT |
NO |
Routing codes |
TABUNIT |
NO |
Unit of measure tables |
WORKCOST |
NO |
Costing dimension |
WORKSTATIO |
NO |
Work centre |
APCALITC: After calculation of a standard cost
This entry point is used to apply additional updates after calculation of a standard cost.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
The context is the loop of calculation for products recorded in MATCSTW [F:MAW].
Open tables
Table |
Significant content |
Table Title |
ITMMASTER |
YES |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMCOST |
YES |
Product-cost |
MATCSTW |
YES |
Working table |
APMAJITC: After the cost update
This entry point is used to intervene after the update of the product-cost table whether in creation or in re-entry.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The context is the final update of the ITMCOST in the cycle of the work table ITMCOSTW. It is better to go by the values of the ITMCOSTW fields to access the record in the ITMCOST table that is being created or modified.
Available variables and masks
Variable or mask |
Definition |
Mask ITCCLC0 [DIA] |
Entry screen for the calculation options |
Char ERR_TRA(132) |
For an error message |
Open tables
In the table below, the significant content flag indicates that the content is in phase with the context.
Table |
Significant content |
Table Title |
BOM |
NO |
BOM header |
BOMD |
NO |
BOM lines |
ITCNAT |
NO |
Nature-cost detail |
ITCNATW [INWW] |
NO |
Natures-cost detail (temporary) |
ITMBOM |
NO |
Product BOM (code +low lev) |
ITMCOST |
YES |
Product cost |
ITMCOSTW [ICWW] |
YES |
Temporary product cost |
ITMMASTER |
YES |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMMVT |
NO |
Product totals |
MATCSTW |
NO |
Work table (in process of being loaded) |
OVERHEAD |
NO |
Overheads |
ROUOPE |
NO |
Routing operation |
ROUTING |
NO |
Route header |
TABBOMALT |
NO |
BOM codes |
TABCUR |
NO |
Currencies |
TABFOR |
NO |
Formulas |
TABROUALT |
NO |
Routing codes |
TABUNIT |
NO |
Unit of measure tables |
WORKCOST |
NO |
Costing dimension |
WORKSTATIO |
NO |
Work centre |
ITCIMP: Launching of the print
This entry point is used to redirect the print to a report code other than ITCCLCPRN.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is no open log file.
Different call cases
When the costs of all the products to be processed have been calculated.
Available variables and masks
Variable or mask |
Definition |
Mask ITCCLC0 [DIA] |
Entry screen for the calculation options |
GPE |
To avoid standard print set GPE to 1 |
Open tables
In the table below, the significant content flag indicates that the content is in phase with the context.
Table |
Table Title |
BOM |
BOM header |
BOMD |
BOM lines |
ITCNAT |
Nature-cost detail |
ITCNATW [INWW] |
Natures-cost detail (temporary) |
ITMBOM |
Product BOM (code +low lev) |
ITMCOST |
Product cost |
ITMCOSTW [ICWW] |
Temporary product cost |
ITMMASTER |
Product master |
ITMFACILIT |
Product-site |
ITMMVT |
Product totals |
MATCSTW |
Work table (in process of being loaded) |
OVERHEAD |
Overheads |
ROUOPE |
Routing operation |
ROUTING |
Route header |
TABBOMALT |
BOM codes |
TABCUR |
Currencies |
TABFOR |
Formulas |
TABROUALT |
Routing codes |
TABUNIT |
Unit of measure tables |
WORKCOST |
Costing dimension |
WORKSTATIO |
Work centre |
INIMATFLG: Indicate if the product is a material
This entry point is used to indicate if the product must be considered as a material.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
The context is the loop of calculation for products recorded in MATCSTW [F:MAW].
Variable LMATFLG was initialized by the standard to 0 (semi-finished) or 1 (material).
It is possible to modify the value of LMATFLG in order to force the value to 1 on a semi-finished product for instance. The standard cost is then calculated as a material, that is depending on the setup "Material cost choice" entered in the launch screen.
If LMATFLG is assigned to 2, no initialization is performed => cost equal to zero.
Open tables
Table |
Significant content |
Table Title |
ITMMASTER |
YES |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMCOST |
NO |
Product-cost |
MATCSTW |
YES |
Working table |
FINCLCICC : End of calculations
This entry point is used to take control right after the calculation of all product-costs selected.
Context and operating method
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
All product-cost selected have just been calculated but they are saved with the UID field different than 0.
Available variables and masks
Variable or mask |
Definition |
Mask ITCCLC0 [DIA] |
Entry screen for the calculation options |
Char ERR_TRA(132) |
For an error message |