Вы находитесь на странице: 1из 11

10/16/12

Document Display

How To Diagnose Issues With Approved Supplier List And Sourcing Rules In Purchasing [ID 557825.1]
Modified: Jul 3, 2012 Type: TROUBLESHOOTING Status: PUBLISHED Priority: 3

In this Document Purpose Troubleshooting Steps INTRODUCTION TESTCASE INFORMATION DOCUMENTATION PROCESSING OVERVIEW SETUP DIAGNOSTICS IMPORTANT CHECKLIST GENERAL ISSUES AND RELEVANT NOTES LOGGING TRACING DATA AND QUERIES

CODE FILES References

Applies to:
Oracle Purchasing - Version 11.5.4 to 12.0.4 [Release 11.5 to 12] Information in this document applies to any platform. ***Checked for relevance on 12-Apr-2011*** Form:POXSCASL.FMB - Define Approved Supplier List Form:MRPFDDSR.FMB - Define Sourcing Rules Form:MRPFDSRA.FMB - Define Bills of Distribution

Purpose
This document briefly discusses the following: 12345Sourcing Rules setup. Approved Supplier List (ASL) setup. How to troubleshoot and debug the Sourcing Rules and ASL issues. Debugging techniques and references to the important notes. Reference to diagnostics and patches which will be helpful to solve the issues.

Troubleshooting Steps INTRODUCTION


https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71 1/11

Oracle Purchasing allows users to automatically source items from suppliers based on the sourcing rules and purchase agreements. The business needs of sourcing are; Automatically default supplier and pricing information onto requisition lines Source the item from negotiated purchase agreements

TESTCASE INFORMATION
A reproducible testcase is an ideal for understanding the issue fully.Following testcases and questions will help in understanding the issue thoroughly or will provide hints so that those points can be addressed primarily while investigating the issue. Does the issue occur every time or is this with only a specific few orders (intermittent)? Is the Problem reproducible at will or is it specific to only few suppliers' organizations ? Does the issue occur across all organizations? Is the issue exists for new supplier and then trying to implement it first time ? Has this worked before if so what has changed? Is the issue only with requisition created via Requisition Import or with requisition created manually ? Is the issue with Customization or issue exists with core code also ?

DOCUMENTATION
Oracle Purchasing User's Guide covers the functionality discussed here. Following are the pointers to the documentation available in the Metalink. Oracle Purchasing User's Guide, Section-Overview of Automatic Sourcing, Page 5-30 to 5-59 Oracle Manufacturing APIs and Open Interfaces Manual, Volume 1 Release 11i Note 285470.1 ASL Sourcing Whitepaper Note 417966.1 Auto Sourcing And Auto Create/Release Checklist Note 175935.1 ASL Sourcing to Requisitions Setup and Usage Guide

PROCESSING OVERVIEW
Sourcing rule describes which supplier and supplier site while approved supplier list describes pricing details from document and line details of that supplier and supplier site combination. Sourcing rule is mandatory which identifies the supplier and supplier site for the sourcing to happen. Sourcing rule and approved supplier list can be local and global. Once the sourcing rule is identified by sourcing functionality next is to find the source document for that supplier and supplier site combination. Following flowchart explains you how the sourcing functionality works in defaulting the source document.

https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71

2/11

10/16/12

Document Display

It first checks for the Profile option "PO: Automatic Document Sourcing". Consider if the value is set to 'Yes'. This enables Purchasing to default the most recent source documents automatically. If more than one source document is entered, Purchasing uses a blanket purchase agreement over contract and quotation, even if they were created more recently. If there are only blanket purchase agreements or only quotations, Purchasing uses the one that was created most recently. If the Profile PO: Automatic Document Sourcing is set to 'No' then it checks for the ASL setup. Global ASL entries are valid for all inventory organizations. Local ASL entries are specific to a single inventory organization.
https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71 3/11

