Use this entry point take over before the write in the work file of each subcontract order, reorder or shortage line record to prepare. It is therefore used to add data that will be used as shortage criteria in the work file data ([F:PRW]WDATA2 field).
It is called in the FUNAUTPREP processing for automatic delivery.
There is one transaction in progress.
There is an open log file.
The entry point is called in the generation of preparation lists function, when the 'Generate pick ticket' box is selected every time a record is written in the STOPREW work file.
The [STOPRELIS] record is on line.
If [F:PRL]ORITYP=1 or 2 (preparation of an order line), the corresponding records SOH, SOQ, SOC are on line if [F:SOH]SOHCAT=4. Otherwise, SOP is on line.
If [F:PRL]ORITYP=3 (preparation of a subcontract reorder), the corresponding record REO is on line.
If [M:PRL]ORITYP=4 (preparation of a subcontract shortage), the corresponding record STA is on line.
To add shortage criteria, it is necessary to load the required information in the WDATA2 field.
e.g.: [F:PRW]WDATA2 += [F :SOH]xxx
Caution: The WDATA2 field is sized to 250 characters, which are all available if a subcontract reorder or shortage is being prepared.
When preparing an order line, this field already contains the following: 1st address line, postal code, city and state of the ship-to customers and invoice (all the spaces having been removed)
In the table below, the significant content flag indicates that the content matches the context (the current customer is loaded…). It is usually the case for the file containing the header, but not for the file containing the lines…
Table | Significant content | Table Title |
STOPREW | Yes | Pick ticket work file |
STOPRELIS | Yes | Preparation list |
SORDER | Yes if [PRL]ORITYP=1 or 2 | Order headers |
SORDERQ | Yes if [PRL]ORITYP=1 or 2 | Order line quantities |
SORDERP | Yes if [PRL]ORITYP=1 or 2 and [F:SOH]SOHCAT<>4 | Order line prices |
SORDERC | Yes if [PRL]ORITYP=1 or 2 and [F:SOH]SOHCAT=4 | Contract order by product |
STOREO | Yes if [PRL]ORITYP=3 | Reorders |
STOALL | Yes if [PRL]ORITYP=4 | Allocations |
|
|
|
Use this entry point to take over during the selection criteria definition for the orders to prepare.
It is used to add extra filters on these orders.
It is called in the FUNAUTPREP processing for the generation of preparation lists.
There is no transaction in progress.
No log file is open when in the selection phase for the order lines to prepare.
The entry point is called in the preparation list generation function upon the definition of selection criteria for the STOPRELISW work file generation.
To add selection criteria, it is necessary to load the required filters in the WCRITSUP field.
The criteria must involve the tables [F:SOH], [F:SOQ] and [F:SOP].
They must be entered as follows:
WCRITSUP = "[F:SOH]xxx = Ident"
The WCRITSUP variable is sized to 250 characters.
In the table below, the significant content flag indicates that the content matches the context (the current customer is loaded…). It is usually the case for the file containing the header, but not for the file containing the lines…
Table | Significant content | Table Title |
SORDER | No | Order headers |
SORDERQ | No | Order line quantities |
SORDERP | No (if standard order) | Order line prices |
SORDERC | No (if contract order) | Product / customer orders (open orders) |
Use this entry point to take over before the write in the STOPRELISW work file of each subcontract order, reorder or shortage line record to prepare.
It is called in the FUNAUTPREP processing for the generation of preparation lists.
There is one transaction in progress.
There is an open log file.
The entry point is called from the generation of preparation lists function, for each write of a record in the STOPRELISW work file.
Depending on the value of the [L]WTYPTRT local variable, an order detail, sub-contractor location reorder or sub-contractor shortages record is on line.
If [L]WTYPTRT=1 (preparation of an order line), the corresponding records SOH, SOQ, SOC are on line if [F:SOH]SOHCAT=4. Otherwise, SOP is on line.
If [L]WTYPTRT=2 (preparation of a subcontract reorder), the corresponding record REO is on line.
If [L]WTYPTRT=4 (preparation of a subcontract shortage), the corresponding record STA is on line.
In the table below, the significant content flag indicates that the content matches the context (the current customer is loaded…). It is usually the case for the file containing the header, but not for the file containing the lines…
Table | Significant content | Table Title |
STOPRELISW | Yes | Preparation list work file |
SORDER | Yes if WTYPTRT=1 | Order headers |
SORDERQ | Yes if WTYPTRT=1 | Order line quantities |
SORDERP | Yes if WTYPTRT=1 and [F:SOH]SOHCAT<>4 | Order line prices |
SORDERC | Yes if WTYPTRT=1 and [F:SOH]SOHCAT=4 | Contract order by product |
STOREO | Yes if WTYPTRT=2 | Reorders |
STOALL | Yes if WTYPTRT=3 | Allocations |
|
|
|
Use this entry point to take over during the control of order lines to prepare.
It is used to add extra controls on these order lines.
It is called in the FUNAUTPREP processing for the generation of preparation lists.
There is no transaction in progress.
No log file is open when in the control phase for the order lines to prepare.
The entry point is called in the preparation list generation function upon the order lines control for the STOPRELISW work file generation.
To go to the next order line, set the GPE variable to 1.
In the table below, the significant content flag indicates that the content matches the context (the current customer is loaded…). It is usually the case for the file containing the header, but not for the file containing the lines…
Table | Significant content | Table Title |
SORDER | No | Order headers |
SORDERQ | No | Order line quantities |
SORDERP | No (if standard order) | Order line prices |
SORDERC | No (if contract order) | Product / customer orders (open orders) |
Use this entry point to take over following the generation of pick tickets.
It is used to intervene again on generated pick tickets.
It is called in the FUNAUTPREP processing for the generation of preparation lists when set up with generation of pick tickets.
There is no transaction in progress.
There is an open log file.
Call context
This entry point is called in the generation of preparation lists function after the generation of pick tickets.
The work file used for the generation of the pick tickets is available.
In the table below, the significant content flag indicates that the content matches the context (the current customer is loaded…). It is usually the case for the file containing the header, but not for the file containing the lines…
Table | Significant content | Table Title |
STOPREW | No | Pick ticket work |
STOPREH | No | Header pick ticket |
STOPRED | No | Detail pick ticket |
|
|
|
This entry point is used to take over the pick ticket generation order.
It is called in the FUNAUTPREP processing for the generation of preparation lists when set up with generation of pick tickets.
There is no transaction in progress.
There is an open log file.
Call context
This entry point is called in the generation of preparation lists function.
It is used to define the read order for the STOPREW/PRW work file.
To take into account the read order defined in the EP set the GPE variable to 1.
The work file used for the generation of the pick tickets is available.
In the table below, the significant content flag indicates that the content matches the context (the current customer is loaded…). It is usually the case for the file containing the header, but not for the file containing the lines…
Table | Significant content | Table Title |
STOPREW | Yes | Pick ticket work |
STOPREH | No | Header pick ticket |
STOPRED | No | Detail pick ticket |
|
|
|