Import/export template > Module Common Data > Import/export template SPL (Sales price lists) 

Price lists are defined by a structure code and a list number. They consist of a header and several lines.
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.

Prerequisite

Operation

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.
SEEINFO If the import line number is zero, it is a creation.

Other prerequisites

Tables to be completed

The following tables are used by the function. Their content must be updated if necessary :

Table

Table description

SPRICFICH [SPF]

Customer prices (records)

SPRICLIST [SPL]

Customer price lists

Mandatory fields in the template

In file SPRICLIST, criteria are grouped in a single element PLI.
In the template, they must be separately defined in the global variables.

  • Criterion 1 = GIMP(1).
  • Criterion 2 = GIMP(2).
  • Criterion 3 = GIMP(3).
  • Criterion 4 = GIMP(4).
  • Criterion 5 = GIMP(5).

A specific variable is assigned to each criterion.

SEEWARNING These correspondences must not be swapped.

Error messages

The only error messages are the generic ones.

Tables used

This template can be used in import and export modes. The data is updated in the following tables :

Table

Table description

BPARTNER [BPR]

Business partner

BPCUSTMVT [MVC]

Customer transactions

BPCUSTOMER [BPC]

Customers

BPDLVCUST [BPD]

Ship-to customer

ITMFACILIT [ITF]

Products-sites

ITMMASTER [ITM]

Products

ITMSALES [ITS]

Products - sales

PRICSTRUCT [PRS]

Price structure (cust/supp)

SALESREP [REP]

Sales rep

SORDER [SOH]

Sales orders - header

SORDERP [SOP]

Sales orders - price

SORDERQ [SOQ]

Sales orders - quantities

SPREASON [SPR]

Sales price list reasons

SPRICCONF [SPC]

Customer pricing parameters

SPRICFICH [SPF]

Customer prices (records)

SPRICLIST [SPL]

Customer price lists

TABCUR [TCU]

Currency table

TABUNIT [TUN]

Table of units of measure