MFSMAJ: Update of the specific/custom fields in the MFGHEAD file closure

This entry point is used to insert additional logic in the works order closing, just before the re-posting of the WO (MFGHEAD  [F :MFG] file) in order to assign the custom/specific fields.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file

Available screen classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and 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

FACILITY

Yes

Site

MFGHEAD

Yes

WO header

MFGITM

No

Released products

MFGOPE

No

Operations

MFGMAT

No

Components

 

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 event type concerned here is the creation of operation tracking and material consumption (works order balance).

 

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 found in 2 locations, arising from the update phases.


The context is passed by the global variable GWIPCOST:

GWIPCOST = "MATTRK_NEW" for each material consumption creation.

GWIPCOST = "OPETRK_NEW" for each operation tracking creation.

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

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and 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

FACILITY

Yes

Site

MFGHEAD

Yes

WO header

MFGITM

No

Released products

MFGOPE

Yes

Operations

MFGMAT

Yes

Components

MFGOPETRK

Yes

Operation tracking

MFGMATTRK

Yes

Material consumption

 

MKOTRKMAJ: update the specific/custom fields in the operation tracking file

This entry point is used to insert additional logic in the WO completion or closing, just before the posting of the automatic tracking of an operation (MFGOPETRK [F :MKO] file) in order to assign the custom/specific fields.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Available screen classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and 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

MFGHEAD

No

WO header

MFGITM

No

Released products

MFGOPE

No

Operations

MFGMAT

No

Components

MFGOPETRK

No

Operation tracking

MFGMATTRK

No

Material consumption

MKMTRKMAJ: Additional update of the material tracking file

This entry point is used to insert additional logic in the WO completion or closing, just before the posting of the automatic tracking of a material (MFGMATTRK [F :MKM] file) in order to modify or assign the value of certain fields.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Available screen classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and 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

MFGHEAD

Yes

WO header

MFGITM

No

Released products

MFGOPE

No

Operations

MFGMAT

Yes

Components

MFGOPETRK

No

Operation tracking

MFGMATTRK

Yes

Material consumption

 

CUSTRTSUP: Possibility to launch an additional processing at the end of executio

This entry point is used to insert additional logic in the exit from the works order completion or closing, to carryout a specific process, such as the launch of the production cost calculation.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Screen classes and available variables

The work variable WTRTTYP makes it possible to know if the user is looking at WO completion or closing.

WTRTTYP = 1: a WO completion in process.

WTRTTYP = 2: a WO closing in process.

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

No

Components

MFGOPETRK

No

Operation tracking

MFGMATTRK

No

Material consumption

 

 

WAUTO : automatically track or not materials or operations that are not closed.

This entry point is used to take over when completing or closing a WO to automatically track or not materials or operations that are not closed.

Context and operating mode

Transaction

There is no transaction in process.

Log file

There is no open log file

Available screen variables and classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and loaded.

[L]WAUTO: set to 1 to automatically track materials that are not closed, otherwise, set to 0.

[L]WAUTO2: set to 1 to automatically track operations that are not closed, otherwise, set to 0.

GPE += 1: to avoid loading WAUTO via the standard

GPE += 2: to avoid loading WAUTO2 via the standard

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

FACILITY

Yes

Site

MFGTRS

Yes

Production entry transaction

MFGHEAD

Yes

WO header

MFGITM

No

Released products

MFGOPE

No

Operations

MFGMAT

No

Components

MFSMAJCLE: Update of the specific/custom fields in the MFGHEAD file completion

This entry point is used to insert additional logic in the works order completion, just before the re-posting of the WO (MFGHEAD  [F :MFG] file) in order to assign the custom/specific fields.

Context and operating method

Transaction

There is one transaction in progress.

Log file

There is no open log file

Available screen classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and 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

FACILITY

Yes

Site

MFGHEAD

Yes

WO header

MFGITM

No

Released products

MFGOPE

No

Operations

MFGMAT

No

Components

 

CUSCTLSUP: control of non completed materials and operations.

This entry point is used to take over when completing or closing a work order in order to authorize, or not, the processing (sub-program CTRL_VALID).

The LRET,LOPE,LMAT,LITM or WWIP variables can be readjusted.

Context and operating method

Transaction

There is no transaction in process.

Log file

There is no open log file

Available screen variables and classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and 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

FACILITY

Yes

Site

MFGTRS

Yes

Production entry transaction

MFGHEAD

Yes

WO header

MFGITM

No

Released products

MFGOPE

No

Operations

MFGMAT

No

Components

CTLMFMSTO: Available stock for non-consumed materials

This entry point is used to insert additional logic in the WO completion or closing, just before the automatic tracking of a material in order to modify or assign the value of certain fields.

Context and operating method

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Available screen classes

The MFS0, MFS1, MFS2, MFS3, MFS4 masks are open and loaded.

When set to a value other than 0, the GPE variable allows to avoid the available stock standard search. The specific processing must then support the reading of [F:SRU] and the tables required for the stock issue, and must especially enter the stock deemed available in the LDIS variable.

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

No

Material consumption