Skip to end of metadata
Go to start of metadata

Purpose

The purpose of this page is to clarify the system logic on how the source is defined and determined.

Overview

1.General Information
2.
Source Determination Hierarchy
3.Manual vs Automatic Source determination
4.Program names: Source Determination

1. General Information

The purpose of Source Determination is to make it possible for a Purchase Requisition to be assigned a Source of Supply  If a possible source for a requested material exists in the system, you can:  - let the system find and assign the source to the requisition automatically or  - select from a list of possible sources during manual Purchase Requisition creation in transaction ME51N .          

2. Source Determination Hierarchy

The system assigns requisitions and purchase orders on the basis of the following sourcing information:
The Source determination hierarchy is as follows:

  • Quota arrangement  

The quota arrangement specifies the portion of the total requirement of a material that is to be assigned to a specific source over a certain period.

The system assigns a quota rating to each source of supply. The quota rating is calculated as follows:

Quota-allocated quantity + Quota base quantity ------------------------------------------------------------- = Quota rating Quota

-Quota-allocated quantity

= Total quantity from all purchase requisitions, purchase orders, release orders, and scheduling agreement schedules allocated to a given source of supply. (The quantities of quota-allocated planned orders are also taken into account.)

-Quota base quantity

= Quantity used to control the quota arrangement when new sources of supply are included.

-Quota

= A number specifying which portion of a total requirement should be obtained from a certain source.

The source with the lowest quota rating represents the valid source, even if it has a quota rating of 0 (that is, the quota-allocated quantity and the quota base quantity have the value 0). If more than one source of supply has a quota rating of 0, the item with the highest quota is the valid source of supply. 

According to the formula, the following applies: The higher the quota, the lower the quota rating and the higher the likelihood that the relevant source will be determined as the valid source.

  • Source List

In the source list, you specify which source of supply is valid for a certain period. A "source" may be a vendor, a supplying plant, an outline agreement, or an info record..  You can define a preferred source of a material (for example, a vendor) as "fixed". The system will then suggest this source from the source list. You can maintain Source Lists in ME01 transaction.

  • Outline Agreement

Existing outline agreements represent possible sources for a material. If a requisition is assigned to an outline agreement, the system can generate a release order or scheduling agreement delivery schedule on the basis of the terms and conditions of the outline agreement.  

  • Info record

If a purchasing info record exists for the requested material, it also represents a possible source of supply. The prices and conditions in the info record are suggested when you create an order with reference to the assigned requisition.

Regular vendor flag in Info record

Specifies that the material is to be procured from this vendor at client level, i.e. for the entire corporate group.

f you set this indicator, the regular vendor is suggested as the only source.

If you wish to work with the source determination facility for purchasing documents, it makes sense not to set the indicator so that the system suggests all available sources, not just the regular vendor.

If you try to enter a different vendor than the regular vendor in the source list or quota arrangement, the system will issue a warning message.

If the regular vendor should be considered by the system there must also be a flag set in the customizing (Purchasing -> Source Determination -> Define Regular Vendor).

Important: Once a valid Source of Supply is found the system will stop searching.  In the colde (Field Erfolg = X  where Erfolg is the German for Sucess).

3. Manual vs Automatic Source determination

Purchase Requisition Creation Indicator (EBAN-ESTKZ) determins the SourceHirearchy. This is checked in the Purchase Requisition.

Path: ME52/3N -> Select Item - GoTo – Statistics – General Administritive data – Creation Indicator

  • Manual Source Determination  


 Creation Indicator: R
 Quota Arrangement
 Source List
 Outline Agreement  (List Propossed)
 Info Record             (List Propossed)
 Regular Vendor                   
  •  Automatic Source Determination

 MRP, SD, PP, PS etc..
 Creation Indicators B, V, F
 Quota Arrangement and Source list only!

The required prerequisites for the automatic source determination in the requirements planning are as follows:

  • A valid source list entry for this material
  •  If the source list contains more than one valid entry, NONE of these entries is taken into account up to and including Release 4.0B. As of Release 4.5A, one of the entries is selected, however, you cannot forecast which one of these entries it is (for example, it is not always the first entry in the source list!).
  • The 'Source list usage in materials planning and control' indicator must be set to '1' or '2' ('2' if delivery schedules are meant to be generated).
  •   If you have an outline agreement with special procurement (for example, subcontracting or consignment), you must have entered the corresponding special procurement key in the material master of the corresponding material.

