Price List API

I am uploading price list using price list API QP_PRICE_LIST_PUB.PROCESS_PRICE_LIST into the ERP system(11.5.10.2). For 900 records the custom program is taking about 2 Days. I generated the trace file for this program. In that file there is one SQL statement which is not present in my custom code so it must be in API. Below is the part of the that trace file for the statement.
SELECT CONCATENATED_SEGMENTS
FROM
MTL_SYSTEM_ITEMS_VL WHERE INVENTORY_ITEM_ID = TO_NUMBER(:B2 ) AND
ORGANIZATION_ID = :B1
call count cpu elapsed disk query current rows
Parse 1 0.02 0.01 0 0 0 0
Execute 21481699 303.60 272.41 0 0 0 0
Fetch 21481698 539.50 686.48 45149 150371886 0 21481698
total 42963398 843.12 958.90 45149 150371886 0 21481698
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 44 (recursive depth: 2)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 45149 0.51 163.59
latch free 562 0.03 1.99
From this file I want to know that how much time it is actually taking? Along with this please suggest any other way to find the reason for poor performance of program.
Please any one help me out.

I went through the metalink doc
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=371375.1
Note is telling about a parameter p_check_duplicate_lines. I am not able to find it in the API (QPXPPRLB.pls 115.14.11510.3).
In the API I have following parameters
PROCEDURE Process_Price_List
( p_api_version_number IN NUMBER
, p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
, p_return_values IN VARCHAR2 := FND_API.G_FALSE
, p_commit IN VARCHAR2 := FND_API.G_FALSE
, x_return_status OUT VARCHAR2
, x_msg_count OUT NUMBER
, x_msg_data OUT VARCHAR2
, p_PRICE_LIST_rec IN Price_List_Rec_Type :=
G_MISS_PRICE_LIST_REC
, p_PRICE_LIST_val_rec IN Price_List_Val_Rec_Type :=
G_MISS_PRICE_LIST_VAL_REC
, p_PRICE_LIST_LINE_tbl IN Price_List_Line_Tbl_Type :=
G_MISS_PRICE_LIST_LINE_TBL
, p_PRICE_LIST_LINE_val_tbl IN Price_List_Line_Val_Tbl_Type :=
G_MISS_PRICE_LIST_LINE_VAL_TBL
, p_QUALIFIERS_tbl IN Qp_Qualifier_Rules_Pub.Qualifiers_Tbl_Type :=
G_MISS_QUALIFIERS_TBL
, p_QUALIFIERS_val_tbl IN Qp_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type :=
G_MISS_QUALIFIERS_VAL_TBL
, p_PRICING_ATTR_tbl IN Pricing_Attr_Tbl_Type :=
G_MISS_PRICING_ATTR_TBL
, p_PRICING_ATTR_val_tbl IN Pricing_Attr_Val_Tbl_Type :=
G_MISS_PRICING_ATTR_VAL_TBL
, x_PRICE_LIST_rec OUT Price_List_Rec_Type
, x_PRICE_LIST_val_rec OUT Price_List_Val_Rec_Type
, x_PRICE_LIST_LINE_tbl OUT Price_List_Line_Tbl_Type
, x_PRICE_LIST_LINE_val_tbl OUT Price_List_Line_Val_Tbl_Type
, x_QUALIFIERS_tbl OUT Qp_Qualifier_Rules_Pub.Qualifiers_Tbl_Type
, x_QUALIFIERS_val_tbl OUT Qp_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type
, x_PRICING_ATTR_tbl OUT Pricing_Attr_Tbl_Type
, x_PRICING_ATTR_val_tbl OUT Pricing_Attr_Val_Tbl_Type
Also this parameter is used to prevent the duplicate check so will it affect in the case of price break if I have two similar price break lines to be uploaded with different prices (As a negative test case)?

Similar Messages

  • Error in price list API to Update PLL: "QP_ITEM_NOT_VALID"

    Hi,
    while updating the OM price lists lines using the API QP_PRICE_LIST_PUB.Process_Price_List, I am getting following error message for some of the items : "QP_ITEM_NOT_VALID".
    I tried updating the price manually for these errored items from front end and it gets successfully updated.
    I checked the error on google and metalink but could not find anything.
    Need help in this regard.
    Thanks
    Imran

    Hi Imran
    Sorry if I am asking you to check same thing - but this would be responsible in 90% cases:
    Order Management -> Setup -> System Parameters -> Values
    For your operating Unit, search for the organization name against "Item Validation Organization"
    In this organization, check your item. Make sure that item is "Active" in this organization.
    Please confirm results after this.
    Regards
    Varun

  • Price List API Parameters.

    Hi all,
    I need to work on a API thats called QP_PRICE_LIST_LINE_UTIL.INSERT_ROW( PARAMETER).
    To updated end_date and start_date for the price list.
    Can you please let me know how to enter parameter for this QP_PRICE_LIST_LINE_UTIL.INSERT_ROW
    Thanks in Advance.

    Demos of how to create and use IN, OUT, and IN OUT parameters can be found here:
    http://www.psoug.org/reference/procedures.html

  • Adding Price List lines in exising Price List

    Hi All,
    I have a requirement to create some price list, which i am doing it through PROCESS PRICE LIST API. Now as per our next phase, i need to insert new lines in that same price list.
    Is there any API throught which i can achieve this.
    Thanks
    Aryan

    Same API Aryan - you can do update, insert and delete with it: look at some of the worked examples in the api guide, on MOS and in the scripts pre-loaded in $QP_TOP.
    Regards,
    Jon

  • DI API - Goods Receipt (OIGN) - HOWTO Set Price List ?

    Hi everyone,
    I want to create a Goods Receipt Document via DI API
    Documents doc = (Documents)cmp.GetBusinessObject(BoObjectTypes.oInventoryGenEntry);
    I set doc.DocDate of the document header,
    and doc.Lines.ItemCode, doc.Lines.Quantity of document lines
    In some cases, SAP does not allow me to add the document, namely when an item does not have a price...
    In SAP GUI there is a possibiliy to set a price list (instead of "Last Purchase Price")
    the related field in Database (OIGN) is "GroupNum"
    My question is now - How can i set this variable "GroupNum" via DI API? Documents contains no property for doing this??
    (I already looked at SDK Docu relating GetItemPrice, PriceLists but i didnt really found what i m looking for).
    Best regards

    Are you serious ?
    They use this property to change the Price List of a Goods Receipt ?
    I mean I understand that this is a Marketing Document but the lack of a property for disctinct values like Price List
    is not that good.

  • Using API  to run Catalog Bulk Load - Items & Price Lists concurrent prog

    Hi everyone. I want to be able to run the concurrent program "Catalog Bulk Load - Items & Price Lists" for iProcurement. I have been able to run concurrent programs in the past using the fnd_request.submit_request API. But I seem to be having problems with the item loading concurrent program. for one thing, the program is stuck on phase code P (pending) status.
    When I run the same concurrent program using the iProcurement Administration page it runs ok.
    Has anyone been able to run this program through the backend? If so, any help is appreciated.
    Thanks

    Hello S.P,
    Basically this is what I am trying to achieve.
    1. Create a staging table. The columns available for it are category_name, item_number, item_description, supplier, supplier_site, price, uom and currency.
    So basically the user can load item details into the database from an excel sheet.
    2. use the utl_file api, create an xml file called item_load.xml using the data in the staging table. this will create the xml file used to load items in iprocurement and save it in the database directory /var/tmp/iprocurement This part works great.
    3. use the api fnd_request.submit_request to submit the concurrent program 'Catalog Bulk Load - Items & Price Lists'. This is where I am stuck. The process simply says pending or comes up with an error saying:
    oracle.apps.fnd.cp.request.FileAccessException: File /var/tmp/iprocurement is not accessable from node/machine moon1.oando-plc.com.
    I'm wondering if anyone has used my approach to load items before and if so, have they been successful?
    Thank you

  • PRICE LIST LINE을 DELETE 하는 SAMPLE API

    제품 : MFG_QP
    작성날짜 : 2006-05-23
    PRICE LIST LINE을 DELETE 하는 SAMPLE API
    ========================================
    PURPOSE
    Price List Lines을 delete 할 수 있는 API가 있는지 알아보고 그 사용방법
    을 이해한다.
    Explanation
    아래 설명하는 script는 Price List Lines 만을 delete 하는 sample API
    script 이므로 고객사의 business needs에 맞게 고객사에서 script를 수정하
    여 사용하여야 한다.
    Oracle은 QP_LIST_LINES table에 있는 created_by, creation_date 등을 이용
    하여 관련된 records를 읽을 수 있는 cursor를 생성하영 사용할 것을 권장한
    다.
    QP_LIST_LINES table의 list_line_id를 읽어 delete를 위해
    qpr_price_list_line_tbl에 전달한다.
    참고로 각 1000이 반복될때 마다 commit 하는것을 권한다.
    /*$Header: QPPLXMP3.sql 115.3 2001/11/19 18:15:32 pkm ship $*/
    Sample script which deletes an existing Price List line and the product
    information for the line (Product Information is stored in pricing
    attributes table in product attribute columns).
    This sample price list does not have any qualifiers or price breaks or
    non product-information type of pricing attributes.
    This script must be modified by the user such that the
    qpr_pricing_attr_tbl(J).product_attr_value column is populated with a valid
    inventory_item_id from the instance where this script is run. Also, other user variables are noted within arrows, <>.
    Please read the Oracle Pricing User guide (Appendix A & B) to understand
    the flexfields and seed data.
    -- set environment variables
    set serveroutput on size 1000000
    set verify off
    set feedback off
    set echo off
    set autoprint off
    set arraysize 4
    set pagesize 58
    set term on
    set underline =
    set linesize 100
    declare
    gpr_return_status varchar2(1) := NULL;
    gpr_msg_count number := 0;
    gpr_msg_data varchar2(2000);
    gpr_price_list_rec QP_PRICE_LIST_PUB.Price_List_Rec_Type;
    gpr_price_list_val_rec QP_PRICE_LIST_PUB.Price_List_Val_Rec_Type;
    gpr_price_list_line_tbl QP_PRICE_LIST_PUB.Price_List_Line_Tbl_Type;
    gpr_price_list_line_val_tbl QP_PRICE_LIST_PUB.Price_List_Line_Val_Tbl_Type;
    gpr_qualifiers_tbl QP_Qualifier_Rules_Pub.Qualifiers_Tbl_Type;
    gpr_qualifiers_val_tbl QP_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type;
    gpr_pricing_attr_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Tbl_Type;
    gpr_pricing_attr_val_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Val_Tbl_Type;
    ppr_price_list_rec QP_PRICE_LIST_PUB.Price_List_Rec_Type;
    ppr_price_list_val_rec QP_PRICE_LIST_PUB.Price_List_Val_Rec_Type;
    ppr_price_list_line_tbl QP_PRICE_LIST_PUB.Price_List_Line_Tbl_Type;
    ppr_price_list_line_val_tbl QP_PRICE_LIST_PUB.Price_List_Line_Val_Tbl_Type;
    ppr_qualifiers_tbl QP_Qualifier_Rules_Pub.Qualifiers_Tbl_Type;
    ppr_qualifiers_val_tbl QP_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type;
    ppr_pricing_attr_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Tbl_Type;
    ppr_pricing_attr_val_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Val_Tbl_Type;
    K number := 1;
    j number := 1;
    begin
    oe_debug_pub.initialize;
    oe_debug_pub.setdebuglevel(5);
    Oe_Msg_Pub.initialize;
    DBMS_OUTPUT.PUT_LINE('Debug File = ' || OE_DEBUG_PUB.G_DIR||'/'||
    OE_DEBUG_PUB.G_FILE);
    --dbms_output.put_line('after get price list ');
    /* setup the list_header rec for update */
    gpr_price_list_rec.list_header_id := <price_list_header_id>;
    gpr_price_list_rec.name := <price_list_name>;
    gpr_price_list_rec.list_type_code := 'PRL';
    gpr_price_list_rec.description := '<price_list_description>;
    gpr_price_list_rec.operation := QP_GLOBALS.G_OPR_UPDATE;
    -- delete the price list line rec
    gpr_price_list_line_tbl(K).list_header_id := <price_list_header_id>;
    gpr_price_list_line_tbl(K).list_line_id := <price_list_line_id>;
    gpr_price_list_line_tbl(K).list_line_type_code := 'PLL';
    gpr_price_list_line_tbl(K).operation := QP_GLOBALS.G_OPR_DELETE;
    --dbms_output.put_line('before process price list ');
    QP_PRICE_LIST_PUB.Process_Price_List
    ( p_api_version_number => 1
    , p_init_msg_list => FND_API.G_FALSE
    , p_return_values => FND_API.G_FALSE
    , p_commit => FND_API.G_FALSE
    , x_return_status => gpr_return_status
    , x_msg_count => gpr_msg_count
    , x_msg_data => gpr_msg_data
    , p_PRICE_LIST_rec => gpr_price_list_rec
    , p_PRICE_LIST_LINE_tbl => gpr_price_list_line_tbl
    , p_PRICING_ATTR_tbl => gpr_pricing_attr_tbl
    , x_PRICE_LIST_rec => ppr_price_list_rec
    , x_PRICE_LIST_val_rec => ppr_price_list_val_rec
    , x_PRICE_LIST_LINE_tbl => ppr_price_list_line_tbl
    , x_PRICE_LIST_LINE_val_tbl => ppr_price_list_line_val_tbl
    , x_QUALIFIERS_tbl => ppr_qualifiers_tbl
    , x_QUALIFIERS_val_tbl => ppr_qualifiers_val_tbl
    , x_PRICING_ATTR_tbl => ppr_pricing_attr_tbl
    , x_PRICING_ATTR_val_tbl => ppr_pricing_attr_val_tbl
    IF ppr_price_list_line_tbl.count > 0 THEN
    FOR k in 1 .. ppr_price_list_line_tbl.count LOOP
    dbms_output.put_line('Record = '|| k ||
    'Return Status = '|| ppr_price_list_line_tbl(k).
    return_status);
    END LOOP;
    END IF;
    IF gpr_return_status <> FND_API.G_RET_STS_SUCCESS THEN
    RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
    END IF;
    dbms_output.put_line('after process price list ');
    for k in 1 .. gpr_msg_count loop
    gpr_msg_data := oe_msg_pub.get( p_msg_index => k,
    p_encoded => 'F');
    dbms_output.put_line('err msg ' || k ||' is: ' || gpr_msg_data);
    null;
    end loop;
    EXCEPTION
    WHEN FND_API.G_EXC_ERROR THEN
    gpr_return_status := FND_API.G_RET_STS_ERROR;
    -- Get message count and data
    --dbms_output.put_line('err msg 1 is : ' || gpr_msg_data);
    WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
    gpr_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
    --dbms_output.put_line(' msg count 2 is : ' || gpr_msg_count);
    for k in 1 .. gpr_msg_count loop
    gpr_msg_data := oe_msg_pub.get( p_msg_index => k,
    p_encoded => 'F');
    -- Get message count and data
    dbms_output.put_line('err msg ' || k ||' is: ' || gpr_msg_data)
    null;
    end loop;
    WHEN OTHERS THEN
    gpr_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
    -- Get message count and data
    --dbms_output.put_line('err msg 3 is : ' || gpr_msg_data);
    end;
    commit;
    --- exit;
    Reference Documents
    Note 362667.1

    Name: Chris Mentch
    Region: US/Americas
    Contact E-mail: chris.mentch at mentchconsulting.com
    Website: http://www.mentchconsulting.com
    Time working with BC: 1.5+ years
    Programming Languages: PHP, JSP, Javascript, Ruby/RoR, Jquery, .Net (if I have to), SOAP API
    Custom BC Client Applications: Integrating custom external applications with Business Catalyst through eCommerce and CRM APIs.
    Name: cindy radford
    Region: Americas Canada
    Contact E-mail: [email protected]
    Website: http://.com
    Logo: Link to your logo image (no larger than BC standard partner image, I will place this at the top of your listing)
    Time working with BC: new
    Programming Languages: Cobol and mainframe, starting web development
    Third Party API Experience: Cobol
    Custom BC Client Applications: None as of yet
    Name: eBridgeConnections
    Region: Americas, APAC, Europe, Africa
    Contact E-mail: [email protected]
    Website: http://www.ebridgeconnections.com
    Logo: http://www.ebridgeconnections.com/images/ebhome/logo.png
    Time working with BC: 1.5 years
    Programming Languages: n/a - Back-office integration with 40+ accounting/ERP systems
    Third Party API Experience: 20+ eCommerce platforms, CRM (SalesForce)
    Custom BC Client Applications: B.C. API integration
    Name: OneSaas (www.OneSaas.com) - Cloud Integrations Made Easy
    Contact E-mail: [email protected]
    Website: http://www.onesaas.com
    Time working with BC: 2 yeras
    Third Party API Experience: We integrate over 35 cloud platforms with BC. We know every API from almost every system.

  • Missing Functionality - Price List on BOM Header via DI API

    short: Cannot access Price List (oitt.pricelist) OR Show BOM components (oitt.showcomp) fields from SDK or DTW on BOM Header.
    longer: issue where we are creating Bills of Material using the DI API. We are unable to fill the Price List on the header (oitt.pricelist) via the DI API. This does not affect functionality of the BOM or any production orders created from the BOM. However it is a problem when we try to rollup prices using Update Parent Item Prices Globally. This utility is looking for the relevant price list in the Bill of Material Header and thus ignoring all of our items that were created via the DI API.

    Are you serious ?
    They use this property to change the Price List of a Goods Receipt ?
    I mean I understand that this is a Marketing Document but the lack of a property for disctinct values like Price List
    is not that good.

  • Is there an API or Open Interface to convert Price Lists?

    Hi,
    Is there an API or Open Interface to convert Price Lists?
    What are the additional setups needed to do implement Price Lists ?
    Im new to Advnaced Pricing and Order Managment.
    Thanks and Regards,
    MPH

    There is the Price List Setup API (QP_Price_List_PUB.Process_Price_List) which you'll find details for in the Order Management APIs manual and the Price List Bulk Loader which is detailed in the QP user guide plus there's lots of good info and example scripts on My Oracle Support.
    Apart from qualifying your price list header as per your business requirement (in other words, restricting its use to particular OUs, customers, products, order types etc.), in the simplest case the price list itself can be just a simple list of discrete items with their associated prices. However, you may also need to consider:
    <li> Multicurrency - do you want to have multiple price lists, one for each currency, or one price list in a base currency with multicurrency conversions in the background? (the latter being much the easiest to maintain).
    <li> Is your business requirement best served by pricing by discrete inventory item codes? by item categories? by pricing attributes? (this being the mapping of some properties of your data to a named pricing attribute, the value being collected from a lookup, entered at order entry, or derived via custom PL/SQL),
    <li> Consider using secondary price lists if this allows your pricing information to be structured better
    <li> Do you intend to enter a fixed value against each price list line or to calculate a price by way of a dynamic or static formula?
    Regards,
    Jon

  • Intercompany and Key Mapping Price List

    Hi expert,
    I have the Intercompany Add-ON version 2.0.8.30 installed on a SAP Business One 9.0 PL15 for 4 localization:
    Head Office (H000): IT
    Branch 001 (B001): FR
    Branch 002 (B002): DE
    Branch 003 (B003): CH
    This is the scenario:
    I started two weeks ago without Key Mapping the Price List because the first choice was that to use different price lists for each country.
    Now, I need to replicate the H000 price lists in new created rice List in each brench.
    We created new Price lists named "ZZ IT 01", "ZZ IT 02" and so on and we Key Mapped them.
    Here the screenshot for Key Mapping:
    Problem is that:
    NO REPLICATION APPENS!
    The Mapping was created 1 week ago but NO syncronization appened...
    So, the question is: How I can syncronize the Price Lists?
    thanks in advance,
    Jonny Cortonicchi

    Hi ,
    In ABAP API also you can retrieve key mapping of main table records using function 'MDM_API_RETR_CLIENT_SYS_KEYS'.
    You will get details of this function in sap library or ABAP API documentation provided by SAP.
    For any further queries kindly reply.
    Regards,
    Neethu Joy

  • Price List for multiple company

    Hi,
    since we all know that there is a screen to list the last purchase price list while creating a new document,...
    i have a requirement to list last purchase price for the item from different company database....
    Assume that i have same master in 2 different company database
    can any one suggest me in doing this....

    hi Frank,
    Thanx for ur reply...
    I have created the Addon for SAP BO and i had acheived the requirement... here i have one more doubt while doing this... i had listed out the number of companies availble in the SAP BO by using getcompanylist DI API....
    the problem is if i give the user id and password of SA.. its retriving me the values... if not its returning zero record count.. what to do for this.... i cant force the client to give user id and password of SA while installing the add on... i am in a deeper trouble for that... could u please give me some valid suggestion so that i can implement it in the add on...
    next Q: is there any way to put the values inthe system matrix which is non editable...
    this Q is not that much priority since i had achieved the requirement other way round by having user defined matrix ... but if i get the way for this it will help my add on performance much better...
    thanx in advance

  • Price List Setup - R12

    Hello Friends,
    I am trying to setup a Price List ( in a new R12 instance, not a R12 VISION instance ).
    When with Responsibility "Oracle Pricing Manager", I click on Price List Setup, I get a message - Pricing APIs are not available for Basic Pricing installation.
    I checked all profiles, setups etc but not able to find a fix for this. Any help will be really appreciated.
    Thank you

    It is illegal to share the contents of Metalink notes.
    Please make sure that Advanced Pricing product is licensed from OAM.
    - Login to OAM
    - Navigate to Site Map > License Manager (under System Configuration) > License Manager
    - Click on "Products"
    - Select "License Applications Product"
    - Click on "Continue"
    More details about OAM can be found in the following manuals.
    Oracle Applications Maintenance Procedures
    http://download.oracle.com/docs/cd/B40089_09/current/acrobat/r12adproc.pdf
    Oracle Applications Maintenance Utilities
    http://download.oracle.com/docs/cd/B40089_09/current/acrobat/r12adutil.pdf
    To verify the status of the product, run the following SQL and make sure it returns (I: Installed).
    SQL> select qp_util.get_qp_status
    from dual;

  • How to set price list to use in a Document

    Hi all,
    I have a simple question. I'm trying to insert a draft document into SAP B1 via DI API. I can't seem to find the correct property to set in order to change the price list to use for that draft.
    Example: The price list in the Supplier BP is 'Price List 01' and I want to change it only for the current document to 'Price List 02'.
    Can you guys help me?
    Thanks.
    Edited by: Pedro Magueija on Aug 28, 2009 6:11 PM
    Edited by: Pedro Magueija on Aug 28, 2009 6:41 PM

    That's too bad, since it is possible to do it in SAP B1.
    OK, but since I can only change the price for the item, line by line is it possible to force a .UnitPrice = 0 and .PriceAfterVAT = 100.00?
    The reason I ask is, the document I'm trying to insert get's it's prices from a source where only VAT included prices are present. So instead of the unit price, I want to set the price after VAT and have SAP B1 calculate the unit price.
    I set the BP default price list to a list where no prices are defined, and it works. But has you can imagine, when doing a document in SAP B1 this will cause it to set the prices to 0 on the lines, and the users might get angry at it.
    So if you guys have any ideas on how to go around this some other way, please do tell.
    Thanks in advance.

  • How to get price list line id for service contract line(subline)

    Does some one know how to find a price list line id for service contracts line (sub line)?
    There is actually a column in table okc_k_lines_b which is called price_list_line_id, but it looks like it is never used (all columns values are NULL). I have tried to investigate reprice API's which are used in contracts authoring form, but they are too huge and it didn't lead to nay result. There is a way (bad hack), by calling OKS_QP_INT_PVT.COMPUTE_PRICE it is possible to get price list line id by which contract line is priced, it would be kina fine if I would need to find line id for some rows, but it wont work for thousands!
    Is there some proper way how could I get price list line id by which is service contract line priced?

    Hi,
    Check out the following query that gets the price_list_id on subline_level and more.
    The price_list_Id is stored as a rule.
    SELECT
    chd.contract_number
    , par.party_number
    , par.party_name
    , ldf.pas_nummer
    , ldf.pas_houder     
    , rh.object1_id1 hdr_price_list_id
    , rsl.object1_id1 sl_hdr_price_list_id
    , pld.parkeerterrein
    , msi.segment1
    , sit.description
    FROM
    okc_k_headers_b chd
    , okc_k_lines_b clt
    , okc_k_lines_b cls
    , okc_k_lines_b_dfv ldf
    , okc_k_items cit
    , okc_rule_groups_b rgh
    , okc_rules_b rh
    , okc_rule_groups_b rgt
    , okc_rules_b rtl
    , okc_line_styles_b lst
    , okc_rule_groups_b rgs
    , okc_rules_b rsl
    , okc_line_styles_b lss
    , qp_list_headers_b plh
    , qp_list_lines pll
    , qp_list_lines_dfv pld
    , qp_pricing_attributes pat
    , mtl_system_items_b msi
    , mtl_system_items_tl sit
    , hz_cust_accounts cac
    , hz_parties par
    WHERE
    rgh.chr_id = chd.id
    AND rh.rgp_id = rgh.id
    AND rh.jtot_object1_code = 'OKX_PRICE'
    AND cac.cust_account_id = rtl.object1_id1
    AND par.party_id = cac.party_id
    AND clt.chr_id = chd.id
    AND clt.lse_id = lst.id
    AND lst.lty_code = 'SERVICE'
    AND rgt.cle_id = clt.id
    AND rtl.rgp_id = rgt.id
    AND rtl.jtot_object1_code = 'OKX_CUSTACCT'
    AND cls.cle_id = clt.id
    AND cit.cle_id = cls.cle_id
    AND cit.jtot_object1_code = 'OKX_SERVICE'
    AND cls.lse_id = lss.id
    AND lss.lty_code = 'COVER_ITEM'
    AND cls.id = rgs.cle_id
    AND rgs.id = rsl.rgp_id
    AND rsl.jtot_object1_code = 'OKX_PRICE'
    AND plh.list_header_id = rsl.object1_id1
    AND plh.list_header_id = pll.list_header_id
    AND pll.rowid = pld.row_id
    AND pat.list_header_id = pll.list_header_id
    AND pat.list_line_id = pll.list_line_id
    AND cit.object1_id1 = pat.product_attr_value
    AND cit.object1_id2 = chd.authoring_org_id
    AND msi.inventory_item_id = cit.object1_id1
    AND msi.organization_id = cit.object1_id2
    AND sit.inventory_item_id = msi.inventory_item_id
    AND sit.organization_id = msi.organization_id
    AND sit.language = userenv('LANG')
    AND cls.rowid = ldf.row_id
    Hth,
    Martin
    Edited by: mvdons on 4-sep-2008 2:13

  • Oralce Price List - Order Management

    Hi,
    I am using OE_ORDER_PUB api to create Sales Order. I am loading all the data i the CUSTOM table and executing this api to create Sales Order. System successfully creating Sales Order. But, system is picking Sales Price from the price list used.
    From the Sales Order form i can override the Selling price, i.e., plus or minus of the value in the price list price. But, how can i do the same using api. i am populating the all the values of the Line.
    unit_selling_price
    unit_selling_price_per_pqty
    unit_list_price
    unit_list_price_per_pqty
    I don't know the setup which is allowing to override the Selling price from the form.
    Thanks & Regards,
    --Prasanth                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Prasanth,
    If you want OM to use your price instead the price defined in price list, set the field calculate_price_flag to 'N' or 'P'. If it is set to N or P, OM will not override the price you defined and will not apply any modifiers. However, if it is set to P, OM will allow you to add freight charges during shipping.
    Regards,
    Ketter Ohnes

Maybe you are looking for