Query on Price List Qualifiers
Hi,
I am trying to understand the functionality of pricing manager in 11.5.3.
What is the meaning of attaching a modifier list as qualifier to price list?
i.e.
1. I have 2 price lists named Coporate and Base List.
2. I attach Corporate Price list as a qualifier to Base Price List.
What is meaning of this relation?
Thanks,
Srini
null
Hi Don,
Not all your required info saved in the B1 table. This is the best I could get:
SELECT DISTINCT t0.ItemCode, t1.ItemName, T0.PriceList,T2.Price 'OLD', T0.Price 'New', MAX(T2.LogInstanc) 'Last Changed'
FROM dbo.ITM1 t0
INNER JOIN dbo.OITM T1 ON T1.ItemCode = T0.ItemCode
INNER JOIN dbo.AIT1 T2 ON T2.ItemCode = T0.ItemCode AND T2.PriceList = T0.PriceList
WHERE ISNULL(t0.Price,0) != ISNULL(T2.Price,0) AND T0.ItemCode Like '[%0\]%' AND T0.PriceList = '[%1\]'
GROUP BY t0.ItemCode, t1.ItemName, T0.PriceList,T2.Price, T0.Price
Thanks,
Gordon
Similar Messages
-
Hi,
I need a query to get a listing of all sales orders where the pricing has been changed from the approved price list.
Also, a query to pull a list of changes to price tables that occurred in February, March, and June months of 2007.
Can anyone help me with this?
thanks,
AshwathyHi,
I agree with you, possible but not probable. In pricing, you can have prices for all items, for categories and for items. You can also have prices defined for a range of quantities in a UOM. Assuming your prices are defined in the list for items, in the same UOM product was ordered, the query would be like that for one order:
select c.ordered_item, c.unit_list_price, c.unit_selling_price, a.operand
from qp_list_lines a,
qp_pricing_attributes b,
oe_order_lines_all c
where a.list_line_id = b.list_line_id
and a.list_line_type_code = 'PLL'
and b.product_attribute_context = 'ITEM'
and b.product_attribute = 'PRICING_ATTRIBUTE1'
and c.inventory_item_id = b.product_attr_value
and c.pricing_quantity_uom = b.product_uom_code
and a.arithmetic_operator = 'UNIT_PRICE'
and c.header_id = :header_id
and c.price_list_id = a.list_header_id
and c.pricing_date between nvl(a.start_date_active,c.pricing_date)
and nvl(a.end_date_active,c.pricing_date)
Hope it helps,
Ketter Ohnes -
Experts,
Can you please tell me what will be the query for
for all prices which are u201C0u201D empty (products)
Thanks a lot in advanceThanks a lot Rahul and Gordon
I am trying like as per the need
SELECT T0.ItemCode, T0.ItemName, T0.ItmsGrpCod, T2.ListNum, T2.ListName,
Sum (T1.[Price]) FROM OITM T0 INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode INNER
JOIN OPLN T2 ON T1.PriceList = T2.ListNum GROUP BY T0.[ItemCode] HAVING Sum (T1.[Price]) <=0
But error comes like
1). [Microsoft][SQL Native Client][SQL Server]Column 'OITM.ItemCode' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. 2). [Microsoft][SQL Native Client][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared.
Please Help -
Hi All!
How can i write a query with prices list.
Ex: Itemcode, Itemname, warehouse, price list 1, price list 2, ,...price list 5
I don't know the table store value of price list.
Thanks!SELECT T0.[ItemCode], T0.[ItemName], T1.[PriceList],T2.[ListName], T1.[Currency],
T1.[Price] FROM OITM T0 INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPLN T2 ON T1.PriceList = T2.ListNum -
Hi all
How to list from Query Inventory Price List->Price List, double click on Price list No. to see all Items with Prices.
KedaleneHi,
Or you may try this too:
SELECT T0.[ItemCode], T0.[ItemName], T2.[ListName], T1.[Currency], T1.[Price]
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPLN T2 ON T1.PriceList = T2.ListNum
WHERE T2.[ListName] = '[%0]'
Thanks -
Query - Price list report by Customer
Hi,
Can I please be advised on Query to obtain result = when reporting on a specific BP customer and to list items with applicable price (as per assigned price list).
eg. Customer A (assigned to Pricelist 1)
- item X $100.00
- Item Y $150.00
(above prices display only pricelist 1 item pricing)
thks and I appreciate any assistance given.
regards
KellyHi, Kelly
You can display item description within result and set parameter option to choose BP. But there is no method to limit the option to Customer only for now.
Just refer the following query.
SELECT T2.[CardCode], T2.[CardName], T1.[ItemCode],T3.[ItemName], T0.[ListName], T1.[Price] FROM OPLN T0 INNER JOIN ITM1 T1 ON T0.ListNum = T1.PriceList INNER JOIN OCRD T2 ON T0.ListNum = T2.ListNum INNER JOIN OITM T3 ON T1.ItemCode = T3.ItemCode WHERE T2.[CardCode] =[%0] -
Include Price List in query using OITM
Hi Experts,
Firstly, apologies is this is a stupid question but I have a query on my OITM table which I need to add prices to from one of my price lists (not the system price lists) and I can't figure out how to write it as the price list doest seem to exist as another table in SAP. Can anyone assist?
Thanks
JonHi Jon,
You may try this that added one more condition to above query:
SELECT T0.[ItemCode], T0.[ItemName], T2.[ListName], T1.[Currency], T1.[Price]
FROM dbo.OITM T0
INNER dbo.JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPLN T2 ON T1.PriceList = T2.ListNum
WHERE T2.[ListName] = '[%0]'
Thanks,
Gordon -
Need a Query to find Unassigned Price Lists
Hi
I need a query which will show any Price List NOT assigned to a Business Partner. I have the following:
SELECT T0.[ListNum], T0.{ListName] From OPLN T0
WHERE T0.[ListNum} NOT IN T1.[ListNum[ from OCRD T1
Haven't worked that much with NOT IN statement.
Thank you!Hi Daniel,
Please check below Query.
SELECT T0.[ListNum], T0.[ListName] From OPLN T0 WHERE T0.[ListNum] NOT IN ( SELECT DISTINCT T1.[ListNum] FROM OCRD T1 )
Hope this help
Regards::::
Atul Chakraborty -
Hi All,
I have a query that does a lookup on inventory and returns useful info as onhand, committed, warehouse,
various price list data etc. It is very useful for our telephone sales guys as they can see all the information
they need in one quick search. There is a wildcard variable that searches both the ItemCode and ItemName
fields to return possible results.
I would like to add one further column to this query.. being the ETA (DocDueDate) of the most recent Open
AP purchase order that relates to the Item.. if any. I want to return the rest of the result even if there is no
AP Purchase Order open.
I have posted two queries below. The first is the original query that works well. It offers wildcard search
of the ItemCode and ItemName, but does not give me the ETA (DocDueDate) of any open AP Purchase
orders for the item (what I want).
The second query does give me everything thing I want returned, but only if I enter the exact ItemCode
into the variable field. I can no longer do the wildcard search that I also want. Some of our codes are simply
not practical to remember, and cannot be easily identified. this is why I need the wildcard search to look in
both the Item and Name column and return possible matches.
I have both queries below.
This is the working original query...
SELECT
T0.[ItemCode],
T0.[ItemName],
CAST (T0.[OnHand] As INT) As ' Total On Hand',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=01) As INT) As 'Melb Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=06) As INT) As 'Demo Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=04) As INT) As 'Bill Car Stock',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=05) As INT) As 'Brett Car Stock',
CAST (T0.[IsCommited] As INT) As 'Committed',
CAST (T0.[OnOrder] As INT) As 'On Order',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
T1.[ItmsGrpNam],
T2.[FirmName]
FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
WHERE T0.[ItemCode] Like '%%[%0]%%' OR T0.[ItemName] Like '%%[%0]%%'
ORDER by T0.[ItemCode]
For Browse
This is the new query with the AP PO DocDueDate lookup included. (Wildcard searches dont work anymore)
SELECT
T0.[ItemCode],
T0.[ItemName],
CAST (T0.[OnHand] As INT) As ' Total On Hand',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=01) As INT) As 'Melb Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=06) As INT) As 'Demo Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=04) As INT) As 'Bill Car Stock',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=05) As INT) As 'Brett Car Stock',
CAST (T0.[IsCommited] As INT) As 'Committed', CAST (T0.[OnOrder] As INT) As 'On Order',
(SELECT TOP 1 T0.[DocDueDate] FROM OPOR T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.[ItemCode] = [%0] And T0.[DocStatus] ='O' ORDER BY T0.[DocDate] Asc) As 'ETA',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
T1.[ItmsGrpNam],
T2.[FirmName]
FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
WHERE T0.[ItemCode] Like '%%[%0]%%' OR T0.[ItemName] Like '%%[%0]%%'
ORDER by T0.[ItemCode]
For Browse
As you can see in query 2, I used the same variable to attempt to lookup the DocDueDate from OPOR.
This only works if I enter the variable exactly as ItemCode. No longer wildcard search.
if anyone could offer any assistance it would be most appreciated.
Best regards,
JohnHi István,
Thanks! That works great.
The only additional thing I need is to return the DocNum of the Purchase order (DocNum from OPOR). I attempted to do this by adding T.[DocNum] to your suggested query as per below... however it returns error "Only one expression can be specified in the select list when the subquery is not introduced wit EXISTS"
SELECT
T0.[ItemCode],
T0.[ItemName],
CAST (T0.[OnHand] As INT) As ' Total On Hand',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='01') As INT) As 'Melb Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='06') As INT) As 'Demo Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='04') As INT) As 'Bill Car Stock',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='05') As INT) As 'Brett Car Stock',
CAST (T0.[IsCommited] As INT) As 'Committed', CAST (T0.[OnOrder] As INT) As 'On Order',
(SELECT TOP 1 T.[DocNum], T.[DocDueDate] FROM OPOR T INNER JOIN POR1 Tt ON T.DocEntry = Tt.DocEntry
WHERE Tt.[ItemCode]=T0.ItemCode And T.[DocStatus] ='O' ORDER BY T.[DocDate] Asc) As 'ETA',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
T1.[ItmsGrpNam],
T2.[FirmName]
FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
WHERE T0.[ItemCode] Like '%%[%0]%%' OR T0.[ItemName] Like '%%[%0]%%'
ORDER by T0.[ItemCode]
For Browse
Any ideas?
Many thanks,
John -
Query to know wich item are to a specific price list
Hello Experts,
In order to be able to delete a price list, I need to find out wich items are linked to this price list. Which query I need to run ?
I tried in the OSPP table but no data are recorded in.
Thanks in advance for your answer.
Best regards
Sébastien TABOREHi Sebastien,
Try this
SELECT ItemCode,ListName,Price FROM ITM1 INNER JOIN OPLN ON ITM1.PriceList=OPLN.ListNum
Best Regards,
Hendry Wijaya -
What is the Difference between Price List , Modifier and Qualifier ?
Hi All,
What is the difference between Price List , Modifier and Qualifier ?
What are tables affected and joins ?
Thanks in advanceHi Selva,
If you look at the parameters,you can see more options in GRID.The following are those extra options which you cannot see in LIST.
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
If the caller specifies an EXIT routine, this routine must have the following form:
FORM top_of_page.
Module REUSE_ALV_COMMENTARY_WRITE can then be called within the EXIT routine. This module is responsible for formatting the header information and also ensures online HTML formatting. In the print preview or in batch mode, the text passed is then output in the normal format.
If module REUSE_ALV_COMMENTARY_WRITE cannot be used, you must use two parameters instead. In I_CALLBACK_TOP_OF_PAGE you pass the form routine that is responsible for normal formatting in batch mode or in the print preview mode. The form routine that is responsible for online formatting, is passed in parameter I_CALLBACK_HTML_TOP_OF_PAGE. If one of these parameters is not filled, top-of-page is not output in the respective mode.
In function module documentation,if you click those parameters,you can see the explanation.
If you need more information,get back.Otherwise,kindly close the thread by rewzarding points for useful replies.
Mueksh Kumar -
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 -
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. -
Generating a Price List Report
Hi
Currently we are working for the retail sector where we need to maintain history of changes made in the price list. Can any report be generated in SAP for giving us a history of the price list with the dates on which such changes in price list has been made. I have explained the above query in detail below with a scenario.
Scenario :
Date Price List Item Code Item Name Price
1-May-08 1 HB Handle Bar 100
20-May-08 1 HB Handle Bar 105
2-Jun-08 1 HB Handle Bar 108
Is a report as above possible to be generated in SAP for viewing the changes in the price list. Please guys if anybody has some clue on the same throw some light.Hi,
Item History is in AITM table. You can view the change details of an item in 2 ways.
1. Goto Inventory --> Item Master Data . Select the item for which you want to view the Change in price list. Now Goto Tools --> Change Log. Now you can view the list of changes made to that item. In that window itself Click the button "Show Differences". It will show the Differences between current item settings and the changes made to it (Date wise). Or You double click the button left to Instance. It opens the Item master data screen and show the screen which is earlier to the updation.
2. Write a query to retrieve the data from AITM table.
SELECT T0.UpdateDate, T0.ItemCode, T0.ItemName, T0.AvgPrice FROM AITM T0 Where Condition. Type the condition you want to filter the data from table.
Raja.S -
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!
Maybe you are looking for
-
Unable to enter MOSS 2007 License Key after SP2 upgrade - trial period about to expire
We are unable to enter the license key as stated in the title. The field does not allow any input. Central Admin shows that our trial period is about to expire very soon. Our environment is MOSS 2007 (Office Sharepoint Server with Enterprise Client
-
Scale_type_in_Pricing??
Hi What is a Scale type which is used in Condition records in Pricing.? PLease give an example to explain the above concept. Thanks
-
Would i be better off if i Uninstalled,and reinstalled,the FCP due to the "The operation couldn't be completed. (DSPPublishing error -29)"? I Didn't think i was a complete idiot,when it came to video editing but this program is really kickin my Butt!
-
The security questions on file are not ant thing I would have answered. How can I change them with out answering them I've tryed every answer i can think of
-
I have a Dinc and I am looking for an app that is very close to the iPhone app for the Franklin planner, does anyone know of one? I have checked the Franklin Covey website, and it does not appear they have an Android app just and iPhone app. Also,