Script BENCHLIBS: BENCHLIBS
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.
Context and operating method
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
SBENCHW2 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 |
SCOMAT |
Yes |
Sub-contract orders - components |
ITMMASTER |
Yes |
Products |
ITMMVT |
Yes |
Product-Site totals |
CUSCTL: Possibilities to carryout additional release controls
This entry point makes it possible to carry out additional controls during the creation of a new sub-contract order, immediately after clicking on the "Plan" or "Release" buttons at the bottom of the screen.
Context and operating method
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 |
SCOHEAD |
No |
EO header |
SCOITM |
No |
Released products |
TABBOMALT |
No |
BOM alternative |
BOM |
No |
BOM header |
PURTRS |
Yes |
Purchase entry transaction |
CUSSELFLT: Additional selection at the loading of pending movements
This entry point is used to make additional controls (filters) during the loading of the WIP list.
Context and operating method
Transaction
There is no transaction in progress.
Log file
There is no open log file.