MKOMAJ : Update of the specific/custom fields during creation/modification of th

This entry point is used to insert additional logic in the creation or modification of operation tracking just before the write or re-rewrite of the operation tracking line (this makes it possible, for example, to initialized the fields is the specific/custom tables).

Context and operating method

A character type variable "WACTION" is set with the value "C" in creation mode and the value "M" in modification mode. The contents of this variable is interrogated in order to establish the context of the call.

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:MKO] is loaded at the time of the call to the entry point.

The [M :MTK0] and [M :MTK1] screen classes linked to the creation of production reporting are loaded.

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

MFGHEAD

No

WO header

MFGOPE

Yes

Operations

MFGOPETRK

Yes

Operation tracking

SCHEDULING

No

Scheduling

FACILITY

Yes

Site

 

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 modification of operation tracking.

Context and operating method

Transaction

There is one transaction in progress.

Log file                        

There is no open log file.

Different call cases

The entry point is found in 4 locations, arising from the update phases. Two type of updates are involved: the deletion and the modification of an operation tracking line.

The context is passed by the global variable GWIPCOST:

GWIPCOST = " OPETRK_MOD " for each operation tracking modification.

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

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

The [M :MTK0] and [M :MTK1] screen classes linked to the creation of production reporting 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

MFGOPETRK

Yes

Operation tracking

MFGHEADTRK

Yes

Tracking header

MFGHEAD

No

WO header

MFGOPE

Yes

Operations

SCHEDULING

No

Scheduling

FACILITY

Yes

Site

 

UPDSCD : Scheduling update

This entry point is used to authorize (or not) the re-calculation of the scheduling after the correction of an operation tracking.

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