If two ASL entries exist for the same item or commodity, one Global entry that applies to all organizations and one local entry that applies only to the local inventory organization, the local entry takes precedence. Also if ASL entries exist for the item and category (for which the same item is assigned), item ASL takes precedence over commodity ASL. Below is the matrix, which shows the resulting document, created from the requisitions when it has the following source document. Source Document Quotation Contract purchase order Local BPA Global BPA Resulting Document Standard purchase order Standard purchase order Blanket release Standard purchase order

One can also accomplish an automatic creation of Sourcing Rules, Sourcing Rule Assignments and Approved Supplier List entries during Blanket Agreement approval Submission. The system automatically creates the relevant entries, once the Blanket Agreement is approved.

SETUP
1.Create a Sourcing Rule for the Supplier and Supplier Site combination. Mention the % allocation and Rank. Note: Summation of % allocation against each rank should be 100%, and then only planning Check-box is enabled automatically.

2. Create an Assignment Set for this Organization or Item and list this Sourcing Rule in that Assignment Set (One Assignment Set can be used that will include all of the desired Assignments) 3. Set the Profile - MRP: Default Sourcing Assignment Set to the Assignment Set created in Step 2 4. Create an ASL for the item and add the Supplier and Supplier Site. The Note 285470.1 ASL Sourcing Whitepaper explains the complete setup required for sourcing rule and ASL creation. Note: Make it Global or Local while saving the record under record details tab.

https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71

4/11

10/16/12

Document Display

Matrix showing the precedence detail when multiple ASL records exists for an Item.

Precedence

ASL entries with following combination

First

Supplier,Supplier site ,Local ASL

Second

Supplier,Supplier site ,Global ASL

Third

Supplier ,Local ASL

Fourth

Supplier ,Global ASL

5.Enter the following documents under attribute window i.e Blanket, Quotation and Contract 6. Enter following release generation method. The Note 175935.1 ASL Sourcing to Requisitions Setup and Usage Guide briefly discusses about the ASL setup. a) Automatic Release/Review: Automatically generates releases, but requires a separate step for approval. 'Create Release Program' is used to create releases in this case. b) Automatic Release: Automatically generates approved releases. This choice is not available if encumbrance is turned on. 'Create Release Program' is used to create release in this case. c) Release Using Auto Create: Release is created by the workflow. If requisition line(s) are for a one-time item then the release generation method is not considered and the requisition is a candidate for automatic creation by the CREATEPO workflow. 7. Now cross check the setup manually entering the item in the requisition form and tab out. If the Supplier, Supplier Site and Source details are populated then sourcing setup is working properly. Also refer the Note 187054.1 ASL Sourcing Rule Upgrade Troubleshooting which will help in understanding the setup issue. The Note 275828.1 - First Supplier or Supplier Site Gets Picked up When Using The Same Rank Value On Sourcing Rules -explains the limitations in core purchasing. This ranks and allocation percentages are used by Master Scheduling/MRP to allocate planned orders for their processing.
https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71 5/11

10/16/12

Document Display

8. Setup to automatically create ASL and Sourcing Rules during Blanket Purchase Order approval .More details are covered in Note 273983.1 Ext/Pub Steps Required For Creating ASL and Sourcing Rules From Blanket Po's .Following are the important details to check for. Set the following Profile and PO Approval workflow attributes. Profile Options: PO: Allow Auto-generate Sourcing Rules => CREATE AND UPDATE

PO: Allow Autocreation of Oracle Sourcing Documents => Yes

MRP: Default Assignment Set => Define with desired Assignment Set PO Approval Workflow attribute setup through Workflow Builder: Create Sourcing Rule Flag: "Y" Update Sourcing Rule Flag: "Y" PO SR Rule Name Prefix: "PURCH" - Default Value PO Assignment Type ID for SR: "3 - Item level "

Create a BPA and Submit for approval, in approval window in additional options details choose the appropriate value and submit for approval. Once BPA is approved, check whether ASL and Sourcing Rule created.

