ITMNUM: Allocation of the product reference

Use this entry point to take over when creating the product to assign to it a reference.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

It is called in the INICRE processing.

Available variables and masks

Variable or mask

Definition

Char() Number

New product reference

GOK

Set to 0 to interrupt the transaction

When resuming the execution of the processing, if the GOK variable is set to 0, the transaction is abandoned.

The value contained in the "Number" variable is then assigned to the product reference.

Open tables

Table

Significant content

Table Title

ITMMASTER [ITM]

YES

Product

ITMSALES [ITS]

NO

Product-sales

ITMBPS [ITP]

NON

Product-supplier

ITMBPC [ITU]

NO

Product-customer

TABITMCLS [TCL]

YES

Product categories table

ACCESS [ACC]

NO

Access by user

TABUNIT [TUN]

NO

Unit table

BEFWRIITF: Before write to the ITMFACILIT table

This entry point is used to insert additional logic at the time of the creation of the product-site.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

If there is only one site managing stock, the product-site is automatically generated upon creation of a product.

Available variables and masks

Variable or mask

Definition

Char() Number

New product reference

GOK

Set to 0 to interrupt the transaction

When resuming the execution of the processing, if the GOK variable is set to 0, the transaction is abandoned.

The value contained in the "Number" variable is then assigned to the product reference.

Open tables

Table

Significant content

Table Title

ITMMASTER [ITM]

YES

Product

 ITMSALES [ITS]

NO

Product-sales

 ITMBPS [ITP]

NO

Product-supplier

ITMBPC [ITU]

NO

Product-customer

TABITMCLS [TCL]

YES

Product categories table

ACCESS [ACC]

NO

Access by user

TABUNIT [TUN]

NO

Unit table

 

CREITF: Before write to the ITMFACILIT table

Use this entry point not to create automatically products-sites in automatic mode.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

"CREITF" entry point added in the SUBITM processing.  To prevent the automatic creation of a product-site, the GPE variable must be set to a value different from 0 (zero).

Available variables and masks

Variable or mask

Definition

 

Open tables

Table

Significant content

Table Title