Skip to main content

Knowledge Center

SAR Optimize

Abbreviations used in this topic
  • SSA (Goods reception which are used to store goods in stock)

  • SOA (Purchase order response, which is a purchase order that has been confirmed and is a part of supplier backlog. This is to be understood as goods that are to be received in to stock in the future)

  • SPO (Purchase order, which is a part of supplier backlog. This is to be understood as goods that are to be received in to stock in the future)

  • PWO (Production work order, which is used for manufacturing products in-house. In this documentation PWO means each and one material in the kit structure of a PWO)

  • COA (Sales order, which is a sales order that has been acknowledged by the selling company)

  • SAR (Stock assignment register, which keeps the assigned links between Stock/Supplier backlog and Purchase work order/Sales order

  • DelDate (Delivery Date. The day a Sales order should be shipped out of the warehouse or material should be ready for a Production work order)

  • KitStartDate (This is a calculated date for each material in the kit structure of a PWO. It is set equal to the date the OPR (Operation) it is linked to should start)

  • PUR (The application used for creating SPO)

  • ART (The archive of products)

  • S&D (Ship & Debit)

  • SQU (Purchase quote)

  • BREF (The base Reference for calculating GM (Gross Margin) in a COA

  • REQ (Requested Date)

  • CONF (Confirmed Date)

  • FIFO (First In - First Out, a principle for selling out/using the oldest stock first)

The purpose of the the SAR Optimize batch is to link PWO and COA to goods in the most optimized order. The program will try to achieve that these get links to SSA, SPO and SOA which fulfill their DelDate. The COAs and PWOs that are going to be delivered first will get the 'best' links etc. 'Best links' is understood as closer to Stock in time, -the better.

SAR and linking in general

The links between PWO/COA and SSA/SOA/SPO are stored in SAR. If there is not enough goods available in stock or supplier backlog, the PWO and COA will be linked to 'Pending'. This will generate a purchase need that is visible in the PUR application.

Step 1 Recalculate DelDate

As a pre-step for optimizing SAR, the program will check whether Delivery Date in SAR for PWO links is correct calculated. If it is not, it will be recalculated as KitStartDate - x days. X is a number of days set up as a margin in the Company settings (CSV) application. Can be found and updated with the DeliveryAndRequestDateMarginDays setting in the Company settings (CSV) application.

Step 2 Stock Assignment Window

This step is optional, the setting Margin for SalesLeadTime Assignment Window, that can be found in the Company settings (CSV) application, must be given a value, and at least one of the settings Use Assignment Window for Sales Order (COA) or Use Assignment Window for Production Work Order (PWO) must be turned on. The Assignment Window is defined as Standard lead time of product plus the margin set in the Margin for SalesLeadTime Assignment Window setting.

The purpose of step two in the SAR Optimization Batch is to ensure that only sales/production order items with delivery date inside the Assignment Window are linked to stock and purchase orders. Sales/production order items with delivery date outside of the Assignment Window are linked to PENDING, and these items are marked in Stock Assignment Register to prevent Step 3 of the SAR Optimize Batch to link the order to stock or purchase order.

Step 3 Optimize links

This step runs as default for PWO, COA is optional. If it should run for COA as well, the setting Sales Order (COA) included in the Assignment Register Optimize job in the Company settings (CSV) application must be turned on. This documentation assume this setting is on.

Find products that should be optimized

The requirements for a product to be optimized are:

  1. Class must have a value before 'V' in the alphabet but not 'KM'. In practice this means ordinary parts/material/kits and not service or cost products.

For these products, the program will the check whether there exists COA or PWO that are candidates for re-linking to better links.

The requirements for COAs and PWOs to be a candidate are:

  1. Linked to SPO, SOA, PWO or PENDING. (If linked to stock they are not candidates as stock is defined as the 'best link' one can get)

  2. Must be active. This means that status must be >1 and <9

  3. Production is not started for a PWO (Means status must not be 5,7 or 8)

  4. Picking process is not started

  5. The SAR links are not blocked for re-linking (locked links)

  6. SAR links are not defined as outside of the assignment window

  7. SAR is not set up with access only for a specific customer

  8. COA does not have a special structure

  9. COA are not linked to a non-S&D SQU in BREF. PWO is not linked to a non-S&D SQU in KITSQUID

  10. Not linked to any other goods than ordinary purchase, production, replacement from supplier or by-product from supplier

Based on these claims the program builds a list of all products found that are matching the criteria above. The job optimize one and one product and loops through all candidates that could get a better link. When there are no more links to optimize for this product, the program starts with the next and continues with the same procedure until there are no more products left in the list.

This is described in  2 - Find COAs and PWOs that are candidates for optimization.

Find COAs and PWOs that are candidates for optimization.

The program finds all COAs and PWOs from first product in the list described in 1 - Find products that should be optimized.

The candidates are sorted by DelDate in ascending order to ensure that the ones that should be delivered first will get the best links.

After sorting on DelDate, the priority sorting for optimization is as follows:

  1. COA which is linked to Pending

  2. COA which is linked to SPO, sorted descending by REQ in SPO

  3. PWO which is linked to 'Pending'

  4. COA which is linked to SOA without CONF, sorted descending by REQ in SOA

  5. PWO which is linked to SPO or SOA without CONF, sorted descending by REQ in SPO/SOA

  6. COA which is linked to SOA with a CONF, sorted descending by CONF in SOA

  7. PWO which is linked to SOA with a CONF, sorted descending by CONF in SOA.

The program has now built a list of documents that should be optimized within one product.

Relinking

The next step is to try to relink to the 'best link' for COAs and PWOs in the list described in 2 -  Find COAs and PWOs that are candidates for optimization.

The preferred links for PWO are in prioritized order:

  1. SSA with free quantity, sorted ascending by Date of the SSA

  2. SSA which are linked to COA/PWO with a DelDate which is later, sorted ascending by Date of the SSA

  3. SOA/PWO with CONF and free quantity, sorted ascending by CONF. CONF in SOA/PWO must be earlier than CONF in the existing link for the PWO

  4. SOA/PWO with CONF and which is linked to COA/PWO with a later DelDate, sorted ascending by CONF. CONF in SOA/PWO must be earlier than CONF in the existing link for the PWO

  5. SPO with free quantity, sorted ascending by REQ. REQ on SPO must be earlier than REQ in the existing link for the PWO

OR

  1. SOA/PWO without CONF, but with free quantity, sorted ascending by REQ. REQ in SOA/PWO must be earlier than REQ in the existing link for the PWO

  2. SPO which is linked to COA/PWO with a later DelDate, sorted ascending by REQ. REQ in SPO must be earlier than REQ in the existing link for the PWO.

OR

  1. SOA/PWO without CONF, which are linked to COA/PWO with a later DelDate, sorted ascending by REQ. REQ in SOA/PWO must be earlier than REQ in the existing link for the PWO.

The preferred links for COA  are in prioritized order:

  1. SSA with free quantity, sorted ascending by Date of the SSA

  2. SSA which are linked to COA/PWO with a DelDate which is later, sorted ascending by Date of the SSA

  3. SOA/PWO with CONF and which is linked to COA/PWO with a later DelDate, sorted ascending by CONF. CONF in SOA/PWO must be earlier than CONF in the existing link for the COA

  4. SOA/PWO without CONF, but with free quantity, sorted ascending by REQ. REQ in SOA/PWO document must be earlier than REQ in the existing link for the COA

  5. SOA/PWO without CONF which are linked to COA/PWO with a later DelDate, sorted ascending by REQ. REQ in SOA/PWO must be earlier than REQ in the existing link for the COA

  6. SPO with free quantity, sorted ascending by REQ. REQ in SPO must be earlier than REQ in the existing link for the COA

  7. SPO which is linked to COA/PWO with a later DelDate, sorting ascending by REQ. REQ in SPO must be earlier than REQ in the existing link for the COA.

If the SSA/SPO/SOA/PWO that is found has enough free quantity, the COA/PWO will be delinked from its current SAR link and relinked to the new.

If the SSA/SPO/SOA/PWO that is found has not enough free quantity, the optimize program will first delink existing links for COA/PWO to increase free quantity. Then the COA/PWO will be delinked from its current SAR link and relinked to the new.

If the existing link is for a PWO with CONF and the setting Production Work Order (PWO) do not try to keep confirmed delivery date if an assignment is swapped is turned ON in the Company settings (CSV) application, or a COA with CONF and the setting Sales Order (COA) reassigned by assignment register job if confirmed date is fulfilled is turned ON, the batch will only delink it if it can find enough free qty to fulfill the need of the PWO/COA in prioritized order:

  1. SSA, sorted ascending by Date

  2. SOA/PWO with CONF that is earlier than CONF at the mainlevel of the PWO/COA, sorted ascending by CONF

Otherwise the COA/PWO which was delinked to increase free quantity in the SSA/SOA/SPO/PWO document will be linked to PENDING and added to the list described in 2 -Find COAs and PWOs that are candidates for optimization.

This COA/PWO will now be handled during a later iteration of the relinking process described in 3 - Relinking.

If a product is set up with SubQty, the optimize batch will only relink COA to quantity that is multiple with SubQty. This rule does not apply for PWO.

Step 4 Optimize Stock according to FIFO principle

This step runs as default for PWO, COA is optional. If it should run for COA as well, the setting Sales Order (COA) included in the FIFO step for Optimize job in the Company settings (CSV) application must be turned on. This documentation assume this setting is on.

The purpose of this step is to ensure that the oldest stock is used or shipped out first.

Find products that should be optimized

The first thing the FIFO step does is to find which products that are candidates for being relinked.

The requirements for a product to be relinked are:

  1. Product is to be found in SSA with free quantity

    or

  2. Product is to be found in SSA which is linked to PWO/COA

    and

  3. Picking process has not yet started

  4. LinkLock is not set in SAR

  5. The stock is not of type special structure

  6. Stock is not reserved for a specific customer

  7. Stock is not returned to supplier for repair

  8. Delivery date is not outside of the Assignment Window

  9. The product is not excluded from autorelinking

Find Stock that should be optimized

When all products that should be optimized in this step is found, the program work with one and one product at a time an build a list the SSAs that can be optimized.

The SSAs are sorted descending by Date. Means that the oldest stock is handled first.

ReLinking

The PWO or COA with the earliest DelDate should link to the oldest goods first. The relinking starts with the first SSA in the list described in 2 - Find SSAs that should be optimized. The program searches for PWO/COA that are linked to other SSA with a newer Date.

The PWO/COAs that are found are sorted ascending by DelDate and are handled one by one. If any of them have an earlier DelDate than the PWO/COA that is already linked to the SSA that is handled, the program delink this and link a COA/PWO with an earlier DelDate to the SSA. The COA/PWO that got delinked will then be added to the list of COA/PWO that will be handled in the Next iteration according to its DelDate.

If a product is set up with SubQty, the FIFO step will only relink COA to quantity that is multiple with SubQty. This rule does not apply for PWO.

Summary

PWO and COA which are relinked by the FIFO step will still have link to goods in stock, but the link might be changed to a different SSA.