DIAGNOSTICS
Following notes are helpful in diagnosing issues, since it shows both processing information and all related data and setup. In order to validate the data which is required to automatically source Item, Supplier, and Source Document details from a Blanket PO or Quotation onto a Requisition refer the Note 296191.1 ASL/Sourcing Diagnostic Guide. This Note also gives the data about setup which is required to automatically create Blanket Releases or Standard POs upon requisition approval. Note 361859.1 Oracle Purchasing Requisition Data Collection Test will provide the details of the requisition which can be analysed for supplier, supplier site and ship to location details. Note 374428.1 How To Troubleshoot a Problem In Procurement Workflows Using Scripts , will provide the diagnostic details for createPO workflow related setup and processing details.

IMPORTANT CHECKLIST
The Note 417966.1 Auto Sourcing And Auto Create/Release Checklist, explains complete checklist for the sourcing and ASL related issues. Following are the important scenario's or the issues with the important checkpoints. 1.When Supplier and Supplier Site not defaulting in requisition, check a. Is the Profile option ' MRP: Default Sourcing Assignment Set ' populated with Correct value? b. What is the value populated in Assign Sourcing Rule for Item, Organization etc correct one? c. Sourcing Effective date is valid? 2. When Source document is not defaulting in the Requisition, check
https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71 6/11

10/16/12

Document Display

a. What is the Profile option Value set 'PO: Automatic Document Sourcing'? b. Is there an approved Global BPA and the Global BPA is enabled in the requesting operating unit? c. Is the sysdate inside source document effective date range? 3.When Create Release program not creating Release,check a. Is the requisition approved? b. Is there a valid BPA assigned to the requisition line(i.e in Source detail)? c. Is the ASL attribute 'Release Generation Method' set to 'Automatic Release/Review' or 'Automatic Release'? 4.When CREATEPO workflow is not creating the desired resulting document, check a. Is the Requisition Approval workflow attribute 'Send PO Autocreation to Background' set to Yes and Workflow Background Process concurrent program run to process the deferred Requisition Approval workflows. or Is the Requisition Approval workflow attribute 'Send PO Autocreation to Background' set to No? b. Is the Create Documents workflow attribute 'Is Automatic Creation Allowed?' set to 'Yes'? c. Is the Create Documents workflow attribute 'Should Contract be used to autocreate Doc?' set to 'Yes'? 5. Automatically Sourcing Rules, Assignments and ASL are not created, once the BPA is approved, check a. Check the value for profile PO: Allow Auto-generate Sourcing Rules and ASL b. If BPA is set as "Archive on Print", this feature cannot be used, one must select "Archive on Approve" to use this feature. c. Process will update existing Sourcing rules only if: -The Blanket purchase order Start and End Dates are not null. -The blanket effective period do not overlap multiple effective periods in the Sourcing Rule. -The process will try to create or update Approved Supplier List entries even if Sourcing Rule creation/update failed for the item -For Exception reporting, run the Purchasing Interface Errors report with a source type of 'ASR - Automatic Sourcing Rule Builder' 6.Attributes in CREATEPO workflow for Generating Release from a BPA: -Is Automatic Creation Allowed? -Should Workflow Create The Release? -Is Automatic Approval Allowed? 7.When approved requisitions are imported through Requisition Import no purchase orders created,check -Autosource_flag value set to 'Y' in PO_REQUISITIONS_INTERFACE_ALL tables - Is Automatic Creation Allowed? (CREATEPO attribute)

GENERAL ISSUES AND RELEVANT NOTES


The following steps explain how this can be useful in investigating possible similar issues:
https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71 7/11

