SUBMTKC processing: Production tracking
MKOMAJ: Updating the specific fields on creation/modification of operation track
Use this entry point to take over when creating or modifying operation trackings just before writing or rewriting the operation tracking line (this is used, for example, to initialize the specific table fields).
Context and operating mode
A "WACTION" character type variable is set to the "C" value in creation mode and the "M" value in modification mode.The content of this variable is queried in order to establish the call context.
Transaction
There is one transaction in progress.
To cancel the transaction if a problem occurs, the GOK variable must be set to 0.
Log file
Opening the log is subjected to the "STOTRACE" stock general parameter value.
Available screen and file classes
The [F:MKO] buffer is loaded when calling the entry point.
The [M :MTK0] and [M :MTK1] screen classes linked to the time tracking creation are loaded.
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 |
MFGHEADTRK |
Yes |
Tracking header |
MFGHEAD |
No |
WO header |
MFGOPE |
Yes |
Operations |
MFGOPETRK |
Yes |
Operation tracking |
SCHEDULING |
No |
Scheduling |
FACILITY |
Yes |
Site |
WIPCOST: Event influencing the production cost.
Use this entry point to intercept the production tracking events likely to have an impact on the production cost of the work order.
The event type concerned here is the creation and deletion of the three possible tracking types: production reporting, material consumption and operation tracking.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is no open log file.
Different call cases
The entry point is situated in 6 locations, at the end of update phases. Two types of updates are concerned: the creation and the deletion of a tracking (operation tracking, consumption or production reporting depending on the context).
The context is passed by the GWIPCOST global variable:
GWIPCOST = "ITMTRK_NEW" for each production reporting creation.
GWIPCOST = "ITMTRK_DEL" for each production reporting deletion.
GWIPCOST = "MATTRK_NEW" for each material consumption creation.
GWIPCOST = "MATTRK_DEL" for each material consumption deletion.
GWIPCOST = "OPETRK_NEW" for each operation tracking creation.
GWIPCOST = "OPETRK_DEL" for each operation tracking deletion.
It is possible to send an error status to the standard program in order to interrupt the process, by initializing the WRET variable to a value that is not null.
Available variables and masks
According to the tracking type processed, the [F:MKO], [F:MKI] and [F:MKM] buffers, as well as the [M :MTK0], [M :MTK1], [M :MTK2] and [M :MTK3] screen classes are loaded when calling the entry point.
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 |
MFGITMTRK |
Yes |
Production reporting |
MFGITM |
No |
Released product |
MFGMATTRK |
Yes |
Material consumption |
MFGMAT |
No |
Material |
MFGOPETRK |
Yes |
Operation tracking |
MFGHEADTRK |
Yes |
Tracking header |
MFGHEAD |
No |
WO header |
MFGOPE |
Yes |
Operations |
SCHEDULING |
No |
Scheduling |
FACILITY |
Yes |
Site |
MFICLEMAJ: Specific management of the completion indicator on the release
When modifying stock movement linked to a production reporting line, use this entry point to intervene in the closing indicator for the released product lines (MFITRKFLG field in the MFGITM file).
Context and operating mode
Transaction
There is one transaction in progress.
To cancel the transaction if a problem occurs, the GOK variable must be set to 0.
Log file
There is no open log file.
Available screen and file classes
The [F:MFI] buffer is loaded when calling the entry point.
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 |
MFGITMTRK |
Yes |
Production reporting |
MFGITM |
Yes |
Released product |
MFGMATTRK |
No |
Material consumption |
MFGMAT |
No |
Material |
MFGOPETRK |
No |
Operation tracking |
MFGHEADTRK |
Yes |
Tracking header |
MFGHEAD |
No |
WO header |
MFGOPE |
No |
Operations |
SCHEDULING |
No |
Scheduling |
FACILITY |
Yes |
Site |
MKMMAJ: Additional update in creation/modification of material consumption
Use this entry point to take over when creating or modifying production reporting, just before writing the material tracking (MFGMATTRK [F :MKM] file) in order to modify or specify the value of certain fields.
Context and operating mode
A "WACTION" character type variable is set to the "C" value in creation mode and the "M" value in modification mode.The content of this variable is queried in order to establish the call context.
Transaction
There is one transaction in progress.
Log file
Opening the log file is subjected to the "STOTRACE" stock general parameter value.
Available screen classes
The MTK0, MTK1, MTK2, MTK3 masks may potentially be open and loaded (according to the tracking transaction).
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 |
MFGHEAD |
Yes |
WO header |
MFGITM |
No |
Released products |
MFGOPE |
No |
Operations |
MFGMAT |
Yes |
Components |
MFGOPETRK |
No |
Operation tracking |
MFGMATTRK |
Yes |
Material consumption |
MKIMAJ: Additional update in creation/modification in production reporting
Use this entry point to take over when creating or modifying production tracking, just before writing the production declaration (MFGITMTRK [F :MKI] file) in order to modify or specify the value of certain fields.
Context and operating mode
A "WACTION" character type variable is set to the "C" value in creation mode and the "M" value in modification mode.The content of this variable is queried in order to establish the call context.
Transaction
There is one transaction in progress.
Log file
Opening the log file is subjected to the "STOTRACE" stock general parameter value.
Available screen classes
The MTK0, MTK1, MTK2, MTK3 masks may potentially be open and loaded (according to the tracking transaction).
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 |
MFGHEAD |
Yes |
WO header |
MFGITM |
Yes |
Released products |
MFGOPE |
No |
Operations |
MFGMAT |
No |
Components |
MFGOPETRK |
No |
Operation tracking |
MFGMATTRK |
No |
Material consumption |
MFGITMTRK |
Yes |
Production reporting |
BEFREWMFM: Additional update of the WO material
Use this entry point to take over when creating, modifying or deleting production tracking, just before rewriting the WO material ( MFGMAT [F :MFM] file) in order to modify or specify the value of certain fields.
Context and operating mode
A "WACTION" variable of character type is set to the "C" value in creation, to the "M" value in modification and the "A" value in cancellation.
A "WCUMMATSUI" variable of integer type contains the value of the CUMMATSUI parameter and is used to know whether the materials are totaled on tracking (0: materials are not totaled; 1: materials are totaled).
The content of these variables must be queried in order to establish the call context.
Transaction
There is one transaction in progress.
Log file
Opening the log file is subjected to the "STOTRACE" stock general parameter value.
Available screen classes
The MTK0, MTK1, MTK2, MTK3 masks may potentially be open and loaded (according to the tracking transaction).
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 |
MFGHEAD |
Yes |
WO header |
MFGITM |
No |
Released products |
MFGOPE |
No |
Operations |
MFGMAT |
Yes |
Components |
MFGOPETRK |
No |
Operation tracking |
MFGMATTRK |
Yes |
Material consumption |
UPDSCD: Scheduling update
Use this entry point to authorize (or not) the re-calculation of the scheduling after an operation tracking deletion.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Use
Set GPE to 1 in order to avoid a re-calculation of the scheduling.
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 |
MFGHEADTRK |
Yes |
Tracking header |
MFGOPETRK |
No |
Operation tracking |
CUSTRTALL: Specific management of the allocation of WO associated with the order
In creation and cancellation of work order tracking, use this entry point to take over when managing the allocation on the material, in order, for example, to manage global allocations instead of detailed allocations.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Use
When resuming the execution of the processing, the GPE global variable must be set to 0 to prevent the allocation creation or cancellation standard processing.
If TRTLIG = "A", the allocations must be canceled, otherwise updated.
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 |
MFGHEADTRK |
Yes |
Tracking header |
MFGMATTRK |
Yes |
Material tracking |
CALWALLQTY: Modification of the quantity to allocate
Use this entry point to modify the quantity to allocate to a WO material assigned with current tracking.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Use
The entry point set the WALLQTY global varibale to the quantity that must be allocated.
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 |
MFGHEADTRK |
Yes |
Tracking header |
MFGMATTRK |
Yes |
Material tracking |
DEL_CPLMFO: preventing the MFO update in operation tracking deletion
Use this entry point in order not to update the operation on deletion of the current tracking.
Context and operating mode
A "WACTION" character type variable is set to the "C" value in creation mode and the "M" value in modification mode.The content of this variable is queried in order to establish the call context.
Transaction
There is one transaction in progress.
To cancel the transaction if a problem occurs, the GOK variable must be set to 0.
Log file
Opening the log is subjected to the "STOTRACE" stock general parameter value.
Available screen and file classes
The [F:MKO] buffer is loaded when calling the entry point.
The [M :MTK0] and [M :MTK1] screen classes linked to the time tracking creation are loaded.
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 |
MFGHEADTRK |
Yes |
Tracking header |
MFGHEAD |
No |
WO header |
MFGOPE |
Yes |
Operations |
MFGOPETRK |
Yes |
Operation tracking |
SCHEDULING |
No |
Scheduling |
FACILITY |
Yes |
Site |