AFTREASTO: Selection after stock table read

Use this entry point to communicate to the program if the current stock table record must be processed or ignored.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

In the 'For' read loop of the STOCK [STO] table.

Available variables and masks

Variable or mask

Definition

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

Mask SNU3 [SNU3]

Gird of the created lists

Integer GPE

This variable is used to communicate GPE = 0 to process the record GPE <> 0 to ignore the record.

 

Open tables

Table

Significant content

Table Title

 ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

Yes

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

No

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

AFTREAITM: Selection after the read of the product-site table

Use this entry point to communicate the program if the current record in the ITMFACILIT table (products-site) must be processed or ignored in the case where no stock has been found. 

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

In the 'For' read loop of the STOCK [STO] table.

Available variables and masks

Variable or mask

Definition

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

Mask SNU3 [SNU3]

Gird of the created lists

Integer GPE

This variable is used to communicate GPE = 0 to process the record GPE <> 0 to ignore the record.

Open tables

Table

Significant content

Table Title

ITMMASTER

Yes

Product

ITMFACILIT

Yes

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

No

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

ARLOAEMP: Add the records to the location type list

Use this entry point to add the records in a list of location type.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

After the "For" read loop of the STOCK [STO] for each selected location.

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Physical header parameters

Mask SNU1 [SNU1]

Stock count parameters

Mask SNU2 [SNU2]

Stock count selections

Mask SNU3 [SNU3]

Created lists grid

Mask STOINVW [SIW]

Grid of records to be created

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

Yes

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

FILLOALIG: Modifying the standard filters

Use this entry point to modify the standard filters on the STOCK file.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

After the standard filters have been loaded in the LOA_LIGNES labels for a count of product type, and in the LOA_LIGNES_EMP labels for a count of location type. 

The two available filters are WFILSTO and WFILSTO2.

This makes it possible to add a filter on the stock status that would be dependent on specific headings of the SNU1 and SNU2 screens. 

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

WFILSTO heading

Filter on STOCK file

WFILSTO2 heading

Filter on STOCK file

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

DEBLOALIG: Adding extra checks on the product

Use this entry point to add controls on the product context.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

Before loading lines to count for a product. It is located at the beginning of the LOA_LIGNES label.

Use of the GPE global variable: if GPE is different from 0 (zero), the processing exits the LOA_LIGNES label.

For instance this makes it possible to limit the counts to the products that do not have any allocation by reading the ITMMVT file and testing the headings concerned.

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

WITM heading

Products to be counted

Integer GPE

This variable is used to communicate GPE = 0 to process the product.  GPE <> 0 to ignore the product.

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Stock count detail

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

FILGENMAN: Modifying the WFILEMP standard filter

This entry point is used to modify the WFILEMP standard filter on the STOLOC file.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

After loading the WFILEMP standard filter into the GEN_MANUEL label for a count of location type. 

This makes it possible to add a filter on the location type that would be dependent on specific headings of the SNU1 and SNU2 screens. 

If the GPE heading is different from 0, this also makes it possible to ignore the following standard lines:

                     Filter [STC] Where evalue(WFILEMP) & evalutes(WSELFOR2)

                   & Order By Key STC0

 Thus both a filter and a key can be totally specific.    

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

WFILEMP heading

Filter on STOLOC file

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

DEBLOATAB: Adding extra checks on the product evolution

This entry point is used to add extra checks depending on the evolution of the product count.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

On loading lines to count for a specific product. It is located at the beginning of the LOA_TABLEAU label.

Use of the GPE global variable: if GPE is different from 0 (zero), the processing exits the LOA_TABLEAU label and no line will be generated for this product.  

This makes it possible for instance to limit the counts to the products based on a stock quantity.

Since the stock record is on the line, the quantities only need to be totaled and compared to a specific

data.

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

WITM heading

Products to be counted

Integer GPE

This variable is used to communicate GPE = 0 to process the product.  GPE <> 0 to ignore the product.

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

