MAJENTSTR: Before updating the receipts into stock for a document line

This entry point is called before receipts into stock associated with a document line are updated.

The characteristics of these receipts are contained in the work screen [M :STW].

Modifying the content of this work screen can be used to intervene on the updates to carry out.

Example of use:

An analysis request always refers to the document that triggered the receipt into stock to be controlled.

During a production reporting coming from a WO, if the WO must be referred to in the analysis request (instead of the production reporting), it is necessary to proceed as follows:

If [M :STW]VCRTYP=15 & [M :STW]VCRTYPORI=10

            [L]WVCRTYPANA = [M :STW]VCRTYPORI

            [L]WVCRNUMANA = [M :STW]VCRNUMORI

            [L]WVCRLINANA = [M :STW]VCRLINORI

Endif

The [L]WVCRxxxANA local variables contain the document number to be referenced in the analysis request.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

The document at the root of the update can be determined by the value of the following fields:

[M :STW]VCRTYP    Document type (local menu no. 701)

[M :STW]VCRNUM  Document number

[M :STW]VCRLIN     Document line

[M:STW]TRSTYP      Contains the transaction type (local menu no. 704)

Open tables

All the tables of the stock engine are open but their content is not significant.

The stock update interface screen: STOWORK [STW] is open and contains all the characteristics of the receipts to carry out.

 

MAJENTEND: After updating the receipts into stock for a document line

This entry point is called after the receipts into stock associated with a document line are updated.

The characteristics of these receipts are contained in the work screen [M :STW].

It is used to carry out additional updates.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

The document at the root of the update can be determined by the value of the following fields:

[M :STW]VCRTYP    Document type (local menu no. 701)

[M :STW]VCRNUM  Document number

[M :STW]VCRLIN     Document line

[M:STW]TRSTYP      Contains the transaction type (local menu no. 704)

Open tables

All the tables of the stock engine are open but their content is not significant.

The stock update interface screen: STOWORK [STW] is open and contains all the characteristics of the receipts that have been carried out.

 

ENT_STOSTJ: Before updating the receipt transaction

This entry point is called before the entry of a stock receipt transaction and the update of the stock line.

The characteristics of this receipt are contained in the work screen [M :STW].

Modifying the content of this work screen can be used to intervene on the updates to carry out.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

The document at the root of the update can be determined by the value of the following fields:

[M :STW]VCRTYP    Document type (local menu no. 701)

[M :STW]VCRNUM  Document number

[M :STW]VCRLIN     Document line

[M:STW]TRSTYP      Contains the transaction type (local menu no. 704)

The 2nd section of the [M :STW] screen indexed via the variable I contains the characteristics of the receipt.

The [L]SIGN and [L]SENS local variables have the following meaning:

SIGN

SENS

 

+1

+1

Receipt

-1

+1

Receipt cancellation

+1

-1

Negative receipt

-1

-1

Negative receipt cancellation

Open tables

All the tables of the stock engine are open but their content is not significant.

The stock update interface screen: STOWORK [STW] is open and contains all the characteristics of the receipt to be carried out.

 

LOOP_STWE: Before updating the receipts into stock for a stock line

This entry point is called before the update of a receipt into stock detail associated with a document line.

The characteristics of this receipt are contained in the work screen [M :STW] indexed via I.

Modifying the content of this work screen can be used to intervene on the updates to carry out.

Context and operating method

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

The document at the root of the update can be determined by the value of the following fields:

[M :STW]VCRTYP    Document type (local menu no. 701)

[M :STW]VCRNUM  Document number

[M :STW]VCRLIN     Document line

[M:STW]TRSTYP      Contains the transaction type (local menu no. 704)

The characteristics of the stock detail to receive are contained in the section 2 (grid) of the [STW] screen by using the index I.

Open tables

All the tables of the stock engine are open but their content is not significant.

The stock update interface screen: STOWORK [STW] is open and contains all the characteristics of the receipts to carry out.

 

NODELETE_LOT: In order not to delete a lot

This entry point is called before the deletion of a lot when deleting the document from which it is issued.

It is used in order not to delete the lot.

Context and operating method

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

To prohibit the deletion of a lot, you must set the global variable GPE as follows: GPE = 1

Open tables

All the tables of the stock engine are open but their content is not significant.