Product library management · Part 3

Updating a Product Library from a Retailer's Planogram

A retailer sends you a planogram. Some of its products are already in your library, some are new to you, and its tray and case sizes may fill gaps in your records. This guide takes what you need from it, the new products and the dimensions your library is missing, without losing your own IDs, codes and classifications.

Best done with Spanner AI

Each step is simple, but they have to happen in the right order, with the right code in the right place. Spanner AI knows the steps, checks the planogram's key field before it matches anything, asks you before it changes your library, and tells you what changed after each step. Read this guide once to understand the process, then ask Spanner AI to do it.

For example, ask:
  • "Open this planogram, match its products to my soft drinks library and tell me which ones are new."
  • "Bring in my classifications for the matched products, but keep the planogram's dimensions."
  • "Add the retailer's codes to Matches for every product."
  • "Give the new products their barcodes as IDs, then add them to my library."
  • "Fill in any dimensions my library is missing from this planogram, without changing what it already has."

The steps at a glance

  1. Open the planogram and let Spanner keep the retailer's codes in Retailer ID and Retailer UPC.
  2. Check the key field and the barcodes, so you know which column holds the real barcode.
  3. Match it to your library and bring in your IDs and classifications, keeping the planogram's dimensions.
  4. Keep the retailer's codes in Matches, so their next planogram and their sales data find your products.
  5. Give the new products your IDs, if your library's IDs are barcodes.
  6. Add the new products to your library.
  7. Fill the gaps in the products you already had: only what your library is missing.
  1. InputRetailer's planogramPSA file
  2. Steps 1–2Open and checkKey field, barcodes
  3. Steps 3–4MatchYour IDs, retailer's codes kept
  4. Steps 5–6New productsAdded to your library
  5. Step 7Fill gapsOnly what's missing
  6. ProductionYour product libraryYour codes kept

Before you start

  • A product library with barcodes, such as one built as in Part 1.
  • A way to match on the barcode. The planogram's IDs are the retailer's codes, so products are matched on their barcode instead, in one of two ways:
    • An interface keyed on the barcode. Map your library's barcode column to UPC, and under Custom Commands click Add Custom Commands and type key UPC. Map ID, Matches, the dimensions and your classifications too.
    • Your usual interface, matching on ID, if your library's IDs are the barcodes, as in Part 1. Then do step 5 before step 3, so the planogram's products take their barcodes as IDs first.
    Spanner AI can set up either for you.
  • For a planogram whose UPC holds the retailer's own code (see step 2), a classification holding the real barcode, such as Real UPC. To key on it, use a second interface: map your library's barcode column to Real UPC instead of UPC, and type key Real UPC.
  • Spanner 2.5.1.1 or later, and for Spanner AI the Read Files and Write Files permissions.
Spanner 2.5.1.1 added what this guide relies on: interfaces keyed on a classification such as Real UPC can export as well as import, codes can be copied into Matches in one step, the Fill gaps export, and leaving out packs without counts. The guide assumes you're familiar with Using a Product Library.

Each step in detail

1. Open the planogram

Open the planogram file. When Spanner asks, let it convert the planogram and copy the codes into Retailer ID and Retailer UPC. These classifications keep the retailer's codes exactly as they were, whatever happens to ID and UPC in the steps that follow.

2. Check the key field and the barcodes

Most planograms are keyed on ID, with the real barcode in UPC. Some retailers, such as Morrisons and Waitrose, key on UPC instead, so UPC holds their own code. Spanner notes this in the document's comments: open Edit › Edit Document and look under Comments for PSA key field: UPC or PSA key field: UPC + ID. No note means the key is ID.

  • Keyed on ID: the barcode is in UPC. Barcodes in planograms often lose their leading zeros or check digits, so check a few against your library first; Spanner AI can fix them for you.
  • Keyed on UPC: add a Real UPC classification and fill it with each product's barcode, from a list the retailer gives you, or by asking Spanner AI to match products to your library by description. Then use your interface keyed on Real UPC, or Real UPC in place of UPC in step 5.

With an interface keyed on the barcode, a product with no barcode can't be matched, and Spanner leaves it out of the exports in steps 6 and 7, so it can't create a duplicate in your library.

3. Match it to your library

