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

Similar Messages

  • 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)?

  • 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

  • Error in Price List

    Hi EveryOne,
    When Creating Price List In MasterData in Easy Access iam facing a problem,the navigation is as follows
    EasyAccess-MasterData-PriceList-Create PriceList.
    After assigning all the field in the price list there is a error displayed "No BusinessPartner with Billing Data was Determined".
    Iam unable to over come with this Problem.
    Suggestions will be Appreciated .
    Regards .
    Ram.

    Ram, please mark this topic as solved so it can be used by others. You can close this topic by assigning points. For more details have a quick look at this weblog underlining the importance of assigning points and reusability... https://weblogs.sdn.sap.com/pub/wlg/732. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Thanks, Tiest.

  • Price List table not updated

    Hi All,
    I am facing a strange problem like below
    Say I have an item called "A"
    In "Base price" A's value is 100
    In  "sales price" A's value is 150.
    Now in "Period and Volume Discounts" for "A", for "Sales Price" there is following details in "Volume discounts for price list"
    For quantity 50 discount is 10   Special price   90
    For quantity 100 discount is 20  Special price   80
    For quantity 200 discount is 30   Special price  70
    Now if i select * from SPP2;
    it shows these values.
    But if i change the base price for A, or Sales price for A, all values get changed but in SPP2 it is not reflected!
    Regards,
    Sarkar R

    Hi
    have you ticked Automatic check for this item and this price in the special prices (discount for period)?
    Kind regards.
    Agustí

  • Previous figures before updating the price list

    Dear all,
    How do you get a previous price in the price list that is updated recently?.  i.e. the status of a price list on a given date?
    thanks
    SV Reddy

    You can try the AIT1 table. But it does not contain the date of the price change.

  • 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

  • Price List and Last Purchase Price.

    When a Price List based on the Last Purchase Price is created, we have found that a set of problems arise in companies using u201CGoods Receipt POu201D.
    EXAMPLE:
    Every article received from their suppliers are enclosed with a GOODS RECEIPT.
    After 20 days, the supplier issue an invoice including all the Goods Receipts provided during the corresponding month.
    Recall that the company has a List Price based on the Last Purchase price.
    But, since the Goods Receipt do not update the Last Purchase Price, all new articles in the database, are kept without a Selling Price, and the old articles are not subject to an updated Selling Price.  I enclose a draft to show this behavior.
    [http://s2.subirimagenes.com/privadas/previo/thump_1047037compraitem.jpg]
    You may note that SAP HELP explains:
    1.In addition, two price lists are automatically created and calculated by the system:
        - Last purchase price list u2013 the price list is automatically updated when an item enters the stock with its entering price.
        - Last evaluated price list u2013 the price list is automatically updated after you run the Inventory Valuation report.
    [http://s2.subirimagenes.com/privadas/previo/thump_1047038help-sap-b1-2007a.jpg]
    But this does not happen.
    Selling Prices are only updated when the corresponding invoice is entered, but this happen too late, since the invoice issued 20 days after by the supplier.
    In other words, it does not work properly for the company.   The example shows:
    1 Goods Receipt PO
    2 Item master data with Price calculated alter Goods Receipt processing
    3 base Price driven to zero.
    If Goods Receipts do not update the last Purchase, is not easy to understand why a Selling Price can be based in the Las Purchase Price.
    Our customer and me, think that there is a programming error.
    Otherwise, the system behavior has not be properly explained to SAP users.
    The described facts happen with SAP 2007A PL 49, and SAP 8 PL 5, both versions properly tested
    That we need:  That Goods Receipt update the last purchase Price and Price List could be constructed don Item bases cost.

    Hi Dana,
    I'm not sure if this will solve your problem, but, you can create a new price list which is based on the "Last Purchase Price" and set as a factor of 1.65. I'm not sure if the "Last Purchase Price" updates from the Goods Receipt or the PO though?
    Does this sound like it might solve your problem?

  • HOW TO IMPORT PRICE LIST?

    Dear friends.
    i am facing problem in importing price list,can u plz help me.
    1)i have made price list for certen items , that is ok with factor 1
    2)now i wants to update this price list through DTW
    3)but as per SAP templete i am anable to update it.
    4)i have  doubt that, will it update prices,because in temple there is no price as such.
    mahesh.

    It's much easier to use the built in SAP Business One Import from Excel from the Administration Menu.
    Use the following procedure.
    Regards,
    David
    Pricelist Export/Import
    Price List Export Files
    When exporting files from Excel to use as imports for update ensure that there is no header and there are only columns Item No./Pricelist/Price and Currency.  The Currency should comply with the standard SAP currency codes (GBP/USD/EUR, etc.).  Save the file as type Text (Tab delimited).  Use this file as per Importing Pricelists above.
    Exporting Price Lists for update
    Use this script:
    SELECT T0.[ItemCode], T0.[PriceList], T0.[Price], T0.[Currency] FROM ITM1 T0 where t0.pricelist = '[%0]'
    Select the Price List NUMBER at the prompt. Send this to XL.  In XL, amend the columns Price and Currency as required.  Depending on the Pricelist which is to be updated amend the column Pricelist to the NUMBER of the Pricelist as defined in the leftmost column on the Pricelist screen (Stock management/Price Lists/Price Lists.
    If updating the same Price List as that exported the column Pricelist should already be populated with the correct number.
    When exporting files from Excel to use as imports for update ensure that there is no header and there are only columns Item No./Pricelist/Price and Currency.  The Currency should comply with the standard SAP currency codes (GBP/USD/EUR, etc.).  Save the file as type Text (Tab delimited).  Use this file as per Importing Pricelists above.
    Importing Pricelists
    Administration/Data Import/Export/Import from Excel
    Data Type to Import u2013 Change to Items
    In A select Item No.
    In B select Price List Code.
    C should auto populate to Price According to Price List.
    D should auto populate to Price List Price Currency.
    Tick Update Existing Records.
    Tick Update Accounts in Existing Items.
    Click OK.
    Select the file as per Price List Export Files above.
    The file will then be imported and the relevant Pricelist updated.

  • Customizing BCC UI IN ATG 10 SKU PRICE LISTS TAB

    we are working on migrating application from ATG 9 to 10. In our existing implementation we are using pricelists for pricing. we have multiple price lists and sale price for a price list was created by extending the Price item descriptor.
    And we have customized the UI under SKU price lists tab to display the SKU sale price.
    Now in ATG 10, due to flash based UI, the sale price column is not visible. How to customize UI to display the sale price under pricelists tab in SKU section.
    Any alternative design is also helpful.
    Any help is appreciated.
    Thanks.
    V@su

    You may not want to revisit your price item customization at this point, but you could probably eliminate your customization and the need to customize the Flex UI if you used a sale price list. ATG has always had full support for sale pricing in the SKU-based pricing calculators, but did not have full support for sale pricing in the price list calculators until recently (I think 10.0). With the new out-of-the-box features, you'd store sale prices in separate price lists and assign two price lists to every user, one for list prices and one for sale prices.
    I was going to refer you to the Commerce Programming Guide, but the section about implementing sale pricing with price lists has not been updated to match the code. The manual tells you to do things that ATG has already done for you. For example, there is now a salePriceList property defined in the user profile, and the comments in ItemPricingEngine.properties that you can edit to turn on price lists have been updated with the necessary calculator for sale pricing.

  • Price List Update Error through DTW

    Hi Experts,
        I am importing Price List in SAP B1 9.0 PL6 but it gives me error "This Entry Already Exist in the following Tables(ODBC-2035) 65171"
        I ready on SCN but not get proper solution.
        Can anybody can help me...
    Regards,
    Sandesh Shinde

    Hi Sandesh..
    In SAP Business One Data Transfer Workbench after Version 2004, the PriceList or PriceListName column is not required in the Items_Prices template.
    To comply with other item templates, SAP Business One Data Transfer Workbench uses the field LineNum to index the sequence of the price list.
    The LineNum starts from '0' which indexes the first Price List in the database.
    Using the # column(Red selection) in the screenshot below the LineNum is the # number minus(-) 1. For example, 0 for Base Price, 1 for the Discount Purchase Price and so on. Following this logic, please note that in this example the LineNum for New Price List02 is 6.
    To update a pricelist you need to enter the PriceList LineNum in the LineNum column. If the PriceList or PriceListName column is present, data should not be entered in the column.
    Example:
    An update is required to the price lists "Base Price" and "New Price List02" from the screenshot above. The update requires the Currency set to "GBP" and Price set to "10"  for Item A00001 in both Price Lists.
    Set the data file Items_Prices as follows:
    ParentKey,LineNum,Currency,Price,PriceList
    ItemCode,LineNum,Currency,Price,PriceList
    A00001,0,GBP,10
    A00001,6,GBP,10

  • 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.

  • Price List Uploading - Error

    Hi,
    I am uploading price list via API and I am getting the error, following is the code:
    /* Formatted on 14/05/2012 07:41:34 AM (QP5 v5.115.810.9015) */
    DECLARE
    v_return_status VARCHAR2 (1) := NULL;
    v_msg_count NUMBER := 0;
    v_msg_data VARCHAR2 (2000);
    v_price_list_rec qp_price_list_pub.price_list_rec_type;
    v_price_list_val_rec qp_price_list_pub.price_list_val_rec_type;
    v_price_list_line_tbl qp_price_list_pub.price_list_line_tbl_type;
    v_price_list_line_val_tbl qp_price_list_pub.price_list_line_val_tbl_type;
    v_qualifiers_tbl qp_qualifier_rules_pub.qualifiers_tbl_type;
    v_qualifiers_val_tbl qp_qualifier_rules_pub.qualifiers_val_tbl_type;
    v_pricing_attr_tbl qp_price_list_pub.pricing_attr_tbl_type;
    v_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;
    BEGIN
    -- HEADER INFORMATION
    --v_price_list_rec.list_header_id := 708;
    v_price_list_rec.operation := qp_globals.g_opr_create;
    v_price_list_rec.list_type_code := 'PRL';
    v_price_list_rec.rounding_factor := -2;
    v_price_list_rec.start_date_active := TRUNC (SYSDATE);
    v_price_list_rec.global_flag := 'N';
    v_price_list_rec.org_id := 101;
    v_price_list_rec.orig_system_header_ref := 'HBC1';
    v_price_list_rec.name := 'TEST_HBC';
    v_price_list_rec.description := 'TEST HBC';
    v_price_list_rec.currency_code := 'SAR';
    v_price_list_rec.active_flag := 'Y';
    -- LIST LINE INFORMATION
    --v_price_list_line_tbl (1).list_header_id := 708;
    --v_price_list_line_tbl (1).list_line_id := fnd_api.g_miss_num;
    v_price_list_line_tbl (1).operation := qp_globals.g_opr_create;
    v_price_list_line_tbl (1).list_line_type_code := 'PLL';
    v_price_list_line_tbl (1).operand := 10;
    v_price_list_line_tbl (1).arithmetic_operator := 'UNIT_PRICE';
    v_price_list_line_tbl (1).primary_uom_flag := 'Y';
    v_price_list_line_tbl (1).start_date_active := TRUNC (SYSDATE);
    v_pricing_attr_tbl (1).operation := qp_globals.g_opr_create;
    --v_pricing_attr_tbl (1).pricing_attribute_id := fnd_api.g_miss_num;
    --v_pricing_attr_tbl (1).list_line_id := fnd_api.g_miss_num;
    v_pricing_attr_tbl (1).product_attribute_context := 'ITEM';
    v_pricing_attr_tbl (1).product_attribute := 'PRICING_ATTRIBUTE1';
    v_pricing_attr_tbl (1).product_attr_value := '895';
    v_pricing_attr_tbl (1).product_uom_code := 'KG';
    DBMS_OUTPUT.put_line ('Calling API to Enter Item Into Price List');
    qp_price_list_pub.process_price_list (p_api_version_number => 1,
    p_init_msg_list => fnd_api.g_true,
    p_return_values => fnd_api.g_false,
    p_commit => fnd_api.g_false,
    x_return_status => v_return_status,
    x_msg_count => v_msg_count,
    x_msg_data => v_msg_data,
    p_price_list_rec => v_price_list_rec,
    p_price_list_line_tbl => v_price_list_line_tbl,
    p_pricing_attr_tbl => v_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_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,
    x_price_list_line_val_tbl => ppr_price_list_line_val_tbl);
    IF v_return_status = fnd_api.g_ret_sts_success THEN
    COMMIT;
    DBMS_OUTPUT.put_line ('The Item loading into the price list is Sucessfull');
    ELSE
    DBMS_OUTPUT.put_line ('The Item loading into the price list Failed');
    ROLLBACK;
    FOR i IN 1 .. v_msg_count LOOP
    v_msg_data := oe_msg_pub.get (p_msg_index => i, p_encoded => 'F');
    DBMS_OUTPUT.put_line (i || ') ' || v_msg_data);
    END LOOP;
    END IF;
    END;
    Error:
    Calling API to Enter Item Into Price List
    The Item loading into the price list Failed
    1) ORA-01426: numeric overflow in Package QP_LIST_HEADERS_PVT Procedure Process_Price_List
    Please guide me how could I resolve it?

    NOW i AM GETTING THIS message:
    Calling API to Enter Item Into Price List
    The Item loading into the price list is Sucessfull
    But it is not appearing on the form.
    I have again run the script and get the followin error while there is no record appearing on the form:
    Calling API to Enter Item Into Price List
    The Item loading into the price list Failed
    1) This name is already in use. Please choose another name.
    2) This name is already in use. Please choose another name.
    Thanks,
    Guide me
    Waqas Hassan

  • Error in QP: Bulk Import of Price List

    Hi All,
    I am trying to import price list records using the concurrent program 'QP: Bulk Import of Price List'. I am facing one issue in this...below is the error detail:
    7164262/PRL/QP_INTERFACE_LIST_LINES//RAGH-L-3 A price break child line must have at least one pricing attribute.
    The header and Qualifier records are getting imported sucessfully, the issue is with the line and it's attributes. Below are the fields on interface tables whcih i m populating:
    INSERT INTO QP_INTERFACE_LIST_LINES (
    ORIG_SYS_LINE_REF,
    ORIG_SYS_HEADER_REF,
    LIST_LINE_TYPE_CODE,
    START_DATE_ACTIVE,
    END_DATE_ACTIVE,
    ARITHMETIC_OPERATOR,
    OPERAND,
    PRIMARY_UOM_FLAG,
    PRODUCT_PRECEDENCE,
    INTERFACE_ACTION_CODE,
    PROCESS_FLAG,
    PROCESS_STATUS_FLAG,
    PRICE_BY_FORMULA,
    AUTOMATIC_FLAG,
    REPRICE_FLAG
    --PRICING_GROUP_SEQUENCE
    ) VALUES
    'RAGH-L-3',
    'RAGH-H-3',
    'PLL',
    sysdate,
    NULL,
    'UNIT_PRICE',
    150,
    'Y',
    230,
    'INSERT',
    'Y',
    'P',
    NULL,
    'Y',
    'Y'
    --0
    INSERT INTO qp_interface_pricing_attribs
    orig_sys_pricing_attr_ref,
    orig_sys_line_ref,
    orig_sys_header_ref,
    PRODUCT_ATTRIBUTE_CONTEXT,
    product_attr_code,
    product_attr_val_disp,
    product_uom_code,
    interface_action_code,
    process_flag,
    process_status_flag,
    PRICING_ATTRIBUTE_CONTEXT,
    PRICING_ATTRIBUTE,
    PRICING_ATTR_VALUE_FROM_DISP,
    COMPARISON_OPERATOR_CODE,
    PRICING_ATTR_VALUE_TO_DISP )
    VALUES
    'RAGH-ATTR-3',
    'RAGH-L-3',
    'RAGH-H-3',
    'ITEM',
    'INVENTORY_ITEM_ID',
    'CM13139',
    'EA',
    'INSERT',
    'Y',
    'P',
    'ADS_PRICING',
    'COST',
    '25',
    'BETWEEN',
    '30' );
    Using the above process I am getting the error as mentioned:"7164262/PRL/QP_INTERFACE_LIST_LINES//RAGH-L-3 A price break child line must have at least one pricing attribute.".
    If I am not using the pricing attributes PRICING_ATTRIBUTE_CONTEXT,PRICING_ATTR_CODE, Pricing_attr_value_from,COMPARISON_OPERATOR_CODE, PRICING_ATTR_VALUE_TO I am able to import the line records also.
    The script provided by Oracle also uses the same columns in the interface table, kindly help me if any one have any idea regarding this issue.

    Hi Luko,
    I tried the same script given by oracle, but it is giving me the error as I mentioned earlier. When I am not using the pricing line attributes, it is working fine. The error is coming only when I am passing the pricing attribute parameter(PRICING_ATTRIBUTE_CONTEXT,     PRICING_ATTR_CODE,     PRICING_ATTR_VALUE_FROM_DISP,
    COMPARISON_OPERATOR_CODE,     PRICING_ATTR_VALUE_TO_DISP).
    I am passing the values as shown below:
    PRICING_ATTRIBUTE_CONTEXT-Code fro pricing context i.e PRICING ATTRIBUTE
    PRICING_ATTR_CODE-code for attribute i.e. FREIGHT_COST
    PRICING_ATTR_VALUE_FROM_DISP-200
    PRICING_ATTR_VALUE_TO_DISP-300
    COMPARISON_OPERATOR_CODE-BETWEEN
    Thanks!

  • Price List Error in Bill of Materials in relation to SAP Note 1056208

    Hi Experts,
    I have uploaded the Bill of Materials --both the Header and Lines using DTW successfully but when I try to update the Product Price of the Parent manually in the Bill of Materials, this error occurs:
    "Variation between number of price lists and number of price lists for items"
    I have also tried running the script provided in SAP Note 1056208 to check if there are any inconsistencies in the Price List records but there is none.  The number of records in both tables are the same.
    We have 3 levels of Bill of Materials (FG, WIP1, WIP2).  I need to update the Product Price of WIP2 first so that its price will appear in the line items since it is a component of WIP1.
    I hope you could help me with my problem and I would appreciate your prompt replies.
    Thank you very much!

    Hi!
    In BOM u will find a Orange Color Drop Down Arrow @ Right-Bottom Corner. You have to click on that to generate Price for your Parent based on the Child.
    Select the Approp Price List in Header of BOM and in Row Level. Update prices for Child Items, now Follow the above step.

Maybe you are looking for