This entry point serves to intercept the production tracking events likely to have an impact on the production cost of the works order.
The type of event concerned here is the generation of the tracking within the framework of the sub-contractor order receipts.
There is one transaction in progress.
There is an open log file.
The entry point is located in 3 places:
just after the entry of the 3 tracking types possible: operation tracking, material tracking and production reporting.
The context is passed by the global variable GWIPCOST:
GWIPCOST = " SCEOPETRK_NEW " for each operation tracking.
GWIPCOST = " MATTRK_NEW " for each material tracking.
GWIPCOST = " ITMTRK_NEW " for each production reporting.
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.
In the table below, the significant content flag indicates that the content is in phase with the context.
Table | Significant content | Table Title |
MFGOPETRK | Yes | Operation tracking |
MFGITM | Yes | Released product |
MFGHEAD | Yes | WO header |
MFGOPE | Yes | WO operation |
PRETURN | Yes | Receipt header |
PRETURND | Yes | Receipt line |
MFGTRS | Yes | Tracking transaction |
This entry point is used to give a specific value to the "stock status" field in the STOWRK work file ([F :STW]STA) in sub-contractor receipt and rapid entry, as well as sub-contractor receipt import.
There is one transaction in progress.
There is no log file open.
The stock work file STOWRK is in the process of being loaded.
The receipt PTH1 mask is open and the "WNOLIGN-1" variable serves to point to the line currently being processed.
In the table below, the significant content flag indicates that the content is in phase with the context.
Table | Significant content | Table Title |
MFGOPETRK | No | Operation tracking |
MFGITM | Yes | Released product |
MFGHEAD | No | WO header |
MFGOPE | No | WO operation |
PRETURN | No | Receipt header |
PRETURND | No | Receipt line |
MFGTRS | Yes | Tracking transaction |
ITMFACILIT | Yes | Product-site |
ITMMASTER | Yes | Product |
STOTRS | Yes | Receipt into stock transaction |
In the automatic creation of production reporting following a sub-contractor receipt, this entry point is used to intervene in the completion indicator for the released product lines (MFITRKFLG field in the MFGITM file).
There is one transaction in progress.
To cancel the transaction if there is a problem, the GOK variable must be set to 0.
There is no open log file.
The buffer [F:MFI] is loaded at the time of the call to the entry point.
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGITMTRK | Yes | Production reporting |
MFGITM | Yes | Released product |
MFGHEAD | Yes | WO header |
MFGOPE | Yes | WO operation |
PRETURN | Yes | Receipt header |
This entry point is used to insert additional logic in the creation of booking of sub-contractor receipts just before the creation of each line in production reporting (this allows, for example, the initialization of custom/specific fields or tables).
There is one transaction in progress.
To cancel the transaction if there is a problem, the GOK variable must be set to 0.
There is an open log file.
The buffer [F:MKI] is loaded at the time of the call to the entry point.
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGHEADTRK | No | Tracking header |
MFGHEAD | No | WO header |
MFGITM | Yes | Released products |
MFGITMTRK | Yes | Production reporting |
FACILITY | Yes | Site |
This entry point is used to insert additional logic in the creation of booking of sub-contractor receipts just before the creation of each line in material tracking (this allows, for example, the initialization of custom/specific fields or tables).
There is one transaction in progress.
To cancel the transaction if there is a problem, the GOK variable must be set to 0.
There is an open log file.
The buffer [F:MKM] is loaded at the time of the call to the entry point.
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGHEADTRK | No | Tracking header |
MFGHEAD | No | WO header |
MFGMAT | Yes | Materials |
MFGMATTRK | Yes | Material tracking |
FACILITY | Yes | Site |
In the automatic creation of material tracking following a sub-contractor receipt, this entry point is used to intervene in the completion indicator for the component lines (MFMTRKFLG field in the MFGMAT file).
There is one transaction in progress.
To cancel the transaction if there is a problem, the GOK variable must be set to 0.
There is no open log file.
The buffer [F:MFM] is loaded at the time of the call to the entry point.
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGMATTRK | Yes | °Material tracking |
MFGMAT | Yes | Material |
MFGHEAD | Yes | WO header |
MFGOPE | Yes | WO operation |
PRETURN | Yes | Receipt header |
In automatic creation of material tracking following a sub-contractor receipt, this entry point is used to take control of the material processing loop, in order to carryout additional controls and potentially exclude the line.
There is one transaction in progress.
To cancel the transaction if there is a problem, the GOK variable must be set to 0.
There is no open log file.
The buffer [F:MFM] is loaded at the time of the call to the entry point.
The WNBITM variable is loaded. Its value is equal to 0 if the production tracking has not been carried out.
The WMTKNUM variable contains the tracking number in the process of being created.
Example of the use of the entry point :
Requirement: In the case of the release of multiple products, exclude the material lines linked to a released product if this latter is not tracked.
If WNBITM <> 0 & [F:MFM]MFGLIN <> 0
Filter [F:MKI] Where MFGTRKNUM = WMTKNUM & MFGNUM = [F:MFM]MFGNUM & MFGLIN = [F:MFM]MFGLIN
Look [F:MKI]MKI0 First
If !fstat GPE = 0: Endif
Endif
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGMATTRK | No | °Material tracking |
MFGMAT | Yes | Material |
MFGHEAD | Yes | WO header |
ITMMASTER | Yes | Product |
ITMFACILIT | Yes | Product-site |
This entry point is used to insert additional logic in the creation of booking of sub-contractor receipts just before the creation of each line in operating tracking (this allows, for example, the initialization of custom/specific fields or tables).
There is one transaction in progress.
To cancel the transaction if there is a problem, the GOK variable must be set to 0.
There is an open log file.
The buffer [F:MKO] is loaded at the time of the call to the entry point.
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGHEADTRK | No | Tracking header |
MFGHEAD | No | WO header |
MFGOPE | Yes | Operations |
MFGOPETRK | Yes | Operation tracking |
FACILITY | Yes | Site |
This entry point is used to authorize (or not) the re-calculation of the scheduling after the reception of a WO subcontract.
There is one transaction in progress.
There is an open log file.
Set GPE to 1 in order to avoid a re-calculation of the scheduling.
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
MFGHEADTRK | Yes | Tracking header |
MFGOPETRK | No | Operation tracking |