Yes

Product

ITMFACILIT

Yes

Product-site

ITMMVT

No

Product totals

STOCK

Yes

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

FINGENSNU: Adding extra checks on the product evolution

This entry point is used to add extra checks depending on the evolution of the product count.

Warning, this EP is only called in the event of a location type count.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

After the creation of lists. It is located in the ACT_GENSNU label.

This makes it possible for instance to limit the counts to the products based on a stock quantity.

In that case the EP will have to total for each product the quantity to be counted. Depending on the totaled quantity, delete the count lines of this product.

Warning, for each deleted stock count line, the corresponding tables need to be updated (refer to the DEL_CUD sub-program of the specific STKINV

processing)

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

RUPLOCMAN: Managing a list shortage different from the standard one

Use this entry point to manage a list shortage different from the standard one for counts of location type.

Warning, this EP is only called in the event of a location type count.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

On creation of the lists: It is located in the GEN_MANUEL label.

For instance this makes it possible to perform a list shortage in relation to a specific heading of the STOLOC file. 

In that case, the EP will need to set the GPE variable to 1 in order to prevent the standard shortages (performed using the location position).

Available variables and masks

Variable or mask

Definition

STOLOC [STC] table

Location

GPE heading

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

FINLOALIG: Modifying the value of the WERR variable

Use this entry point to modify the value of the WERR variable.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

A the end of the LOA_LIGNES label

This enables for instance to avoid an error message (following a specific development).  

Available variables and masks

Variable or mask

Definition

WERR variable

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

AVNLOATAB: Modifying the content of the SIW mask

Use this entry point to modify the SIW mask and/or to manage specific headings.   

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

On loading lines to count for a specific product. It is placed at the beginning of the LOA_TABLEAU label

Use of the GPE global variable: if GPE is different from 0 (zero), the processing exits the LOA_TABLEAU label and the loading of the product is completed.  

This also enables specific headings of the SIW mask to be loaded. In that case, GPE needs to remain set to 0.

specific

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Mask STOINVW [SIW]

Count selections

WITM heading

Products to be counted

Integer GPE

This variable is used to communicate GPE = 0 to process the product.  GPE <> 0 at the end of the product loading 

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

Yes

Product

ITMFACILIT

Yes

Product-site

ITMMVT

No

Product totals

STOCK

Yes

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

FILSPEITF: Completing the filter on ITMFACILIT in count lists

Use this entry point to complete the filter on ITMFACILIT before the generation of count worksheet.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

After loading the standard filters of ITMFACILIT.

The filter available is WFILSPEITF with a lenght of 250.

This filter is used in locations identical to the standard filter.

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

WFILSPEITF heading

Filter on ITMFACILIT file

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types

 

FINGENSNU1: Executing the FINGENSNU EP regardless of CUNSSSTYP

Use this entry point to execute the FINGENSNU entry point regardless of the value of the CUNSSSTYP heading.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

After the creation of lists. It is located in the ACT_GENSNU label just before the call to the FINGENSNU entry point.

 Setting the GPE heading to 1 will execute the FINGENSNU entry point regardless of the value of the CUNSSSTYP heading.

 Specific

Available variables and masks

Variable or mask

Definition

Mask SNU0 [SNU0]

Count parameter header

Mask SNU1 [SNU1]

Count parameters

Mask SNU2 [SNU2]

Count selections

 

 

 

Open tables

Table

Significant content

Table Title

ITMMASTER

No

Product

ITMFACILIT

No

Product-site

ITMMVT

No

Product totals

STOCK

No

Stock lines

STOLOT

No

Lots

STOLOC

No

Locations

CUNLISTE

No

Count worksheet

CUNLISDET

No

Detail stock count

CUNSESSION

Yes

Stock count session

STOPAR

No

Stock parameters

STOJOU

No

Movements journal

STOCOST

No

FIFO basis

STKTRS

Yes

Stock transaction

TABLOCTYP

No

Location types