Query help - Inventory, warehouse, Price List, AP PO, & wildcard search?

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,
John

Hi 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

Similar Messages

  • 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

  • Need help on material price list

    Hi,
       I am developing one application on netveawer using JCO.my requirement is to display custmer,material and their prices to create quotation order for this i can get custmers from BAPI_CUSTEMER_GETLIST and i can get materials from BAPI_MATERIAL_GETLIST.but while creating a quotation we should know the material price depending on custmer and quantity so i have to get the material pricelist from r/3.please tell me BAPI name which will give material price.i have asked this question so many times but i did not get proper guidelines. plz help me to do this.
    regards
    Guru

    Hello,
    I am trying to use BAPI_SALESORDER_SIMULATE. It functions very well in
    general and suffice most of my needs. The only issue with it is that
    there is no place to input material price group i.e VBAP-KONDM.
    Logically it should have been in ORDER_ITEMS_IN. Since some of my
    pricing is driven by KONDM (materail price group), I am not able to use
    this BAPI. Please let me know if you made any headway on this front.
    Thanks,
    Datta

  • HOw to query price list

    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

  • Price list (customer specific)

    Hi all,
    I've been working on a query to create a price list on customers including discount by group
    Looks like this :
    SELECT T0.ItemCode, T0.ItemName, T0.U_IMPA, T0.U_ISSA,T1.Price, T1.Currency'cur',T1.PriceList, T4.ListName, T2.ItmsGrpNam, T5.Discount FROM OITM T0
    INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN OITB T2 ON T0.ItmsGrpCod = T2.ItmsGrpCod
    INNER JOIN OSPG T3 ON T0.CardCode = T3.CardCode
    INNER JOIN OPLN T4 ON T1.PriceList = T4.ListNum
    INNER JOIN OSPG T5 ON T5.Discount = T5.Discount
    WHERE T3.CardCode='[%0]' and T4.ListName= '[%1]'
       AND (T1.Price >0)
    However if i select a customer and price list, the result is empty.
    When i remove " WHERE T3.Cardcode='[0%]' it shows the result of all customers and all of there discounts.
    I'm not quite sure if the T3.Cardcode make it looking into the OSPG column, because there are no articles in that one, just discounts.
    Do i miss something (probably)
    Thanks in advance !

    Hi
    Try this:
    SELECT T0.ItemCode, T0.ItemName, T0.U_IMPA, T0.U_ISSA,T1.Price, T1.Currency'cur',T1.PriceList, T4.ListName, T2.ItmsGrpNam, T3.Discount
    FROM OITM T0
    INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode AND (T1.Price >0)
    INNER JOIN OITB T2 ON T0.ItmsGrpCod = T2.ItmsGrpCod
    LEFT JOIN OSPG T3 ON T0.CardCode = T3.CardCode AND T3.CardCode='[%0\]'
    INNER JOIN OPLN T4 ON T1.PriceList = T4.ListNum and T4.ListName= '[%1\]'
    Thanks,
    Gordon

  • Price List based on Item Cost

    We often get asked if we can have a Price List that is based on the Item's cost (AvgPrice in OITW).  It would be helpful if the Price List had the ability to be based on actual Item Cost.  Purchasing often wants to create purchase orders based on actual cost rather than a static price list.  Others use cost plus markup pricing methods in calculating customer price lists.

    We have the same problem. A client want to use the price cost as list of prices.
    Ismael

  • How can I simply print a certain price list?

    That is all I need to do. Print what is on a certain pricelist.

    Hi,
    Create a CRM report, query/criteria put the price list name which you want to print, run report and print option is available there.
    Also you can do the same with SSRS reports.
    The simplest would be screenshot,crop and print:)
    Regards, Rekha.J

  • 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:38

    Hi 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

  • Help with creating a price list

    I'm just wondering if anybody could possibly help me when creating a price list?. I'm new to SAP so don't have a great knowledge of it.
    Our company needs to send out a wholesale price list to customers, however some of the items we stock do not include vat, when the price list is previewed it doesnt show which items include vat or exclusive of vat. this information could do with being visible to make it clearer to the customers.
    Is there anyway the priclist could be exported to microsoft excel etc for editing?
    many thanks.

    go to inventory--prce lists-Price List.
    double click on the price list you want.
    It will open the new window showing Items with prices.
    Click on the Excel icon on menu bar on the top.
    save file as .xls.

  • Inventory Price List

    Hi all
    How to list from Query Inventory Price List->Price List, double click on Price list No. to see all Items with Prices.
    Kedalene

    Hi,
    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

  • Defult price list in inventory transactions

    Hi all,
    Do you know how can I set defult price list in inventory transactions?
    The Documetns are:
    Goods Receipt
    Goods Issue
    Inventory Transfer
    Thank you for your help
    Liat

    Hi Johan,
    I don't want to use the DI, I want to use the UI.
    When the user open the Goods Receipt doc he gets the "Last purchase Price"  and then he choose (manualy) the "Last Evaluated Ptice". I need the user to get by defult the "Last Evaluated Ptice".
    Is it possible?
    Thank's
    Liat

  • Query for Price List changes

    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,
    Ashwathy

    Hi,
    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

  • INVENTORY STATUS WITH PRICE LIST

    Dear Experts
    I am using below query for my storck report ,now am looking to add price list which means closing stock multiply with price list 4.
    Kindly advice me
    Parikshit
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Whse = 'HOFG'
    Select
    @Whse as 'Warehouse',
    a.Itemcode,
    max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance,
    sum(a.INq)  as 'IN',
    sum(a.OUT) as OUT,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing
    ,(Select  i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    (sum(N1.inqty)-sum(n1.outqty)) as OpeningBalance,
    0 as INq,
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as OpeningBalance,
    sum(N1.inqty) ,
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as OpeningBalance,
    0 ,
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
    where
    a.ItemCode=I1.ItemCode
    Group By
    a.Itemcode
    Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0
    Order By a.Itemcode

    Hi,
    You may try:
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Whse = 'HOFG'
    Select
    @Whse as 'Warehouse',
    a.Itemcode,
    max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance,
    sum(a.INq) as 'IN',
    sum(a.OUT) as OUT,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing
    ,I2.Price,I1.InvntryUom as UOM,((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT))*I2.Price as StockValue
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    (sum(N1.inqty)-sum(n1.outqty)) as OpeningBalance,
    0 as INq,
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as OpeningBalance,
    sum(N1.inqty) ,
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as OpeningBalance,
    0 ,
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription) a
    INNER JOIN dbo.OITM I1 on a.ItemCode=I1.ItemCode
    INNER JOIN dbo.ITM1 I2 on I1.ItemCode=I2.ItemCode AND I2.Pricelist = 4
    Group By
    a.Itemcode,I1.InvntryUom,I2.Price
    Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0
    Order By a.Itemcode
    Thanks.
    Gordon

  • Query for price list

    Experts,
    Can you please tell me what will be the query for
    for all prices which are u201C0u201D empty  (products)
    Thanks a lot in advance

    Thanks 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

  • Price List on internal inventory transactions

    SAP 8.8
    On Sales docs and Purchase docs the price list to use comes from the BP card's price list.
    On internal inventory transactions, Good Receipt and Goods Issue, my docs default to Last Purchase Price. I want them to default to a different price list. (Employees are creating these docs and forgetting to change the price list.)
    Where can I set the default price list for these transactions?

    Hi,
    This default is not user selectable. System can only use item cost for those transactions.
    Thanks,
    Gordon