Exceptions to the Automatic Source Determination rule:
Please use the above as the general rule for Automatic Source determination, but for SD, PP, and PS there is a special case. If a Quota Arrangement or Source List is not found then the system will search for an Outline Agreement, only if one Outline Agreement exists will it be set as a Source of Supply, if more than one is found then Source Determination fails. If no single Outline Agreement is found the system searches for a single Info Record, if more are found Source Determination fails as it can not choose between them. This  is considered a special case as it is very rare for a single Outline Agreement or Info Record to exist for a material, so generally the Source Determination will stop after Quota Arrangement and Source List.

4. Program names: Source Determination     

Main Program SAPMM06B

Include - MM06BF0B_BEZUGSQUELLE_3
Function  ME_SEARCH_SOURCE_OF_SUPPLY

Translation of program names:

  FORM BEZUGSQUELLE_SUCHEN. (Source of Supply Search)
   PERFORM mpn_check.                
   PERFORM quotierung.                            …Quota Arrangement
   PERFORM orderbuch.                            … Source List
   PERFORM pstyp.                                   ….(not relevant)
   PERFORM leistungs_lieferanten.           …(Service vendor,only for service issue)
   PERFORM vertraege.                            …Outline Agreements
   PERFORM infosaetze.                           …Info Records
   PERFORM umlagerungswerke.             …Plants for Stock Transfer
   PERFORM vertraege_ohne_material.   …Outline Agreements without Material
   PERFORM regellieferant.                      …Regular vendor
   PERFORM vertragsreferenz.               …Reference to an outline agreement

Description of some important programs:

  • FORM mpn_check

                         search for assigned MPN-Materials with function module MB_SEARCH_HTN_MATERIAL          

  • FORM quotierung
  • FORM orderbuch

                         FORM search_orderbuch: search for a valid entry in source list

                         FORM Get_Orderbuch: table NORD contains source list entries                      

                         FORM Orderbuchpflicht_Setzen: field Orderbuchpflicht

                        is the indicator ‘source list requirement’, system checks, if there’s source list requirement for plant or material master

                        FORM Check_Global_Orderbuch: system checks the ‘blocked source of supply’, field NORD-NOTKZ

                       NORD-EBELN contains the agreement of the source list, the header of the agreement is checked in FORM Kontrakt_Kopf_Lesen, in Kontrakt_Pos_Lesen.The  field Vertrag_Ok is filled,                        if the agreement is ok.

FORM vertraege

            FORM Vertraege_Mit_Mat_Selektieren delivers the agreements in Table LEKPO

            FORM vertrag_bearbeiten checks all the LEKPO-entries, the valid entries are copied into table LORD

FORM infosaetze

            System looks for valid inforecords (as well, if valid agreements exists).

            Field Erfolg is not populated in PERFORM vertraege.

            Function module ME_EINA_READ_WITH_MATNR delivers table LEINA  with all the possible inforecords

            Form Prefetch_Eine_Lesen , FORM infosatz_bearbeiten appends the valid entries of table LEINA  (PEINA) to Table LORD

FORM umlagerungswerke

            only for item category ‘U’ (stock transfer),  the possible plants are selected and copied into internal table marcs

            FORM umlagerwerk_pruefen checks the entries in marcs  

           FORM lord_eintrag_reswk appends the possible plants for stock transfer to table LORD

FORM vertraege_ohne_material

            Search for agreements without material, keep the data in table LEKPO

            PERFORM vertrag_bearbeiten checks all the LEKPO-entries, the valid

            entries are copied into table LORD

FORM regellieferant

Only processed, if one of the indicator Comim-Bzqhl or t001w-bzqhl (Take regular vendor into account) is set. If the indicator is set, the regular vendor will be suggested as source of supply. The regular vendor is maintained in the inforecord (field EINA-RELIF). System checks, if there’s an entry in table LORD for the regular vendor; If yes, all other entries are deleted from table LORD, the remaining entry is copied into structure SATZ

User-exit for source determination: EXIT_SAPLMEQR_001

FORM dialog_aufnahme gernerates the popup with all sources, the data of the selected source is copied into SATZ

FORM Exporting_Search

Exporting Structure COMEX  for Source of Supply is poulated with the content of SATZ.