CHGDEFLOC: Makes it possible to modify the default location

This entry point is used to modify the default location with a location suggestion or location type.

Context and operating method

Transaction

There is no transaction in progress.

Log file                        

There is no open log file.

Different call cases - Significant variables

This entry point is located in the REALOCTYP sub-program of the STKLOC process.

It is called in the stock receipt cycle before the entry of the location.

The default location of the product-site for the management rule that is being used has been loaded to the [M :STLT]LOC screen variable.

To modify the default value, the following actions needs to be performed:

Reload the [M :STLT]LOC default location with the new value

Load the [L]W_TLODEF local variable with the location type of the [M :STLT]LOC location

The significant variables are:  

 [M:STLT]TRSTYP :   Transaction type (Local menu 704)

[M:STLT]ITMREF :  Product

 [M:STLT]STOFCY :   Site

 

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...).

Table

Significant content

Table Title

ITMMASTER

Yes

Products

ITMFACILIT

Yes

Products-site

TABSTORUL

Yes

Management rule

TABLOCTYP

No

Location type

STOLOC

No

Locations

 

FILOCPCOD: It is used to modify the location suggestion filter

This entry point is used to modify the filter applied as a standard upon location or location type suggestion.

For instance, it allows only empty locations to be suggested.

Context and operating method

Transaction

There is no transaction in progress.

Log file                        

There is no open log file.

Different call cases - Significant variables

This entry point is located in the LEC_TLO label from the STKLOC process.

It is called in the stock receipt cycle before the entry of the location type or location.

The default operation of the suggestion for a location type is as follows:

-         Type of location that can be reordered without constraints: empty locations, then occupied locations

-         Other types of locations: all locations that are not full

To modify this operation, the value of FIL2(0) and/or FIL2(1) needs to be changed.

The significant variables are:  

 [M:STLT]TRSTYP :   Transaction type (Local menu 704)

[M:STLT]ITMREF :  Product

 [M:STLT]STOFCY :   Site

For instance: for the types of locations managed on a fill-witout-constraint mode, only the empty locations should be submitted.

      If [F:TLO]FILMGTFLG=2 & ([F:TLO]PCU(0)="" | [F:TLO]MAXQTYPCU(0)=0)

        FIL2(1) = "[F:STC]OCPCOD=1"

Endif

 

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...).

Table

Significant content

Table Title

ITMMASTER

Yes

Products

ITMFACILIT

Yes

Products-site

TABSTORUL

Yes

Management rule

TABLOCTYP

Yes

Location type

STOLOC

No

Locations

 

CTRSTKLOC : Used to perform checks when choosing or allocating a location

This entry point is used to carry out checks at the time of location selection or allocation.

Context and operating method

Transaction

There is no transaction in progress.

Log file                        

There is no open log file.

Different call cases - Significant variables

This entry point is located in the TRT_UN_EMP and STKCTREMP sub-programs of the STKLOC process.

They are called in the stock receipt flows.

Available variables and masks

Variable or mask

Definition

Global integer GTR

The stock transaction type can be found in this variable (local menu 704).

For instance, in a stock count, checks can be different

(GTR = 13)

Global GPE integer

Set to <> 0 to not carry out the standard process

Set to = 0 to carry out the standard process

 

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...).

Table

Significant content

Table Title

STOCK/STO0

No

Stock

TABLOCTYP/TLO

Yes

Location type

STOLOC/STC

Yes

Locations

 

MAJREWLOC : For the update of the location of a stock line upon each update of s

This entry point is used to modify the characteristics of the location of a stock line on update of said stock line (in creation, modification or deletion mode).

Context and operating method

Transaction

There is one transaction in progress.

Log file                        

According to the context there may or may not be an open log file.

Different call cases - Significant variables

This entry point is located in the STKLIBEMP sub-program of the STKLOC processing that is called on update of a stock line after the entry, rewrite or deletion of said stock line.

It is called after the update of the location and before the update of the location type.

It makes it possible to modify the characteristics of the location that has just been updated.

For that purpose, the location concerned needs to be read (with LFCY and LLOC), the required value modifications need to be performed and the location needs to be rewritten.

The significant variables are:  

 [L]LFCY :      Location site

 [L]LLOC :      Location

 [V]GOK :       Return code (set to 0 in case of error)

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...).

Table

Significant content

Table Title

STOLOC [STC]

No

Location

STOLOC [STC0]

No

Location

TABLOCTYP

Yes

Location type

STOCK [STO]

Yes

Stock

STOCK [STO0]

No

Stock

 

ECR_SWL: To complete the write of a record in STOLOCRES

This entry point is used to complete the content of a record in the location reservation table on entering said record (STOLOCRES).

Context and operating method

Transaction

There is one transaction in progress.

Log file                        

According to the context there may or may not be an open log file.

Different call cases - Significant variables

This entry point is located in the STKCRERES sub-program of the STKLOC processing which creates a location reservation in the STOLOCRES table.

It is called after loading the [F:SWL] record and before writing it.

It makes it possible to complete the content of the [F:SWL] record which is going to be written.

The significant variables are:  

 [L]LFCY :      Site

 [L]LITM :       Product

 [L]LPCU :      Packing unit

 [L]LQTE :      Quantity

 [L]LSTA :      Status

 [L]LOLD :      Former location

 [L]LNEW :      New location

 [L]LBPR :       BP

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...).

Table

Significant content

Table Title

STOLOC [STC]

Yes

Location

STOLOC [STC0]

Yes if LOLD<>""

Location

TABLOCTYP

Yes

Location type