MAJTRS: Intervening in the specific field management

This entry point located in the SUBSKX processing (stock entry transaction management) generates a "MAJTRS" action.

This action aims at giving the possibility to intervene in the specific field management at the display level as well as the entry level.

All the stock entry transactions are concerned by this entry point, that is to say those of the assembling, disassembling, stock changes, lot modifications, stock counts, miscellaneous issues, quality control, put-away plans, reorder plans for consumption areas and miscellaneous receipts.

Context and operating mode

Transaction

There is a transaction in progress for the INICRE, CREATION, INIMOD and MODIF actions.

There is not transaction in progress for the RAZCRE, LIENS and APRES_MODIF actions.

Log file

There is no open log file.

Different call cases

The call is carried out when managing the entry transaction setup:

-          assembly disassembly

-          stock change

-          lot modifications

-          stock count                  

-          miscellaneous issue

-          quality control

-          put-away plan

-          reorder plan consumption area

-          miscellaneous receipt

-          preparation plan

-          pick ticket

and this for the following actions for GOBJET:

-          RAZCRE  in creation mode, initialization of the screen fields

-          INICRE  before writing the recording, loading of the file fields

-          CREATION  after writing the recording, intervention in the field parameters before the entry screen generation

-          LIENS  after each recording read, interventions in the screen fields after each recording read

-          INIMOD  before the re-write of the record, loading of the file fields

-          MODIF  after rewriting the recording, intervention in the fields parameters before the entry screen generation

-          APRES_MODIF  after entering each field, intervention on the screen fields

-          EXEBOUT  after clicking a button at the bottom of the screen. Only the "Validation" button is of interest, in this case the REP variable is set to "1" (caution, this is an alphanumeric number).

Content of the STKTRS table

The data contained in the STKTRS table concerns the storage of the stock module entry setup that can be modified by transaction.

A specific standard must be complied with. To each field added to a screen must correspond the creation of data in the STKTRS table.

The data added can be of 4 different types :

 

 Data type

 Field

 STKTRS table

 Menu

 Values

 A

 Header not available for entry

 AAAA

 AAAAFLG

 1

 1 = no / 2 = yes  (Display)

 B

 Header available for entry

 BBBB

 BBBBCOD

 35

 1 = enter / 2 = display / 3 = hidden

 C

 Line not available for entry

 CCCC

 CCCCFLG

 CCCCSCR

 1

 99

 1 = no / 2 = yes  (Display)

 1 = record+grid / 2 = record / 3 = grid

 D

 Line available for entry

 DDDD

 DDDDCOD

 DDDDSCR

 35

 99

 1 = enter / 2 = display / 3 = hidden

 1 = record+grid / 2 = record / 3 = grid

 Available masks

 Transactions

 Entry screens

Add data

 Setup screens

Types of added data

 Assembly /            disassembly

 BBY0  Parent product

  Yes

 PBY0

 

 BBY1  Component

  Yes

 PBY1  General

 

 A - B  - C - D

 

 DBY0  Parent product

  Yes

 DBY1  Component 

  Yes

 Stock change

 SCS1  Header and lines

  Yes

 SCT0

 

 SCT1 General

 A – B

Lot modification

 SMX1

  No

 SLT0

 

 SLM1

  No

 SLT1

 

 SMXUPD1

  No

 SLT2

 

 Stock count

 SNL0  Grouping line

  Yes

 SNP0

 

 SNL1  Detail line

  Yes

 SNP1

 

 SNP2 Sections

 C – D

 Miscellaneous issue

 SMO0 Header

  Yes

 SOT0

 

 SMO1 Line

  Yes

 SOT1 Parameters

 A - B - C - D

 Quality control

 STQ1 Header and line

  Yes

 SQT0

 

 SQT1 Parameters

A - B - C - D

 Put-away plan

 SSL1 Header and line

  Yes

 SRG0

 

 SRG1 General

A - B - C - D

 Reorder plan consumption area

 REO1 Header and line

  Yes

 SRO0

 

 SRO1 General

A - B - C - D

 Miscellaneous receipt 

 SMR0 Header

  Yes

 SRT0

 

 SMR1 Line

  Yes

 SRT1 Parameters

A - B - C - D

 
Available variables

The following variables are loaded when calling the "MAJTRS" action.

PACTION

GOBJET action at the origin of the call (RAZCRE, INICRE, CREATION, LIENS, INIMOD, MODIF, APRES_MODIF, EXEBOUT).

PVERSION