Check any errors or logs related to the issue, and note the code objects and files mentioned. Check the version of these files in the instance exhibiting the problem. Search the patches available for later releases of these files, and match the patch descriptions to the issue encountered. Apply as relevant. To find patches: Visit Metalink > Patches and Updates > Advanced Search > Complete: Product / Release / Platform / Patch / Includes File [Enter file] > Click Go. Some other common known issues and relevant notes: Setup: Note Note Note Note Note Note Process: Note Note Note Note Note Note Note Error: Note 371868.1 Creating an ASL gets the Message Duplicate Supplier/Supplier Site Being Defined For Item Note 434234.1 BPA Cannot Be Submitted For Approval When There Is Multiple ASL Status For Supplier Note 216444.1 POXPOEPO - Receive Error When Trying to Approve a Purchase Order With Items on an ASL FAQ: Note 409053.1 FAQ Auto Document Sourcing Rules Update Options 420433.1 420354.1 237804.1 276315.1 331239.1 262458.1 414624.1 What Are The Setups Necessary To Release An Item From The ASCP in purchasing ? Automatically Create an Approved Release from Min-Max Planning Release 11.5.10 ASL not created when Existing Blanket Lines are updated and Blanket is re approved Unable to Update or Create ASL/Sourcing Rules in Create Document Workflow Contract Defined As Source Document in ASL is Not Defaulting On Requisition Line Sourcing Fails When NeedByDate Is After The Effective Date Of Sourcing Rule Troubleshooting MRP Imported Requisitions That Not Created Into Releases 357432.1 308470.1 175935.1 273983.1 465860.1 332686.1 Requisitions are Not Automatically Autocreated into Purchase Orders Create and Approve a Standard PO Automatically From an Approved Requisition ASL Sourcing to Requisitions Setup and Usage Guide Steps Required For Creating ASL and Sourcing Rules From Blanket PO's Supplier Item Number Does Not Get Updated On ASL Purchase Order Entry Form Not Enforcing Use Approved Supplier Item Attribute

LOGGING
For CREATEPO related issues Wfstatus and workflow Debug file can be further analyzed to find the cause. How to run wfstatus.sql for CREATEPO workflow? Refer to Note 134960.1 Running WFSTATUS and WFRETRY For Oracle Purchasing Workflow How to Workflow debug and trace CREATEPO workflow? Refer to Note 374428.1 How To Troubleshoot a Problem In Procurement Workflows Using Scripts

TRACING
For performance and data related issues, the note Note 170223.1: Trace 11i Bind Variables - Profile Option: Initialization, provides the detailed steps to get the trace with binds. Use the output to check tables and queries mentioned below for performance data and activities performed during execution.

DATA AND QUERIES


Following data higlights important tables and relevant information stored in them.

10/16/12

Document Display

Table name PO_APPROVED_SUPPLIER_LIST

Information Stored Stores the relationship between an item or Commodity; a supplier, ship-to organizations; and approval/certification status. Stores all information for the supplier /item /organization relationship defined in PO_APPROVED_SUPPLIER_LIST. This information is maintained separately to allow each organization to define its own attributes. Stores sourcing references to supply agreements,blanket agreements, and catalog quotations associated with particular suppliers and items in PO_APPROVED_SUPPLIER_LIST Stores the user-defined approval/certification statuses for the ASL. Stores sourcing rule names and descriptions.Define Sourcing Rule form populates this table. Stores Sourcing Assignment Sets and stores the assignment of sourcing rules respectively

PO_ASL_ATTRIBUTES

PO_ASL_DOCUMENTS

PO_ASL_STATUSES MRP_SOURCING_RULES

MRP_ASSIGNMENT_SETS and MRP_SR_ASSIGNMENTS

