WIPCOST : Event influencing the production cost.

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.

Context and operating method

Transaction

There is one transaction in progress.

Log file                        

There is an open log file.

Different call cases

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.

Available variables and masks
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

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

 

CHXSTOSTA: Loading of the stock status field in the work file STOWRK.

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.

Context and operating method

Transaction

There is one transaction in progress.

Log file                        

There is no log file open.

Available variables and masks

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.

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

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

MFICLEMAJ: Specific/custom management of the completion indicator on the release

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).

Context and operating method

Transaction

There is one transaction in progress.

To cancel the transaction if there is a problem, the GOK variable must be set to 0.

Log file                        

There is no open log file.

Available screen and file classes

The buffer [F:MFI] is loaded at the time of the call to the entry point.

Open tables

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

 

MKIMAJ: Update of the specific/custom fields in the production reporting file. M

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).

Context and operating method

Transaction

There is one transaction in progress.

To cancel the transaction if there is a problem, the GOK variable must be set to 0.

Log file                        

There is an open log file.

Available screen and file classes

The buffer [F:MKI] is loaded at the time of the call to the entry point.

Open tables

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

 

MKMMAJ: Update of custom/specific fields in the materials consumption file MFGMA

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).

Context and operating method

Transaction

There is one transaction in progress.

To cancel the transaction if there is a problem, the GOK variable must be set to 0.

Log file                        

There is an open log file.

Available screen and file classes

The buffer [F:MKM] is loaded at the time of the call to the entry point.

Open tables

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

 

MFMCLEMAJ: Specific/custom management of the completion indicator on the materia

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).

Context and operating method

Transaction

There is one transaction in progress.

To cancel the transaction if there is a problem, the GOK variable must be set to 0.

Log file                        

There is no open log file.

Available screen and file classes

The buffer [F:MFM] is loaded at the time of the call to the entry point.

Open tables

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

  

MFMCTL: Additional controls on the material lines

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.

Context and operating method

Transaction

There is one transaction in progress.

To cancel the transaction if there is a problem, the GOK variable must be set to 0.

Log file                        

There is no open log file.

File classes, variables and available screens

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

Open tables

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

 

MKOMAJ: Update of custom/specific fields in the materials consumption file MFGOP

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).

Context and operating method

Transaction

There is one transaction in progress.

To cancel the transaction if there is a problem, the GOK variable must be set to 0.

Log file                        

There is an open log file.

Available screen and file classes

The buffer [F:MKO] is loaded at the time of the call to the entry point.

Open tables

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

 

UPDSCD : Scheduling update

This entry point is used to authorize (or not) the re-calculation of the scheduling after the reception of a WO subcontract.

Context and operating method

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 coherent with the context (...).

Table

Significant content

Table Title

MFGHEADTRK

Yes

Tracking header

MFGOPETRK

No

Operation tracking

 

MKOMAJ : Mise à jour de zones spéc. du fichier déclaration de prod. MFGOPETRK

Contexte et mode de fonctionnement