Process FUNPACK : Packaging
PACKDETMAJ : Mises à jour de fichiers spécifiques après mis
Ce point d’entrée est appelé dans la gestion du colisage pour permettre de mettre à jour des tables spécifiques.
Il est appelé dans le traitement de gestion du colisage FUNPACK.
Il est appelé lors de la création d’un colisage, à l’enregistrement de chaque ligne de colis. Il permet de prendre la main avant chaque enregistrement de ligne de colis.
Il est appelé lors de l’annulation d’un colisage. Il permet de prendre la main après suppression complète du colisage.
Contexte et mode de fonctionnement
Transaction
There is a transaction in process (entry or deletion of the load preparation transaction). The GOK variable is used and tested. It is initialized to 1. It can be set to 0 if the transaction should be abandoned.
Log file
There is no open log file.
Different call cases
This entry point is called from each process that make it possible to generated/cancel packing:
. Load preparation button from the shipment management
. Load preparation function from the shipment management
It is called at two levels :
. During the creation of packaging detail line:
In the generation loop of the packaging detail. The loop is carried out on the packaging detail line grid SPACK2 ([M :SPK2]). The [M :SPK2] screen is loaded. The packing detail line is on line in [M :SPK2] indexed to nolign-1. The [F :SPD] buffer is loaded. One is positioned just before writing the [F :SPD] recording.
The header of the package is not yet created. It will not be until after the creation of all the details.
It should be noted that the shipment header buffer [F :SDH] is on-line, shipment detail buffer [F :SDD] linked to the packaging line is not necessarily on line.
. During the cancellation of a load preparation. This cancellation is carried out at two levels :
. When the cancellation button is used.
The delete instruction is about to be carried out SPACK ([F :SPH]) and SPACKD ([F :SPD]) for the current shipment. Therefore the complete deletion of the shipment load preparation has been carried out.
. When using the Save button, just before the generation of the load preparation.
The delete instruction is about to be carried out SPACK ([F :SPH]) and SPACKD ([F :SPD]) for the current shipment. Therefore the complete deletion of the load preparation, if it exists already, has been carried out.
Located just before the detailed packaging generation loop. Only the [M :SPK2] screen is loaded.
To differentiate the two call levels (cancellation of the load preparation, saving a parcel line), it is necessary to use the WPOINT_CODTRT variable. It is set to "C" for the creation and to "A" for the cancellation.
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...). Traditionally, this is the case for the file that contains the header and not the file that contains the lines...
For the tables that are not used in all the processes, the names of the processes that use them are given below:
. FUNPACK: Load preparation function
. SUBSDH: Load preparation button from the shipments
Table |
Process |
Significant content |
Table Title |
SDELIVERY |
Yes |
Shipment header |
|
SDELIVERYD |
No |
Shipment detail |
|
SPACK |
No |
Packaging header |
|
SPACKD |
Yes |
Packaging detail |
|
TABPACKAGE |
No |
Package table |
|
SORDER |
SUBSDH |
No |
Order headers |
SORDERQ |
SUBSDH |
No |
Order line quantities |
SORDERP |
SUBSDH |
No |
Order line prices |
SORDERC |
SUBSDH |
No |
Product / customer orders (contract orders) |
BPARTNER |
SUBSDH |
No |
BP |
BPCUSTOMER |
SUBSDH |
No |
Customers |
BPDLVCUST |
SUBSDH |
No |
Ship-to customers |
BPCUSTMVT |
SUBSDH |
No |
Customer transactions |
SALESREP |
SUBSDH |
No |
Sales representatives |
STOALL |
SUBSDH |
No |
Allocations |
ITMMASTER |
SUBSDH |
No |
Products |
ITMSALES |
SUBSDH |
No |
Products - Sales |
ITMBPC |
SUBSDH |
No |
Products-customer |
ITMFACILIT |
SUBSDH |
No |
Products-site |
ITMMVT |
SUBSDH |
No |
Product - Movements |
TABCUR |
SUBSDH |
No |
Currency table |
FACILITY |
SUBSDH |
No |
Sites |
SPRICLINK |
SUBSDH |
No |
Search sales prices (link) |
PRICSTRUCT |
SUBSDH |
No |
Price list structure |