Process CONTX3: Dimension Type Control
CTLJOU2: Control and shifting of the planned reception date
This entry point located in the CONTX3 process, miscellaneous X3 controls, generates a "CTLJOU2" action.
The goal of this action is to modify or delete the control carried out on the planned receipt date.
Context and operating method
Transaction
There is a transaction in process in the case of an automatic order generation (direct order or buyer's plan).
Log file
There is an open log file in the case of an automatic order generation (direct order or buyer's plan).
Different call cases
The call is made in order to take into account the requirements or during the manual entry of a purchase request line or order just before the control and potential modification of the planned receipt date.
The call is made when the " Call CTL_JOU2 " is executed.
Available variables and masks
The following variables are loaded at the time of the call to the "CTLJOU2" action.
DATRCP
Planned receipt date to be checked and adjusted as a function of the working days of the site concerned.
UVYDAY
Open or closed days of the week.
UVYCOD
Unavailability period code
The variables given above must not be modified.
The following variables can be modified to change or delete the receipt date control:
DATMIN
Minimum receipt date
In version 130 the default value is the request or order date.
In version 140 the default value is the request or the order date increased by the product lead-time.
SENS
The sense of the date shift as a function of the open days in the week (0 = forward shift, 1 = backward shift).
WCTLFLAG
Flag used to intervene in the control itself (the value is 0 by default).
0 = Classic control, that is to say control and date shift as a function of the days in the week then a simple control as a function of the unavailable periods.
1 = Control with the unavailable periods only without date shift.
2 = No control, no date shift.
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 |
FACILITY |
Yes |
Sites |
ITMMASTER |
Yes |
Products |
ITMFACILITY |
Yes |
Products-Sites |
Miscellaneous remarks
This entry point can render the EXTRCPDAT entry point in the TRTACHCDE1 process obsolete.
AUTORIS_OPT: Deactivate standard functional authorization
Context and operating mode
Transaction
There is no transaction in progress.
Log file
No trace file is open.
Code context
The entry point is called in $AUTORIS_OPT label of CONTX3 script.
It allows to deactivate standard authorization control done when click on a button/menu option.
Available screen and file classes
-
ISTDAUTORIS_OPT : by default set to [V]CST_AYES. Must be set to [V]CST_ANO to deactivate standard authorization control.
-
GFONCTION : current function which is calling CONTX3.AUTORIS_OPT
-
BOUT : current button code
-
GBIDC2 : option to test
-
GFCY : current site. (could be empty).
-
Available masks are those corresponding to GFONCTION variable.
Open tables
Tables corresponding to the current GFONCTION.