Numeric value of the X3 version number used (e.g. GVERSION=1.4.0  PVERSION=140).

 FJL

Transaction type being managed (PBY=assembly/disassembly, SCT=stock change, SLT=lot modification, SNP=stock count, SOT=miscellaneous issue, SQT=quality control, SRG=put-away plan, SRO=reorder plan consumption area, SRT=miscellaneous receipt).

 MFROM

Code for the entry screen (BBY0, BBY1, DBY0, DBY1, SCS1, SMX1, SLM1, SMXUPD1, SNL0, SNL1, SMO0, SMO1, STQ1, SSL1, REO1, SMR0 and SMR1)

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

STKTRS

Yes

Stock entry transaction

Miscellaneous remarks

The AWINDOW, AWINPAR, AMSK, AMSKZON, AMSKACT tables, as well as all the tables required for the management of the screen generation and processings are open but must not be modified in the entry point.

 

STKTRSWIN: Intervention on the generated invoices

This entry point concerns the stock entry transaction management. It is called in the pick ticket management transactions.

It is used to modify the browsers of the window generated by the transaction.

This entry point is located in the SUBSKX processing.

Context and operating mode

Transaction

There is one transaction in progress. The GOK variable is used and tested. It is equal to 1. It can be set to 0 if the transaction is to be abandoned.

Log file

There is no open log file.

Different call cases

 It is called in the CREATION,  MODIF,  and ANNULE actions in the processes :

SUBPRT: Pick ticket transaction

Available masks

Transaction

Entry screens

 

Setup screens

 

 

 

Pick ticket

PRH0 : Header screen

PRH1 : Line screen

PRT0 : Header screen

PRT1 : General screen

Available variables

The following variables are available to define the processing to carry out:

[F :AWI]                          The [F :AWI] class is loaded and can be modified if required to intervene on the generated window.

[F :SRT]SRTTYP         Transaction type

[F :SRT]SRTNUM        Transaction code

WINREF                        Name of the reference window

                                      ="O"+Name of OBJect ( "PRH" )

NOMWIN                       Name of the window generated for this transaction

                                       ="WO"+Name of the OBJect+Transaction code 

Transaction type

Description

Object

WINREF

NOMWIN

12

Pick ticket

PRH

OPRH

"WOPRH" + [F:SRT]SRTNUM

Open tables 

 Table

Processing

Significant content

Table Title

STKTRS

SUBPTR

Yes

Purchase entry transactions

AWINDOW

 

Yes

Window dictionary

The AWINDOW, AWINPAR, AWINBRO, AWINBOUT, AMSK, AMSKPAR, AMSKZON tables, as well as all tge tables required for the management of the screen generation and processes are open.

 

STKTRSAWB: Intervention on the generated invoices

This entry point concerns the stock entry transaction management. It is called in the pick ticket management transactions.

It is used to modify the browsers of the window generated by the transaction.

This entry point is located in the SUBSKX processing.

Context and operating mode

Transaction

There is one transaction in progress. The GOK variable is used and tested. It is equal to 1. It can be set to 0 if the transaction is to be abandoned.

Log file

There is no open log file.

Different call cases

 It is called in the CREATION,  MODIF,  and ANNULE actions in the processings :

SUBPRT: Pick ticket transaction

Available masks

Transaction

Entry screens

 

Setup screens

 

 

 

Pick ticket

PRH0 : Header screen

PRH1 : Line screen

PRT0 : Header screen

PRT1 : General screen

Available variables

The following variables are available to define the process to be carried out :

[F :AWB]                          The [F :AWB] class is loaded and can be modified if required to intervene on the browser of the generated window.

[F :SRT]SRTTYP         Transaction type

[F :SRT]SRTNUM        Transaction code

WINREF                        Name of the reference window

                                      ="O"+Name of OBJect ( "PRH" )

NOMWIN                       Name of the window generated for this transaction

                                       ="WO"+Name of the OBJect+Transaction code 

Transaction type

Description

Object

WINREF

NOMWIN

12

Pick ticket

PRH

OPRH

"WOPRH" + [F:SRT]SRTNUM

Open tables 

 Table

Processing

Significant content

Table Title

STKTRS

SUBPTR

Yes

Purchase entry transactions

AWINDOW

 

Yes

Window dictionary

The AWINDOW, AWINPAR, AWINBRO, AWINBOUT, AMSK, AMSKPAR, AMSKZON tables, as well as all tge tables required for the management of the screen generation and processes are open.