Script FUNWIPMFC : WO valuation finalization
APCALMFC: Intervention before PCP commit
Use this entry point to intervene after all the calculations and standard updates, but immediately before the commit.
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 |
GOK | If GOK<1 => Rollback otherwise Commit |
Open tables
In the table below, the Significant content flag indicates that the content matches the context.
Table |
Significant content |
Table Title |
MFGHEAD |
YES |
Work order header |
MFGCOST |
YES |
Production cost price |
MFCNAT |
NO |
Nature detail - PC |
FACILITY |
NO |
Site |
ITMMASTER |
NO |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMMVT |
NO |
Product totals |
OVERHEAD |
NO |
Overheads |
MFCCLCPRN |
NO |
Detail print (temporary) |
MFGOPE |
NO |
Work order operation |
MFGITM |
NO |
Work order product line |
MFGMAT |
NO |
Material work order |
MFGITMTRK |
NO |
Product production tracking |
MFGWIP |
NO |
WIP cost header |
STOCOST |
NO |
FIFO basis |
STOJOU |
NO |
Stock movements |
STOLOT |
NO |
Lots |
TABCOSTMET |
NO |
Valuation method |
TABCUR |
NO |
Currency |
WIPCOST |
NO |
WO WIP valuation |
WORKSTATIO |
NO |
Work station |
CTRMFG: makes it possible to avoid performing the calculation for a WO or EO
Use this entry point to intervene on (work or subcontract) orders at the beginning of the loop to avoid calculations being performed based on criteria that cannot be specified in a formula.
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 |
GPE | To avoid performing the calculation set this variable to 1 |
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 |
BEFCLCSCP: before the calculation of reject recordings
Use this entry point to intervene before the calculation of reject recordings (TXNTYP=16).
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Explanation
When the entry point is called, the reject calculations have been made in the memory. The results are located in the TABOPE, TABMNT and TABSCP variables. The TXNTYP=16 recordings are created immediately after, based on those variables.
For example, the hand is given to avoid taking into account the rejects on the last operation. You only need to decrease the value of NBFRAC.
Available variables and masks
Variable or mask | Definition |
TABOPE(x,8) | Table classifying (based on OPENUM;OPESPLNUM)) the operations tracked on the WO |
TABMNT(x,1..8) | Table of the amount details for each TABOPE operation |
TABSCP(9) | Reject amounts |
NBFRAC | Number of operation fractions tracked for the 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 |
CTRIPTADJ : creating an adjustment movement on a closed period
Use this entry point to authorize the creation of adjustment WIPs for a date in a closed or prohibited period.
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 |
GPE | To allow the creation of an adjustment WIP at a date comprised in a closed or prohibited period, set this variable to 1. |
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 |
YES |
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 |
YES |
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 |
DELTMPMCP: Preventing the purge of temporary provisional costs
Use this entry point to avoid purging temporary provisional costs.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases - Significant variables
This entry point is located in the EXEC label of the FUNWIPMFC process (production cost price calculation).
In order to prevent the purge of temporary recordings (performance issue if high volume), set the local variable [L]WSTOWIPW = 0 in the DELTMPMCP entry point of the FUNWIPMFC process.
WIPREGPRIX: Replaces the standard call to REGPRIX with a customized call
Use this entry point to replace the standard call to REGPRIX with a customized call.
You can also use it to handle aggregation by lot or serial number to help with performance issues.
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 |
GPE | Set this variable to 1 to bypass the standard function call |
Open tables
In the table below, the Significant content flag indicates that the content matches the context.
Table |
Significant content |
Table Title |
MFGHEAD |
YES |
Work order header |
MFGCOST |
YES |
Production cost price |
MFCNAT |
NO |
Nature detail - PC |
FACILITY |
NO |
Site |
ITMMASTER |
NO |
Product master |
ITMFACILIT |
NO |
Product-site |
ITMMVT |
NO |
Product totals |
OVERHEAD |
NO |
Overheads |
MFCCLCPRN |
NO |
Detail print (temporary) |
MFGOPE |
NO |
Work order operation |
MFGITM |
NO |
Work order product line |
MFGMAT |
NO |
Material work order |
MFGITMTRK |
NO |
Product production tracking |
MFGWIP |
NO |
WIP cost header |
STOCOST |
NO |
FIFO basis |
STOJOU |
NO |
Stock movements |
STOLOT |
NO |
Lots |
TABCOSTMET |
NO |
Valuation method |
TABCUR |
NO |
Currency |
WIPCOST |
NO |
WO WIP valuation |
WORKSTATIO |
NO |
Work station |