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

Similar Messages

  • Inventory Price Lists Period and Volume Discounts

    Hi all
    Is it possible to mass import Inventory Price Lists Period and Volume Discounts for all Items?
    Kedalene Chong

    Hi,
    To get correct result, you need to split your existing records in maximum of 1000 records per import. If more than that, you may get incorrect update.
    Please check SAP note for updating price list:
    903392
    - DTW_How to set PriceList field for the Items_Price object
    Thanks & Regards,
    Nagarajan

  • Sort order of Price Lists

    My customer has recently upgraded from 2007A PL 42 to 8.81 PL 7. Before upgrade all pricelists are
    displayed in item code sort order. After upgrade, the sort order seems almost random.
    Customer maintains 175 different pricelists (mainly supplier pricelists) Customer needs to look up an
    item price from a specific price list - goes to Inventory / Price lists / Price Lists, selects the required
    price list and double clicks on the row number which then displays itemcodes, item descriptions, base
    price and unit price.
    Before upgrade, the customer could immediately start typing the item code and quickly get the required
    price. Now they must resort the displayed list by item code first, then start typing the item code.
    Process that used to be quick now takes more time. Customer can't understand why something that
    was working well for them has been changed to make life difficult
    At first I thought that the lists were now being sorted by description but the order changes even when
    double clicking at the top of the description column.
    Customer would like an option as to how they want the list displayed or for it to go back to how it was.
    Customer's sales reps need to find prices quickly - can't understand why the sort order has changed

    Tom Peterson wrote:
    This did the trick for me, Harry. Thanks!
    I was surprised to see you can/must set this on a podcast-by-podcast basis, but it is hard to argue with having finer control. Oldest to newest seems like a slightly more logical default, but that may just be personal preference.
    Not to split off in a new direction, but if I then subscribe to a podcast in Podcasts app that I already subscribe to in iTunes, is it recommended I turn off syncing between iTunes and my iPhone for that podcast? Or will this question basically go away when iOS 6.0 is released?
    Do the Podcasts app and the Music/iPod app share podcast files? Or will they be duplicated on my iPhone?
    Tom
    The podcasts will duplicate themselves on your device. I turned off podcast syncing on my devices. But the weird thing is that when I sync, podcasts then copy themselves to my iTunes library. Either sync or don't, but don't copy to both.

  • Price List

    Hi
      I have created a Price List and attached to Busness Partner in "Payment Terms" price list but when i create sales order it does not show rates entered in price list
    Thanks

    it is because the business partner have had different price list in the special  price for business partner window.
    Check the price list used in the special price for business partner under module inventory --> price list --> special price --> special price for business partner, is it as same as price list in the BP master data --> payment terms --. price list ?
    if not, system will use the price list in the special price for business partner window
    JimM

  • Price List Issue

    Hi Experts,
    I am preparing Price List for Item Master Data.
    I go through procedure as below :
    1. Filled Base Price for Item 'A' in Price List.
    2. In Spl price for BP selected BP Code '123' and updated price, Set Price List on both header and row level.
    3. Same process as '2nd row' for diff. vendor and set diff price, system generate some disc. for that and price shows in price after disc. coloum.
    4. Select same Priec list in BP MAster > Payment Terms and in Admin > General > Base Price Origin.
    5. Select  Price List in form settings on Purchase Order Form.
    But now the prb is when i select BP '1234' in Purchase Order and item 'A' in Item No. system does not shows me unit price but when i manually update the price list in form setting then it is updating price in P.O.
    I mean i have to update price list manually in form setting every time when creating P.O.
    Regards,
    Ravi
    Edited by: RAVI_JHA_SAP on May 6, 2011 12:52 PM

    hi Ravi
    Is your B1 system running on Last purchase price last evaluated price or simply by the price list if its by last purchase price then system would pick up the price automatically the last purchased price and if its the second option then the system would pick the price from last evaluated price and if its the third option then my dear friend u would have to define the price of the item once under inventory =price list- double click of the left column and that would open up the complete price list there please put the price and this price would be picked in the marketing forms
    Regards,
    Manish

  • Add a Price List based on last purchase price

    Hi!
    I'm working with SAP B1 2005 A SP01 PL39 and I'm trying to add a Price List via DIAPI using this code in VB.net.
    Dim oPriceList As SAPbobsCOM.PriceLists
    oPriceList = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPriceLists)
    oPriceList.PriceListName = "PriceList Z"
    oPriceList.BasePriceList = 0  '// last purchase price
    oPriceList.Factor = 1
    oPriceList.GroupNum = BoPriceListGroupNum.boplgn_Group1
    oPriceList.RoundingMethod = BoRoundingMethod.borm_NoRounding
    oPriceList.Add()
    The problem is when the Price List is added, the base price list changes and becomes "PriceList Z" instead of "last purchase price"!!
    After i try to update the base price list from "PriceList Z" to "last purchase price" manually at Inventory > Price Lists > Price Lists and it works!
    I even tested the code changing the base price list to "last evaluated price"...
    oPriceList.BasePriceList = -1  '// last evaluated price
    ... and it works too! The Price List is added based on the last evaluated price.
    I'm only having problems with last purchase price... why?

    Thanks for the quick response Petr but my problem isn't solved yet...
    As you can read in my first post, i've changed the code and based the new price list on the "Last Evaluated Price".
    This "Last Evaluated Price" isn't in the OPLN table and the new price list (with last evaluated price based on) is added successfully.
    The problem comes when i try to add a new price list based on the last purchase price.

  • Un-checking Manual Price Column in Price List

    I am trying to un-check the manual price  column in the Item Price List (Inventory > Price Lists > Price Lists) for several items. After unchecking several items and clicking in  the update button, nothing happens. No error message, no update. It happens with some, not all items. What can it be??
    Also, can I bulk un-check the manual price ? For example, with DTW template ?

    hi
    the two option "update the entire price list" and "update by selection" are to update any cjanges in the price list there may be different price list difined in ur system and if i want to update the changes made in all the list i select the first option and if i want to update it with the selection criteria i select the second option.
    Regards,
    Manish

  • Defaulting Price Lists

    Forum,
    Within the Item Master Data screen you have the 'Price List' field. Is there anyway of this defaulting to a specific price list when creating new items?
    Regards,
    Juan

    Hi,
    The Price List is displayed alphabetically under the list of the Item Master Data General Tab.
    Check Note No. : [546571|https://b1-support.wdf.sap.corp/sap/support/notes/546571]
    Symptom
    How can I see in the Item Master Data a certain price list as default?
    Cause
    Consulting
    Solution
    Since you can add as many price lists as you want, they are ordered alphabetically. To see certain price list as the first one in the Item Master Data, perform the following steps:
    1. Choose Inventory > Price Lists > Price Lists in the main menu.
    2. In the screen 'Price Lists' in the field 'Price List Name' type _ ([ shift] + [-]) in front of the name of the price list you want to see first.
    3. Note that when you update the name no other updates are held.
    4. Press the button 'Update'.
    5. The price list is updated.
    6. Press the button 'OK' on screen 'Price lists'.
    Hope it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • 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

  • Upload price list

    Dear all,
    Would like to ask for uploading the price list.
    I used the Items, Items_Prices templates and the Business Object : oItems
    In the Items template, i use the fields: RecordKey, ItemCode
    In the Items_Prices, i use the fields: RecordKey, LineNum, Currency, Price
    it is scessfully imported but when i click to Inventory -> Price Lists -> Price Lists, none of the record is updated.
    Please kindly help on this. thanks in advance.

    i guess i have upload the correct data
    RecordKey     ItemCode
    RecordKey     ItemCode
    542     I01
    548     I02
    555     I03
    556     I04
    562     I05
    RecordKey     LineNum     Currency     Price
    RecordKey     LineNum     Currency     Price
    542     50     HKD     7
    548     50     HKD     7
    555     50     HKD     7
    556     50     HKD     7
    562     50     HKD     8
    542     55     HKD     7
    548     55     HKD     7
    555     55     HKD     7
    556     55     HKD     7
    562     55     HKD     8

  • 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

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

  • 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

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

Maybe you are looking for

  • WSM Managed server starts in ADMIN Mode after upgrade to 11.1.1.7

    We have just upgraded our 11g SOA Cluster environment from 11.1.1.4 to 11.1.1.7. The issue is after the upgrade, our WSM servers are starting to ADMIN state with following error. <Sep 25, 2013 7:14:35 AM PDT> <Error> <Deployer> <BEA-149205> <Failed t

  • Tax rate is not coming up in PO

    Hi, The rate is not coming for one of the tax condition type in the PO 1)Tax percentage 12 percent is maintained against the condition type in FV11. 2)Calculation schema is proper. 3) Tax code is maintained properly . this problem has arised after mi

  • Can't get into MyVerizon from iPhone

    I keep trying to log onto My Verizon from my iPhone but keep getting the message "unable to process you request, please try again later." Why is this happening? I did get into MyVerizon from my desktop without any problems..

  • Can't open PSE, keep getting licensing agreement

    Since today, when I try to open PSE, I get a Elements Organizer pop-up that contains the licensing agreement.  When I click Accept, it keeps popping up over and over again.  Once in a while, it goes to another screen to enter my key.  I enter the key

  • Incremental RMAN backup

    Dear all, How could i eradicate the below error ? 1002,07-DEC-07,RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ========= ====== 1002,07-DEC-07,ORA-19641: backup datafile checkpoint is SCN 1746331111 time 09/19/2007 22:09:11 1002,07-DEC-07,R