Customising the Price List Set up for Product Versions

The stock module in Enterprise Management V11 has product version management. A sold product can have several versions in stock.  It is possible for the different product versions to be sold at different prices.

We show how to use the price list set up to handle product versions with different prices. Our price list will show Product—Version--- Price .

This is set up on the “Criteria” tab of the price list set up function, GESSPC.

The tables available for field selection for price list search criteria are as follows:

  • ITMMASTER : Products
  • ITMSALES : Product sales
  • ITMFACILIT : Product site
  • BPPARTNER : Product site
  • BPCUSTOMER : Customers
  • BPCUSTMVT : Cust.transactions
  • BPDLVCUST : Ship to Customers
  • SALESREP : Sales rep.
  • SPRICLINK : Header and footer of the document

 

We select the product field, ITMREF from the table ITMMASTER and the product version field ECCVALMAJ (or ECCVALMIN) from the table SPRICLINK.

However, we get an error message on selecting the product version fields.

This is a built-in restriction by the developers. To work around this restriction we add a custom field to the table SPRICLINK, ZECCVALMAJ as below.

Then we can add it to the price search criteria set up as below.

We need to modify the price search process TRTPRICE to be aware of our custom field ZECCVALMAJ by using a provided entry point, ALIPLK.

We write a short piece of specific code as below and compile it.

ZTRTPRICE.src

$ACTION

Case ACTION

  When "ALIPLK"      : Gosub ALIPLK

Endcase

Return

$ALIPLK

If TRAIT="SOH" then

   [F:SPK]CCVALMAJ=[F:SPK]ZCCVALMAJ

Endif

Return

We then set up our product version prices in GESSPL for our product DIS0016

Creating a sales order shows we can now pick up prices for the different product versions automatically.

 Product version prices.docx