CUSSELFLT: Inserting additional filters

This entry point is used to insert additional logic during the creation of selection filters in the processing of groupings (FUNMPICK function).

The CUSFLT variable (255 characters) is used to set filters on the fields in the additional files.

The filter can be applied to the filter of product orders (ORDERS class [F :ORD]) if the processing is automatic, product orders (ORDERS class [F :ORD]), the products (ITMMASTER class [F :ITM]) as well as the product-site file ((ITMFACILIT class [F :ITF]) if the processing is multi-product.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file

Available screen and file classes

The MFGPICK mask is open and the different selections are loaded.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (…).

Table

Significant content

Table Title

ITMFACILIT

No

Product-site

ITMMASTER

No

Products

TABUNIT

No

Unit of measure table

ITMMVT

No

Product - Movements

BPSUPPLIER

No

Suppliers

ITMBPS

No

Products-Suppliers

FACILITY

Yes

Sites

 

CUSSRT: Additional classification

This entry point is used to insert additional logic during the sorting of the records in the grid processing of the grouping function (FUNMPICK function).

The WTRI variable (integer type) is used to de-activate the standard sort if a specific sort has been included. To do this, the WTRI value is set to 1.

This entry point being common to the Global planning, workbench and grouping function, the specific/custom processing is unique and the context can be determined via a test on the transaction type:

[F :BTS] BTSTYP = 51 for global planning

[F :BTS] BTSTYP = 52 for the workbench

[F :BTS] BTSTYP = 53 for grouping

Specific/custom processing example:

$ACTION

ACTION example

 When "CUSSRT"      : Gosub CUSSRT

Endcase

Return

 

$CUSSRT

Case [F:BTS]BTSTYP

When 51: Sorta [M:MGB]NBLIG [M:MGB]NBLIG Order By [M:MGB]BPRNUM(index)

    When 52: Sorta [M:MGD]NBLIG [M:MGD]NBLIG Order By [M:MGD]BPRNUM(index)

    When 53: Sorta [M:MGP]NBLIG [M:MGP]NBLIG Order By [M:MGP]BPRNUM(index)

Endcase   

WTRI = 1

Return

 

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file

Available screen and file classes

The MFGPICK mask is open and the different selections are loaded.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (…).

Table

Significant content

Table Title

ITMFACILIT

No

Product-site

ORDERS

No

Product on hand orders

ITMMASTER

No

Products

TABUNIT

No

Unit of measure table

BENCHTRS

Yes

Entry transaction

 

ADDLIN: Specific/custom field assignment

This entry point is used to assign the specific/custom fields in the grouping.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases - Available variables and masks

The entry point is called in order to complete the loading of the lines in the grid.

It is used to insert additional logic in order to load the specific/custom fields in the grid.

The MFGPICK screen class is open at the moment of the entry point call.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

Table

Significant content

Table Title

ORDERS

Yes

 WIPs

ITMFACILIT

Yes

Product-sites

 

CHECKORD: Choice in the display of selected orders

This entry point is used to choose the orders to be displayed in the grouping from amongst those that have already been the subject of a previous selection.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

The entry point is called at the start the completion of loading of the lines in the grid, just before the trans-class.

The MFGPICK (Planner transaction) or MFGPICKA (Reorder) mask is open at the moment that the entry point is called.

Available variables and masks

The GPE variable is used. It is set to the value 0 by default. It must be set at 1 in the specific/custom process linked to the entry point if the current record should not be displayed. On returning to the standard processing, the GPE value is tested. If it is not equal to 0, the section containing the line assignment is short-circuited.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

Table

Significant content

Table Title

ORDERS

No

 WIPs

ITMFACILIT

No

Product-sites

 

LOADZON: Loading of specific/custom fields

This entry point is used to enter specific fields when loading the grid [M:PMG], automatic generation of purchase documents.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases - Available variables and masks

The entry point is called in order to complete the loading of the lines in the grid.

It is used to take over the loading of the specific/custom fields of grid [M:PMG].

The MFGPICK screen class is open at the moment of the entry point call.

The PURMGT screen class is open at the moment of the entry point call.

This EP is called by the labels:

        • LECDA (purchase request),
        • LECDLP (planned delivery request),
        • LECPO (purchase order),
        • LECPOST (subcontract purchase order), 
        • LECDLF (firm delivery request).

The index of the line being loaded into PURMGT is [M:PMG]NBLIG.

The index of the line copied to MFGPICK is I.

For instance:

[M:PMG]xxx([M:PMG]NBLIG) = [M:MGP]xxx(I)

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

Table

Significant content

Table Title

ORDERS

Yes

 WIPs

ITMFACILIT

Yes

Product-sites

 

STYLE : Style of the grid's lines

This entry point is used to take control on the display style of a grid line.

Context and operating method

Use

The [M:HLIK]LINNUM variable contains the index of the grid's line.

The [M:HLIK]STYLE variable contains the standard style to be applied to this line (no style if [M:HLIK]STYLE = blank).

By reassigning [M:HLIK]STYLE, the standard style can be replaced by another or can be disabled.