Open the product library window with Interface › Product Library › your library › Open. In the filter between the buttons (see Choosing what's copied), untick the Physical group, then click Update at the top to update the existing products in Spanner.

Each product the library has, matched on its barcode (or on ID, if you did step 5 first), takes your library's ID, Matches and classifications. It keeps the planogram's dimensions, because they're what the retailer built the planogram with. The products that weren't matched are new to you, and still carry the retailer's codes.

4. Keep the retailer's codes in Matches

Run the Copy Product Strings automation command with Automation › Enter Automation Command:

Parameter 1Retailer ID for most retailers; Retailer UPC for a planogram keyed on UPC.
Parameter 2Matches.

Each product's retailer code is added to its Matches, never replacing the codes already there. When you send the products to your library in steps 6 and 7, the codes go with them, so this retailer's next planogram and their sales data find your products. Edit › Undo takes the codes off again.

5. Give the new products your IDs

The new products still have the retailer's code as their ID, and that's the ID they'd have in your library. If your library's IDs are barcodes, as in Part 1, give the new products theirs first. The easiest way is to ask Spanner AI. To do it yourself, run the Merge Many Products automation command, as described in Part 1, with Parameter 1 UPC (or Real UPC) and Parameter 2 Pad14, ID. Every product with a barcode gets it as its ID, and its old ID, the retailer's code, moves to Matches. The products matched in step 3 have their barcode as ID already, and any two products with the same barcode become one. If you're matching on ID, you've done this before step 3.

6. Add the new products

In the product library window, choose New on the left to list the products that aren't in your library, check them, then click Export new, the button with the star. Only products your library doesn't have are added; nothing already there is changed.

7. Fill the gaps

For the products your library already had, click Fill gaps, the export button with two bars and an arrow between them, below Update:

  • a unit, tray, case or other pack your library hasn't got is written whole, with its counts;
  • any other value, such as a size or a classification, is written only where your library's is blank;
  • everything your library already has stays as it is, including its ID, its barcode and its dimensions;
  • the retailer's codes are added to Matches.
Use Fill gaps, not Update, unless you trust the planogram more than your library. Update writes every value you've mapped, replacing your library's dimensions with the retailer's. With an interface keyed on the barcode it also writes the planogram's ID, so only use it after step 3, when the matched products carry your library's IDs.

Packs without counts

Retailers' planograms often give a tray or case size but no count, and Spanner shows a missing count as 1. Exported as it is, your library would get a tray holding one unit. So from Spanner 2.5.1.1, an export leaves out a pack a product hasn't really got:

  • a unit, tray, case or other pack with a dimension of 0;
  • a tray, case or other pack with a count of 1 that's at least one and a half times the size of the unit.

Two units can't fit in less than twice the space of one, so a pack about the size of the unit really does hold one, such as a 24-pack of beer sold as a single unit, with the same unit, tray and case. Its count of 1 is written. A bigger pack's count was never given, so the pack is left out whole: your library keeps its own, and a new product is added without it.

In the product library window this is the tick box with a box icon, just above the export buttons, ticked each time the window opens (see Missing packs). Exports from the menus, automations and Spanner AI always leave these packs out, unless the interface has the custom command Write Missing Packs. Spanner AI tells you how many products had a pack left out, so you can find their counts.

The automation commands

To repeat the process with each new planogram, save these commands as an automation in Tools › Settings › Automation, or ask Spanner AI to run them. Your interface is the one keyed on UPC, or on Real UPC for a planogram keyed on UPC.

StepCommandParameter 1Parameter 2
3Product Libraryyour interfaceImportMatched
4Copy Product StringsRetailer ID or Retailer UPCMatches
5Merge Many ProductsUPC or Real UPCPad14, ID
6Product Libraryyour interfaceExportNew
7Product Libraryyour interfaceExportFillGaps
In an automation, step 3 brings in every field the interface maps, dimensions included, because there's no filter to untick. To keep the planogram's dimensions, use a second interface for step 3 that maps only ID, the barcode, Matches and your classifications.

What comes next

Repeat this with each planogram a retailer sends you. Between planograms, keep the library current from market data, as in Part 2, Keeping a Product Library Up to Date.

For the rest of the work with a retailer's planograms, from coding and sales data to sending a PSA back, see Using Retailers' Planograms.

Want help with retailers' planograms?

We can set up the interfaces and automations with you, so each new planogram updates your library in minutes.

Email us Book a Demo