In version 140, this entry point replaces ‘SDHGENLIG’ that was active in v130.
Warning, even if the purpose of this entry point remains the same in v140 as in v130, its usage context as well as its functioning are completely different (the screens must be loaded in lieu of the delivery tables).
This entry point is called during the delivery of an order via the "Delivery" button in order management.
It is used to take over just before the processing of each delivery detail line in order to remove this processing and to replace it or not with a specific processing.
It is also called during the execution of the 'Delivery' button in order management.
There is no transaction in progress.
There is no open log file.
The delivery header has been processed. The context is at the level of the detail line processing.
This entry point is called for each delivery line to create, just before the call to the DET_LIV label that carries out the delivery detail line processing.
It is used to prevent the execution of the TRT_LIGCDE From SUBSDHC label and to execute or not another label.
The record of the order header to deliver is loaded in [F:SOH].
The two order detail records are in [F :SOQ] and [F :SOP].
The record for the header of the delivery to create is loaded in the [M:SDH0], [M :SDH1 and [M :SDH2] screen classes.
These are all the processings that will not be executed if the entry point is activated.
To activate the entry point, the WPOINT_DET_LIV variable has been created.
The GPE variable is initialized to 1 before calling the entry point and is tested when resuming the processing. The TRT_LIGCDE label is only executed if WPOINT_DET_LIV is set to 1.
To prevent the execution of the TRT_LIGCDE label, it is necessary to set the WPOINT_DET_LIV variable to 0.
The TRT_LIGCDE label to substitute loads the delivery line to create in the [M:SDH1] screen class.
As a consequence if this label must be replaced, it will be necessary to use its content as a template and to integrate it in the entry point.
In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded…). It is usually the case for the file that contains the header but not for the file that contain the lines…
Table | Significant content | Table Title |
SDELIVERY | No | Delivery header |
SDELIVERYD | No | Deliveries - Detail |
SORDER | Yes | Order headers |
SORDERQ | Yes | Order line quantities |
SORDERP | Yes | Order line prices |
SORDERC | No | Product line orders |
BPARTNER | Yes | A/P - A/R Accounting |
BPCUSTOMER | Yes | Customers |
BPDLVCUST | Yes | Ship-to customers |
BPCUSMVT | No | Customer transactions |
SALESREP | No | Sales reps |
STOALL | No | Allocations |
ITMMASTER | No | Products |
ITMSALES | No | Sales product |
ITMBPC | No | Product-customer |
ITMFACILIT | No | Product-site |
ITMMVT | No | Product movements |
TABCUR | No | Currency table |
FACILIT | No | Sites |
SPRICLINK | No | Search sales price lists (Link) |
PRICSTRUCT | No | Price list structure |
BPCARRIER | No | Carriers |
TABMODELIV | No | Delivery mode table |
When creating a delivery via the button in pick tickets, the site used to determine the company is the shipment site of the pick ticket.
This entry point is used to act on this functioning, and choose another site, therefore another company possibly.
This is not the standard case.
The specific will need to potentially support the linked impacts.
There is no transaction in progress.
There is no open log file.
This entry point is called when creating a delivery via the button in pick tickets.
At first, the GFCY global variable is initialized from the shipment site of the pick ticket ([F:PRH]STOFCY).
GFCY is then used to initialize other global variables such as GSOCIETE.
The ISDHFROMPRH whole local variable is declared and initialized to zero (zero).
If its value remains 0, the standard behavior is kept and GFCY is loaded with [F:PRH]STOFCY.
For any other value given to ISDHFROMPRH, it is considered that the value of GFCY was given in the entry point. This value will thus be kept.
The record of the pick ticket header is loaded in [F:PRH].
Example of modification of the GFCY value by the entry point:
GFCY = <Site to use>
ISDHFROMPRH = 1
In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded…). It is usually the case for the file that contains the header but not for the file that contain the lines…
Table | Significant content | Table Title |
SDELIVERY | No | Delivery header |
SDELIVERYD | No | Deliveries - Detail |
SORDER | No | Order headers |
SORDERQ | No | Order line quantities |
SORDERP | No | Order line prices |
SORDERC | No | Product line orders |
BPARTNER | No | BP |
BPCUSTOMER | No | Customers |
BPDLVCUST | No | Ship-to customers |
BPCUSMVT | No | Customer transactions |
SALESREP | No | Sales reps |
STOALL | No | Allocations |
ITMMASTER | No | Products |
ITMSALES | No | Sales product |
ITMBPC | No | Product-customer |
ITMFACILIT | No | Product-site |
ITMMVT | No | Product movements |
TABCUR | No | Currency table |
FACILIT | No | Sites |
SPRICLINK | No | Search sales price lists (Link) |
PRICSTRUCT | No | Price list structure |
BPCARRIER | No | Carriers |
TABMODELIV | No | Delivery mode table |
STOPREH | Yes | Header pick ticket |
STOPRED | No | Detail pick ticket |
|
|