CAL_STODIS: Calculation of the available stock

This entry point is used when searching for the available stock relating to a product. This search is used in the component availability function that is accessible via a right click in the work bench and global planning functions.

It is called in the BENCHLIB processing.

Context and operating mode

TRANSACTION

There is no transaction in progress.

Log file                        

There is no open log file.

Different call cases

The entry point is called during the search for the available stock. It is used to replace the standard calculation of the stock with a specific calculation.

Available variables and masks

MBENCHW2 screen class is open at the moment of the entry point call.

The GPE variable is used. It is set to the value 0 by default. It must be set to 1 in the specific processing linked to the entry point if a specific available stock calculation formula is added. On returning to the standard processing, the GPE value is tested. If it is not equal to 0, the section containing the standard available stock calculation is bypassed.

Further to the specific calculation, the variable receiving the available stock value must imperatively be named WDIS (decimal type) in order to be compatible with the rest of the standard processing.

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

MFGMAT

Yes

Works Orders - components

ITMMASTER

Yes

Products

ITMMVT

Yes

Product-Site totals

CUSCTL: Possibility to carry out additional release controls

This entry point makes it possible to carry out additional controls during the creation of a new WO, just after having used buttons "Plan" or "Release" at the bottom of the screen.

Context and operating mode

TRANSACTION

There is no transaction in progress.

Log file                        

There is no open log file.

Different call cases

This entry point is called during the creation of a planned or firm WO. To understand the call context, it is necessary to test the value of the work variable WSTA (integer type).

If WSTA is equal to 2, button "plan"..

If WSTA is equal to 1, button "Release".

Available variables and masks

MBENCHW3 [M :MBW3] screen class is open and loaded at the time of the entry point call.

The GPE variable is used. It is set to the value 0 by default. It should be set to 1 in the specific processing linked to the entry point if the WO should not be created.

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

No

Site

ITMMASTER

No

Products

ITMFACILIT

No

Product-site

MFGHEAD

No

WO header

MFGITM

No

Released products

TABBOMALT

No

BOM alternative

TABROUALT

No

Routing alternative

BOM

No

BOM header

ROUTING

No

Routing header

MFGTRS

Yes

Production entry transaction

AFFTRA: Possibility to not display the log file

This entry point is used to delete the display of the log file generated during the updates.

To prevent the display, global variable GPE must be set to 0.

Context and operating mode

TRANSACTION

There is no transaction in progress.

Log file                        

There is an open log file.

CUSSELFLT: Additional selection at the loading of WIP

This entry point is used to make additional controls (filters) during the loading of the WIP list.

Context and operating mode

TRANSACTION

There is no transaction in progress.

Log file                        

There is no open log file.

Available variables and masks

 

STRSTO: Calculation of the starting stock during the loading of the workstat

This entry point is used to adjust the calculation of stock during the loading of the WIP list.

Context and operating mode

TRANSACTION

There is no transaction in progress.

Log file                        

There is no open log file.

Available variables and masks

The starting stock (WEXT variable) is calculated on the basis of the data from current line [F:ITV] (Total Product-Site).

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

ITMMASTER

Yes

Products

ITMMVT

Yes

Product-Site totals

CHECK_ORD: Delete entries from the selection

This entry point is used to avoid the loading of the WIP list during the loading of some WIPs.

If variable GPE is different from 0, tbe WIP is not loaded on the grid.

Context and operating mode

TRANSACTION

There is no transaction in progress.

Log file                        

There is no open log file.

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

ORDERS

Yes

WIPs

ITMMASTER

Yes

Products

ITMMVT

Yes

Product-Site totals

ADDLIN: Deleting entries from the selection

This entry point makes it possible to add information (specific fields, for instance) at the end of each WIP loading.

Context and operating method

TRANSACTION

There is no transaction in progress.

Log file                        

There is no open log file.

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

ORDERS

Yes

WIPs

ITMMASTER

Yes

Products

ITMMVT

Yes

Product-Site totals