MODSOQQTY: Modification of the quantity to be ordered

This entry point concerns the picking of a quote line in order creation and modification.

It is used to take control right after the ordered quantity has been determined, in order to intervene on this quantity or to reject the line picking.

It is called during the picking of a quote line from the order management.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Call context

This entry point is called from the order management.

It is located in the $SEL label of the SUBSOHC processing.

It is called upon each picking of a quote line, after the quote line has been read, right after the quantity remaining to be ordered has been defined and just before the screens of the order object have been loaded ([M:SOH0], [M:SOH1], [M:SOH2], [M:SOH3], [M:SOH4]) from the header and quote line ([F:SQH], [F:SQD]).

It is used to modify the ordered quantity before the order line is loaded into [M:SOH4]. It can also be used to reject the quote line.

Available variables and masks

The [M:SOH0], [M:SOH1], [M:SOH2] and [M:SOH3] screen classes of the order header are loaded if order lines have already been entered (or if an order is being modified).

The screen class of the order lines [M:SOH4] is also loaded if order lines have already been entered (or if an order is being modified) but the line being processed is not loaded yet.

To modify the ordered quantity, it is necessary to intervene on the local variable WQTY. Just before the entry point, WQTY is automatically loaded as follows:

WQTY=[F:SQD]QTY-[F:SQD]ORDQTY

To reject the quote line, it is necessary to intervene on the WPE_OK local variable and set it to 0.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded…). It is usually the case for the file that contains the header but not for the file that contain the lines…

Table

Significant content

Table Title

SQUOTE

Yes

Quote header

SQUOTED

Yes

Quote line

BPCUSTOMER

Yes

Customers

ITMMASTER

Yes

Products

ITMSALES

Yes

Sales product

ITMBPC

Yes

Product-customer

SQUOTELOAN: Quote picking on loan orders

In stadard, it is not possible to pick quotes on loan orders. The picking list is always empty.

Use this entry point to get around this rule (and this rule only) and to suggest quotes in the picking list, insofar as all the functional rules used to populate it are loaded.

It is called at the very beginning of the label creating the loading filters of the picking list. It can only be used for this operation and cannot be turned toward another use.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Call context

This entry point is called from the order management.

It is located in the $FILGAUCHE1 label of the SUBSOHC processing.

It is called at the beginning of the building of the filter that populates the picking list.

It is used to continue the execution of the label and therefore build the standard filter used to possibly return values to the picking list, when the IPE_QUOTE_LOAN local variable is set to a value different from 0 (zero).

Available variables and masks

The [M:SOH0], [M:SOH1], [M:SOH2] and [M:SOH3] screen classes of the order header are loaded if order lines have already been entered (or if an order is being modified).

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded…). It is usually the case for the file that contains the header but not for the file that contain the lines…

Table

Significant content

Table Title

SQUOTE

No

Quote header

SQUOTED

No

Quote line

BPCUSTOMER

Yes

Customers

ITMMASTER

No

Products

ITMSALES

No

Sales product

ITMBPC

No

Product-customer