SUBSCSB processing: Stock change management
SCDSQD_SGW: trnf of stk chg or quality detl entry scrn to stk chg storage scrn
This entry point is used to transfer the data from the stock change or quality detail entry screen (STOCHG or STOQUA) to the stock change storage screen (STOCHGW) for a document line (stock change or quality control).
Context and operating mode
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 ADDSGW label of the SUBSCSB processing.
It is called during the saving of the stock change or quality control detail entry at the time of the storage in the STOCHGW screen of the data entered in the STOCHG or STOQUA screens.
It is thus used to complete the loading of the STOCHGW [M :SGW] screen with the data contained in STOCHG [M :SCD] or STOQUA [M :SQD].
The variable containing the name of the detailed entry screen is:
LMABR = Detailed entry screen in the form of: [M :XXX] (Example: [M :SQD] for the quality detail)
The indexes to be used in the screen grids are :
I = Index in the ‘LMABR’ screen
[M :SGW]NBLIG = Index in STOCHGW [M :SGW]
Warning:
The loading of the STOCHGW screen must be subject to the value of LMABR ([M :SCD] or [M :SQD]). Indeed LMABR can contain other values.
This entry point is only designed to manage new fields.
The standard content of the 'LMABR' and STOCHGW screens must never be 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…).
Screen |
Significant content |
Screen title |
STOCHG |
Yes if LMABR = [M :SCD] for index I |
Stock change detail entry |
STOQUA |
Yes if LMABR = [M :SQD] for index I |
Quality detail entry |
STOCHGW |
Yes for the [M :SGW]NBLIG index |
Stock change data storage |
Table |
Significant content |
Table Title |
ITMCATEG |
Yes |
Product category |
ITMMASTER |
Yes |
Products |
ITMFACILIT |
Yes |
Products sites |
QTYSTUDES makes it possible to modify the STK qty of the SCS1 - stock chg screen
This entry point makes it possible to modify the entered STK quantity of the SCS1 (document) - stock change screen
Context and operating method
Transaction
There is no transaction in progress.
Log file
No trace file is open.
Different call cases - Significant variables
This entry point is located in the ALI_DOC label of the SUBSCSB processing.
It is called after the standard loading of the QTYSTUDES field in the screen.
It thus makes it possible to modify the loading
Screen |
Significant content |
Screen title |
SCS1 |
Yes |
stock change details |
|
Table |
Significant content |
Table Title |
ITMCATEG |
Yes |
Product category |
ITMMASTER |
Yes |
Products |
ITMFACILIT STOCK STOLOT ITMMVT |
Yes Yes Yes Yes |
Products sites Stock Lot number Product totals |
NO_CTLSTOCHG: checks that the STK qty corresponds to an integer number of PACs.
This entry point is called upon creation of a stock change.
It makes it possible to avoid performing a consistency check between the STK quantity and the PAC quantity: indeed the STK must correspond to an integer number of PACs (according to the number of decimals).
Context and operating mode
Transaction
Transaction
There is no transaction in progress.
The POK variable must be set to 1 if it is not required to perform the consistency check between the STK quantity and the PAC quantity.
Log file
There is no open log file.
Different call cases - Available variables and masks
This entry point is called upon entry of stock changes:
-
After clicking the "Create" button during the control performed before saving.
ALI_DOC_SCS1 makes it possible to modify the SCS1 - stock change screen
This entry point makes it possible to modify the contents of the SCS1 (document) - stock change screen
Context and operating mode
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 ALI_DOC label of the SUBSCSB processing.
it thus makes it possible to modify the contents of the SCS1 screen after its standard loading
Screen |
Significant content |
Screen title |
SCS1 |
Yes |
stock change details |
|
Table |
Significant content |
Table Title |
ITMCATEG |
Yes |
Product category |
ITMMASTER |
Yes |
Products |
ITMFACILIT STOCK STOLOT ITMMVT |
Yes Yes Yes Yes |
Products sites Stock Lot number Product totals |