Entry points > Module Geode GX > Standard script SUBVAK 

CHGBMHSTA: after the status of an assembling order has been modified

This entry point is used to introduce specific developments after the status of the header and the lines of an assembling order have been modified:

- when the AO is moved to the wave, moving to status 3

- when the AO is removed from the wave or the wave is cancelled, return to status 1 or 2.

Context and operating method

This entry point is used upon modification of the headers and lines of an assembling order.

The GOK variable is tested on return from the entry point. If GOK<1, the current transaction is rolled back.

Transaction

There is a current transaction while this entry point is being used.

Available variables and tables

BOMORDERH table open and filled

OBMHSTA contains the status of the AO header before the AO is updated.

VAKSTAD: after determination of the statistics of an assembling order of a wave

This entry point is used to modify or enhance the calculation of the standard statistics for an AO in a wave.

Context and operating method

This entry point is used to introduce specific developments after the calculation of the standard statistics of the AO of a wave, before they are displayed in the VAK2 screen and integrated to the global statistics of the wave as they are displayed in the VAK1 screen when the wave is still in status 5 (Completed).

Transaction

There is no current transaction while this entry point is being used.

Available variables and tables

BOMORDERH table open and filled

[M:VAK2]WEI Weight of the elements to be picked for the AO

[M:VAK2]VOL Volume of the elements to be picked for the AO

[M:VAK2]BMLNBR Number of lines to be picked for the AO

[M:VAK2]BMLNBR2 Number of unclosed lines of the AO

VAKSTAH: after the statistics of a wave have been determined

This entry point is used to modify or enrich the standard statistics calculated for a wave with status < 5 (Completed).

Context and operating method

This entry point is used to introduce specific developments after the standard statistics of a wave are calculated and before they are displayed in the VAK1screen.

Transaction

There is no current transaction while this entry point is being used.

Available variables and tables

[M:VAK1]VACBMH nb ADs assigned to the wave

[M:VAK1 ]VACBML nb of unclosed AO lines assigned to the wave; the standard is equal to sum([M:VAK2]BMLNBR2)

[M:VAK1]WEI Weight of the elements to be picked for the wave; the standard is equal to sum([M:VAK2]WEI)

[M:VAK1]WEI Volume of the elements to be picked for the wave; the standard is equal to sum([M:VAK2]VOL)

[M :VAK1]BMLNBR nb of AOs assigned to the wave with at least one AO line to be picked; the standard is equal to sum([M :VAK2]BMLNBR>0)

[M :VAK1]BMLNBR nb of lines to be picked for the wave; the standard is equal to sum([M :VAK2]BMLNBR)