The following script provides the CREATEPO workflow attributes check for relevant attributes referring to 'IMPORTANT CHECKLIST' section. SLC NM,TX_EAL,TMTP EET AE ETDFUTIE_YE FO W_TMATIUE RM FIE_TRBTS WEENM ='UORAEDC; HR AE ATCET_O' The following script provides the following ASL details for a Supplier.To find out PO_ASL_ATTRIBUTES.ASL_ID go to 'Approved Supplier List' window, Hl-Dansis>Eaie ep>igotc- xmn Bok ALSPLES lc: S_UPIR Fed:ALI il S_D SLC ALP_S_TRBTSALI,P_S_TRBTSUIGOGNZTO_D EET L OALATIUE.S_D OALATIUE.SN_RAIAINI, P_S_TRBTSCETO_AE P_S_TRBTSDCMN_ORIGMTO, OALATIUE.RAINDT, OALATIUE.OUETSUCN_EHD P_S_TRBTSRLAEGNRTO_EHD OALATIUE.EES_EEAINMTO, P_S_TRBTSPRHSN_NTO_ESR, OALATIUE.UCAIGUI_FMAUE P_S_TRBTSVNO_IEI,P_S_TRBTSPIEUDT_OEAC, OALATIUE.EDRST_D OALATIUE.RC_PAETLRNE P_EDR.EDRNM,P_PRVDSPLE_ITALSAU_D OVNOSVNO_AE OAPOE_UPIRLS.S_TTSI, P_PRVDSPLE_ITDSBEFA OAPOE_UPIRLS.IAL_LG FO P_S_TRBTS P_EDR,P_PRVDSPLE_IT RM OALATIUE, OVNOS OAPOE_UPIRLS WEEP_S_TRBTSALI=ALI HR OALATIUE.S_D&S_D AD(P_S_TRBTSVNO_DP_EDR.EDRI) N (OALATIUE.EDRI=OVNOSVNO_D AD(OALATIUE.S_DP_PRVDSPLE_ITALI); N P_S_TRBTSALI=OAPOE_UPIRLS.S_D) The following script will show the following Supplier-Item attributes for an ASL entry.Check if the document is valid and the correct source document is used.
https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71 9/11

10/16/12

Document Display

