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
Similar Messages
-
hi,
using price list for determination condition type, but the list is alot, how to mass upload in configure?
pls advice
thanksHi..........
lsmw or bdc -
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 ShindeHi 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 -
Cannot see the price list upload in forms.
Hi all,
Can anybody help me please. I have a successful upload but the problem is I can't see it in the forms.
Im uploading price list using the API. In the interface table all records were uploaded (with upload_flag = 1) . Records are already in tables QP_LIST_HEADERS, QP_LIST_LINES, QP_PRICING_ATTRIBUTES. I have already run the concurrent QP: Maintains the denormalized data in QP Qualifiers. Any steps im missing here?
Thanks and regards,
RodericCan you please let us know what is the value the following query is returning?
select distinct source_system_code from qp_list_headers
And What is the value set for the profile option QP: Pricing Transaction Entity at site level?
Regards,
Jyoti -
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. -
Error in adding List Line in Price Lists setup form
Hi Gurus,
users are facing below error message while they try to add new items in the list lines on the "Price List Setup" Screen.
Navigation - Order Management Super User --> Pricing --> Price Lists --> Price List Setup. Query the required price list. go to the list lines and add new line. While saving the new line below error message encountered.
Error ORA-00001: unique constraint (QP.QP_LIST_LINES_U1) violated in Package QP_Price_List_Line_Util Procedure Insert_Row
QP_LIST_LINES_U1 is a unique index with below script -
CREATE UNIQUE INDEX QP.QP_LIST_LINES_U1 ON QP.QP_LIST_LINES
(LIST_HEADER_ID, LIST_LINE_NO)
LOGGING
TABLESPACE APPS_TS_TX_IDX
PCTFREE 10
INITRANS 11
MAXTRANS 255
STORAGE (
INITIAL 128K
NEXT 128K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
N:B:- when we try to do the same thing in our test instance which is last refreshed from production 2 weeks ago, we are able to add new line and save without the error message. seems like some data corruption has occured in production recently. please help on how to diagnostic the corruption. its quite critical issue now from bussiness point of view.
Regards,
Samir Kumar DasHi Samir,
Please follow the below metalink notes...
Cannot Add Item To Price List as it Errors With ORA-00001: unique constraint (QP.QP_LIST_LINES_U1) violated in Package QP_Price_List_line_Util Procedures Insert_Row [ID 466320.1]
Thanks
-Arif. -
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! -
Mass updating/uploading of a price list
Hi,
Need to know if there is a way to mass update a price list. For example, I have 1000 items on price list 3. I need to update the prices of all items in the list and there is no definete factor. Since there is no definete factor I need to update all manually and since there are many items, need to know if there is a way to upload the prices for a specific price list.
also need to know if there is any way to update the "Last Purchase price" list
thanks for any help !Hi,
thanks for the details. I still have an issue on this. I have used the templates and tried to upload the price list and face the following problem.
First, I am not clear as to what the field "LineNum" in the "Item_Prices" template means. I assumned that this was the price list number, but even though the upload says that all items were successfully updated, I cannot find any price list that has the updated prices... all lists still have the same old price... : (
Now I am confused... Need some help on the below:
1. LineNum : Is this the price list number ?
2. I have manually maintained some of hte prices, can they be updated ?
3. What about the prices that are taken as a factor of a base list ( like 1.3x Last purchase price...)
Need some help urgently on this please...
Thanks !
Nirusha -
How to upload price for a item in price list using DTW ?
hi all,
How to upload prices of all the items in price list using DTW ?
What are templates used for it ?
Item masters were already created.
JeyakanthanHi
Create two Excel templates 'Items.xls' and 'Items_Prices.xls'
Since you have already imported items, just have the record key and item code alone in the 'Items.xls' . For example:
RecordKey.......ItemCode
1.......................I0001
2.......................I0002
In the Items_Prices template, Fill Pricelist Number fromOPLN and Price of the Item
RecordKey....LineNum......Price
1......................1..............350.00 (Means for Item I001, Pricelist 1 is updated with 350)
1......................2..............300.00 (Means for Item I001, Pricelist 2 is updated with 300)
2......................1..............550.00 (Means for Item I002, Pricelist 1 is updated with 550)
2......................2..............600.00 (Means for Item I002, Pricelist 2 is updated with 600)
In step 4 of DTW, Choose
Check - Update Exisiting Object
Uncheck - Import New Object
This should update the pricelist alone for the items -
Error while switching from price list while entering the sales order
hi
i am getting this error " App - ont -250271 On line discounting is not allowed ; order type enforces price list"
while switching from price list column
I checked the transaction type and it does not have enforce price list check box checked.
do i have to check some where else?
Regards
sudharshan.Hello,
Did you fill lines? and after this you want change price list on the header?
Check your price list, modifier and qualifier set-up because it seems that there is a problem.
Regards,
Luko -
Dear Experts,
When i am clicking on Issue for production then below error is coming..
i am not able to do Issue for Production..
Is this error occurred Because of Posting Period ????
Please help.
Thank in advance,
Santosh.Hi sir,
Thank you for replay,
My issue get solve sir.
Thank you for clearing me the issue is related to Price List not Posting Period.
In my database we have two users but error was came for only one 2nd user
so i check Authorizations of 2nd user that was No Authorize so make it read only
& issue get solve!!!
Thank you,
Santosh. -
Upload of new price list in exsting iteam master
dear friend,
can anbody help me how to upload new price for exsting product which are in iteam master without selling price Sap b1.
please provide me template for price upload and guidelines.its a paint finished product,
Regards
ParikshitYou may check these threads:
Item price import with DTW
How to upload price for a item in price list using DTW ?
Thanks,
Gordon -
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.
-
Message 3506-9 Price List Error - Please Help
Thank you in advance for your help - here is my question:
I am attempt to make a new price list using the following under Modules:
Inventory --> Price Lists --> Price Lists
When on the Price Lists Form, I right click on the last row and click on "Add Row". I then add my new price list name, my Base Price List (same as the price list name), my factor (1), and my Rounding Method (no Rounding). I am also using the "Update Entire Price List" option so I go ahead and click on "Update".
Unfortunately, the next screen I receive is labeled as "Price Lists" and shows an error message as follows:
"Variation between number of price lists and number of price lists for items [Message 3506-9]"
I have checked the number of Distinct Price Lists in ITM1 and there are four. My current number of Price Lists in OPLN is four. I do not understand what is causing this message and why it is preventing me from adding another price list. Thank you for your advice on what this message means and if there are any solutions.
Here is my SAP version information:
SAP Business One 2007 A (8.00.177) SP:00 PL:38Hi Jeff Olmstead,
We have investigated on the issue.
This error message is related to price lists. Have you recently imported
price lists or items into Business One?
The problem is that the number of records in OITM does not match the
number of records in ITM1. For every record in OITM
there must be records in ITM1 according the number of price list in B1
E.G. if I have 20 items and 10 price list I should have 200 records in
ITM1. This situation can happen during import data from external
application and not directly from B1.
Please run the following queries to locate the problem:
This will give you the number of items in your system:
SELECT Count(T0.ItemCode) FROM OITM T0
This will give you the number of price list in your system:
SELECT Count (T0.ListNum) FROM OPLN T0
Multiply the result of the two queries.
This should match with the result of the following query:
SELECT Count(T0.ItemCode) FROM ITM1 T0
If this does not match this means that not all items are linked to all
price lists, which in turn will not allow you to create or update
an existing price list.
There are 3 diffarent scenarios that can caouse this problem -
1. Items exist in OITM and does not Exist in ITM1:
To locate these items please execute the following query to find the
items that are not linked.
SELECT T0.ItemCode as 'OITM', T1.ItemCode as 'ITM1'
FROM OITM T0
LEFT OUTER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
WHERE T1.ItemCode is NULL
If you enter a price into the master data the link will be created. You
can also enter the price in the pricelist.
2. Items exist in ITM1 and does not Exist in OITM:
To locate these items please execute the following query to find the
items that are not linked.
SELECT T1.ItemCode as 'OITM', T0.ItemCode as 'ITM1'
FROM ITM1 T0
Left JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
Where T1.ItemCode is NULL
3. Items do not Exist in in all price lists (Records are missing in
ITM1):
To locate these items please execute the following query to find the
items and price lists missing from ITM1.
select itm1.itemcode,
itm1.pricelist,
a.listnum,
a.itemcode,
oitm.createdate
from itm1 right join
(select itemcode, listnum from oitm, opln) as a
on itm1.itemcode+ convert(nvarchar, itm1.pricelist) =
a.itemcode+ convert(nvarchar, a.listnum )
inner join oitm on a.itemcode = oitm.itemcode
where itm1.itemcode is null
order by 5,1, 4,3
If the query retrieves any results, please contact your Support Center.
Hope this helps.
Best Regards,
Summer Ding
SAP Business One Forums Team -
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
ImranHi 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
Maybe you are looking for
-
Any way to use filter to exclude tables in navagation pane?
Is there any way to use filter to exclude a set of tables from the table list in the navagation pane? I have a number of tables (15+) starting with the same prefix eg. AB123 that I would like eliminate from the list. They sort right to the top and I
-
Sent mail mailbox not created with IMAP account
Hello, I have an old PBG4 running Tiger that i use as a shop/travel/etc. 2nd mac. I have 4 mail accounts. I set them up ( successfully) all the time on various macs and windows machines. But now something's changed... 3 of my accounts are fine. The
-
LDAP Profile Source - "Remote Unique Name" oddity
We have an Active Directory that I've set up to use as an Authentication Source, and it also retrieves a few properties from there - not a problem. We also have an LDAP directory which contains other attributes of users that I need to retrieve. I set
-
Error in User Administration page-(Search Users)
Hello, We are geting a portal runtime error as follws when we click on User Administration -> Users -> search Users <b>Portal Runtime Error An exception occurred while processing a request for : iView : pcd:portal_content/administrator/super_admin/su
-
Cannot View Older Forum Questions and Bookmarking
Hi, I noticed in the Lightroom for Beginners forum that you can only view one page of forum questions. You cannot view older forum questions/posts (i.e. pages 2,3,4...). There also is no way to bookmark and/or follow questions/topics/discussions. Unl