Maybe you are looking for

  • SEND MAIL STATUS - why do I see 3 emails going out when I only sent 1?

    I have a weird issue that scares me because I'm afraid I'm contributing to SPAM, because my Mac is haunted or infected. If I send one (1) email to myself, every 2nd or 3rd send (as a test) results in 2 or 3 messages being sent. The status in the bott

  • Lenovo Z Series Z50-75

    Bought the Laptop today. And registered it. But could not register the date I got the computer. It only shows the date it was manufactured. And for me that means om loosing nearly alot of time of my warranty. Also not possible to update Windows 8.1 f

  • Looking for OSX (1) or Third Party (2) Solution to tag Audio Files

    Hey all, I'm new here. I've signed up, because I'm looking for a way to Tag Audio Files. I've been doing Audio Diary over the years. Now instead of converting the Audio to Text, I'm looking for a way to identify Audio entries by adding Tags to them.

  • I can't update my playbook to 1.0.7.x

    I there guys. This is my first post. I'm looking for a solution to my current problem. I've get a new playbook 16gb in hands with original software version 1.0.0.1439 And when I start setting up the device it's force me to download the version to 1.0

  • Write permission deny issue

    I mounted my home dir to a solaris and an AIX server through NIS mount. Under my home dir, I created a subdir 'temp' with 755 permission. Under 'temp', I created a file 'test' with 666 permission. Now I login to the solaris and AIX machine using a di