SLC ALP_S_OUET.S_D P_S_OUET.SN_RAIAINI, EET L OALDCMNSALI, OALDCMNSUIGOGNZTO_D P_S_OUET.OUETTP_OE P_EDR_L.EMN1 OALDCMNSDCMN_YECD, OHAESALSGET, P_IE_L.IENM P_EDR_L.TTSLOU_OEFO P_S_OUET, OLNSALLN_U, OHAESALSAU_OKPCD RM OALDCMNS P_EDR_L,P_IE_L WEEP_S_OUET.S_D&S_DAD OHAESAL OLNSAL HR OALDCMNSALI=ALI N (P_S_OUET.OUETHAE_DP_EDR_L.OHAE_D AD (OALDCMNSDCMN_EDRI=OHAESALP_EDRI) N (OALDCMNSDCMN_IEI=OLNSALP_IEI); P_S_OUET.OUETLN_DP_IE_L.OLN_D) For the same ASL_ID (i.e for the same Supplier and Site combination, there are two ASL entries i.e Global (USING_ORGANIZATION_ID = -1) and Local (USING_ORGANIZATION_ID = XXX). The following script provides the following Sourcing Rule details.Check for the sourcing effective date and sourcing status. To find out SOURCING_RULE_ID go to "Sourcing Rules" window , Hl-Dansis>Eaie ep>igotc- xmn Bok MPSUCN_UE lc: R_ORIGRLS Fed:SUCN_UEI il ORIGRL_D SLC ALMPSUCN_UE.ORIGRL_D EET L R_ORIGRLSSUCN_UEI, MPSUCN_UE.ORIGRL_AE R_ORIGRLSSUCN_UENM, MPSUCN_UE.RAIAINI,MPSUCN_UE.ECITO, R_ORIGRLSOGNZTO_D R_ORIGRLSDSRPIN MPSUCN_UE.TTS MPSUCN_UE.ORIGRL_YE R_ORIGRLSSAU, R_ORIGRLSSUCN_UETP, MPS_EEP_R.FETV_AE MPS_EEP_R.IAL_AE R_RRCITOGEFCIEDT, R_RRCITOGDSBEDT, MPS_OREOGSUC_RAIAINI,MPS_OREOGVNO_D R_RSUC_R.OREOGNZTO_D R_RSUC_R.EDRI, MPS_OREOGVNO_IEI,MPS_OREOGSUC_YE R_RSUC_R.EDRST_D R_RSUC_R.ORETP, MPS_OREOGALCTO_ECN,MPS_OREOGRN R_RSUC_R.LOAINPRET R_RSUC_R.AK FO MPSUCN_UE,MPS_EEP_R,MPS_OREOG RM R_ORIGRLS R_RRCITOG R_RSUC_R WEEMPSUCN_UE.ORIGRL_D2 HR R_ORIGRLSSUCN_UEI= AD(MPSUCN_UE.ORIGRL_DMPS_EEP_R.ORIGRL_D N (R_ORIGRLSSUCN_UEI=R_RRCITOGSUCN_UEI) AD(R_RRCITOGS_EEP_DMPS_OREOGS_EEP_D) N MPS_EEP_R.RRCITI=R_RSUC_R.RRCITI); The following script provides the details of an Assignment Set .Check if the assignment of the sourcing rule to the item is correct and the same sourcing rule is defined in the 'MRP: Default Assignement Set'.To find out ASSIGNMENT_SET_ID go to 'Sourcing Rules' window, Hl-Dansis>Eaie ep>igotc- xmn Bok ASGMN_ES lc: SINETST Fed:ASGMN_E_D il SINETSTI SLC ALMPASGMN_ESASGMN_E_AE EET L R_SINETST.SINETSTNM, MPS_SINET.SINETTP,MLSSE_TM_.EMN1 R_RASGMNSASGMN_YE T_YTMIESBSGET, MLSSE_TM_.ECITO,MPS_SINET.ORIGRL_YE T_YTMIESBDSRPIN R_RASGMNSSUCN_UETP, MPSUCN_UE.ORIGRL_AEFO MPSUCN_UE, R_ORIGRLSSUCN_UENM RM R_ORIGRLS MPS_SINET,MLSSE_TM_,MPASGMN_ESWEE R_RASGMNS T_YTMIESB R_SINETST HR MPASGMN_ESASGMN_E_D2 AD R_SINETST.SINETSTI=1 N (MPASGMN_ESASGMN_E_DMPS_SINET.SINETSTI) (R_SINETST.SINETSTI=R_RASGMNSASGMN_E_D AD(R_RASGMNSSUCN_UEI=R_ORIGRLSSUCN_UEI) N MPS_SINET.ORIGRL_DMPSUCN_UE.ORIGRL_D AD(R_RASGMNSIVNOYIE_DMLSSE_TM_.NETR_TMI) N MPS_SINET.NETR_TMI=T_YTMIESBIVNOYIE_D AD(R_RASGMNSOGNZTO_DMLSSE_TM_.RAIAINI); N MPS_SINET.RAIAINI=T_YTMIESBOGNZTO_D)

CODE FILES
This process utilizes the following code files which can be checked for versions and later fixes; The CreatePO workflow. This has Internal Name: CREATEPO and comes from Workflow File Name: poxwfatc.wft https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71
10/11

10/16/12

poxwfatc.wft Concurrent Program: PORELGEN - Create Releases POXSRCDB.pls is an important procedure which performs automatic document sourcing based on item/item category, supplier/supplier site, and profile option settings Other Important Files need to be checked: PORELGES.pls, POXWATCB.pls , POXVDCKB.pls, POXSCASL.fmb, MRPFDSRA.fmb, MRPFDDSR.fmb To find patches: Visit Metalink > Patches and Updates > Advanced Search > Complete: Product / Release / Platform / Patch / Includes File [Enter file] > Click Go.

References
NOTE:175935.1 - ASL Sourcing to Requisitions Setup and Usage Guide NOTE:262093.1 - Unable To Create Local Approved Supplier List Through PDOI NOTE:285470.1 - ASL Sourcing Whitepaper NOTE:417966.1 - Auto Sourcing And Auto Create/Release Checklist BUG:4351203 - RELEASE IS NOT GETTING CREATED FOR ''RELEASE USING AUTOCREATE''

https://support.oracle.com/epmos/f aces/ui/km/SearchDocDisplay .jspx?_adf .ctrl-state=187zm516cj_71

11/11

Вам также может понравиться