ADDLIN: Specific/custom field assignment

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

It is called in the BENCHLIB processing.

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 MFGBENCHD/MTOLINKB(*) 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

Products - Sites

(*) Based on the values of GFONCTION, respectively FUNDBENCH/FUNMLINK

CUSSELFLT: Inserting additional filters

This entry point is used to take over in the creation of the selection filters in the assignment workbench processing (FUNMLINK function).

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

The filter is applied exclusively to the product on hand orders file (ORDERS class [F :ORD]).

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 MTOLINKB mask is open and the various 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

Yes

Product-site

ORDERS

No

Product on hand orders

ITMMASTER

Yes

Products

CHECKORD: Choice in the display of selected orders

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

It is called in the BENCHLIB processing.

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 MFGBENCHD/MTOLINKB mask is open at the time of call to the entry point.

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

Yes

Product-sites

ITMMASTER

Yes

Products

(*) Based on the values of GFONCTION, respectively FUNDBENCH/FUNMLINK

CUSSRT: Additional classification

This entry point is used to take control of the sorting of the entries in the grid in the assignment workbench processing (FUNMLINK 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 MTOLINKB mask is open and the various 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

Yes

Product-site

ORDERS

No

Product on hand orders

ITMMASTER

Yes

Products

TABUNIT

No

Unit of measure table

BENCHTRS

Yes

Entry transaction

STRSTO: Initial stock

This entry point is used to insert additional logic in the initial stock taken into account in the workbench.

It is called in the BENCHLIB processing.

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 MFGBENCHD/MTOLINKB mask is open and the different selections are loaded.

The starting stock is already calculated (WEXT variable) and may be modified according to requirements.

The [ITV] class corresponding to the Product/Site total entry is on line.

  

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

Yes

Product-site

ORDERS

No

Product on hand orders

ITMMASTER

Yes

Products

ITMMVT

Yes

Product-Site totals

BENCHTRS

Yes

Entry transaction

(*) Based on the values of GFONCTION, respectively FUNDBENCH/FUNMLINK

FILTER_TRS: Additional filter on transactions

This entry point is used to take control of the submitted list of transactions.

Context and operating mode

Use

The CRITERE variable contains standard filters. It is possible to add another filter as follows:

CRITERE += "&find(BTSNUM,'AAA','BBB')

ADD_LIN: Loading of the assignment grid

This entry point is used to intervene during manual assignment in order to complement the information displayed in the assignment grid.

Context and operating mode

Use

The current line is recognized by the index L.

The entry point is called after the standard loading of the grid line, before incrementation of the grid variable NBLIG1.

Example of loading of an additional information:

[M:MLB]XXXX1(L) = "xxxxxxxx"

LOAD_LINK: Loading of the assignments

This entry point is used to intervene following the selection of a line in the orders grid.

After a line has been selected, the system looks for the already existing allocations and assignments in order to set up and display the assignment grid.

This entry point is used to intervene on these elements.

Context and operating mode

Use

The entry point is called at th end of loading of the assignment grid.

The grid variable NBLIG1 is up-to-date.

The K variable points to the selected order under progress.

CUS_ASSIGN_PRP: Dynamic assignment proposal

This entry point is used to intervene following the selection of a line in the orders grid.

If the selected order is associated with a balance that still needs to be assigned, the system automatically searches and submits the orders that can be assigned to it.

This proposal is illustrated by the display of the icon of a closed lock.

This entry point makes it possible to intervene on the choice of the orders that can be assigned to the selected line.

Context and operating mode

Use

Available variables:

An order is selected if [M:MLB]ISSEL > 0 or [M:MLB]PECFLG(index) ="210"

The type of the selected order is recognized by:

- [M:MLB]ISDEM (=2) if "request" type

- [M:MLB]ISDEM (=2) if "resource" type

If an order can be assigned to the selected order: [M:MLB]ICOLINK(indice) = "167"

If an order is already assigned to the selected order in mode 1 for 1: [M:MLB]ICOLINK(indice) = "211"

An example of code:

#----------------------------------------------------------------------------------
$ACTION
ACTION example
 When "CUS_ASSIGN_PRP"        : Gosub CUS_ASSIGN_PRP
Endcase
Return

#----------------------------------------------------------------------------------
$CUS_ASSIGN_PRP
# go through all lines
For I =0 To [M:MLB]NBLIG - 1
     # if no order selected, exit
    If [M:MLB]ISSEL > 0   
        # if line marked "assignable" by standard process
        If [M:MLB]ICOLINK(I) = "167"
            # just testing exclusion
            If pat([M:MLB]XUSRFLD(I), "*noassignment*"): [M:MLB]ICOLINK(I) = "": Endif
        Endif
    Endif
Next I
Return

ADDLIN1: Loading of the assignment grid

This entry point is used to intervene during the addition of a line in the assignment grid in order to fill the displayed information (specific fields).

Context and operating method

Use

The line to be created is recognized by the index L.

The current line whose data are copied over matches (nolign-1).

The index K indicates the selected line[M:MLB]ISSEL - 1

Example of loading of an additional information:

[M:MLB]XXXX1(L) = "xxxxxxxx"

STYLE: Style of the 'Projected stock' grid 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.

STYLE2: Style of the 'Assignment(s)' grid 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.