All lists for a given price code have lines based on the same structure. The validity dates are linked to the list and are the same for every line.
The main OBJect is automatically detected with the main key corresponding to the price code and the list number.
The details lines are detected according to two criteria in this order:
1. Search with the line number if it is set up and assigned.
If the line exists, it is modified otherwise it is created.
This line number assigned during creation, may be unknown. It is less suitable for line modification.
2. Search with the import line number IMPNUMLIG if it is set up and assigned.
If the line exists, it is modified otherwise it is created.
This line number is not specified during price creation. It is incremented during price import and enables to keep a reference number. If the import line number is zero, it is a creation.
The following tables are used by the function. Their content must be updated if necessary :
Table | Table description |
---|---|
SPRICFICH [SPF] | |
SPRICLIST [SPL] | Customer price lists |
In file SPRICLIST, criteria are grouped in a single element PLI.
In the template, they must be separately defined in the global variables.
A specific variable is assigned to each criterion.
These correspondences must not be swapped.
This template can be used in import and export modes. The data is updated in the following tables :
Table | Table description |
---|---|
BPARTNER [BPR] | |
BPCUSTMVT [MVC] | Customer transactions |
BPCUSTOMER [BPC] | |
BPDLVCUST [BPD] | |
ITMFACILIT [ITF] | |
ITMMASTER [ITM] | |
ITMSALES [ITS] | |
PRICSTRUCT [PRS] | |
SALESREP [REP] | |
SORDER [SOH] | |
SORDERP [SOP] | Sales orders - price |
SORDERQ [SOQ] | Sales orders - quantities |
SPREASON [SPR] | |
SPRICCONF [SPC] | |
SPRICFICH [SPF] | |
SPRICLIST [SPL] | Customer price lists |
TABCUR [TCU] | |
TABUNIT [TUN] |