Query for number of cases in a Warehouse

Hi Everyone,
Please could someone help me ? - We are looking for a query to bring back the number of cases held in a particular warehouse.
The stock in warehouse report - does not total the number of cases.
Any help would be greatly appreciated.
Thanks
Victoria

Hi,
It depends on setting in the item master data. If your items per unit is 6, then your received quantity in ware house equals to 6 if your quantity is 1.
For example:
Items per unit ---6
Received quantity through GR--->1
Then quantity in warehouse = 1 x 6 = 6
Thanks & Regards,
Nagarajan

Similar Messages

  • Query for Number generation

    hi all,
           Does anyone have an Query which i can use for generating an automatic generation of Number in sales order.
    Suppose whenever sales order add it generate no. serially like 01,02,03........... and so on in UDF.
    thanks and regards
    rahul

    Hi Rahul..
    The number in sales order is already automatic. If you want to have an UDF whit another numeration, different from the default series, you must create a  query that select the max numeration +1 from UDF.
    E.g.
    The query:
    Select max(UDF_field)+1 from UDF_field
    Let me know if is the right solution

  • OTM  filter/query for the test cases with Test Steps seciton = Empty?

    Hi Folks,
    How to query/ fliter for all those test cases which does not have any test steps. They Test Step Section is empty. How to acheive this in OTM?

    this happens particularly when multiple people work on the same test case to update it from multiple machines.
    Edited by: OATS Explorer on Feb 22, 2012 4:10 AM

  • Crosstab query for a report

    I've created the below crosstab query for a report.
    Select Grouping_Condition,Warehouse,Max(Value) Over (Partition By Grouping_Condition,Warehouse) As Total,
    Sum(Value) Over (Partition By Warehouse) As Total_Containers_Per_Warehouse,
    Sum(Vat1Ue) Over () As Total_Containers,
    (Max(Vat1Ue) Over (Partition By Grouping_Condition,Warehouse))
    /(Sum(Vat1Ue) Over (Partition By Warehouse))*100 As Total_Pct
    From
    Seleect Grouping_Condition,Warehouse,Count(*) As Value
    From
    Set1Ect
    T1.Warehouse,Shipped_Weight As Shipped_Tons,T1.Max_Weight As Maxtonnes,
    Case When (Shipped_Weight)< (T1.Max_Weight*0.001)*0.95 Then 'containers_under_95'
    When (Shipped_Weight*0.001) Between (T1.Max_Weight*0.001)*0.95 And (T1.Max_Weight*0.001) Then 'containers_95_100'
    Et1Se 'containers_above_weight'
    End Grouping_Condition
    From
    Tabt1E1 T1
    ,Tabt1E2 T2
    ,Tabt1E3 C
    Where
    T1.Co11 = T2.Col1
    And T1.Col2=C.Col2
    And More Conditions
    Where Warehouse In ('W1','W2','W3','W4','W5')
    Group By (Grouping_Condition,Warehouse)
    The Above Query Gives Me Output Something Like Below:
    Grouping_Condition Warehouse Total Total_Containers_Per_Warehouse Total_Containers Total_Pct
    Containers_95_100 W1 5 10 60 50
    Containers_Under_95 W1 5 10 60 50
    Containers_95_100 W2 10 20 60 50
    I've Got Report In The Below Format
    W1 W2 W3 W4 W5 Total
    Total_Containers 10 20 60
    Containers_95_100 5 10 15
    Containes_95_100_% 50 50 ????
    I Need To Calculate The Total Percentage In The Above Table With ????
    Any Help Is Much Appreciated..

    It appears as though you already have your groupings and counts per grouping, but require a ratio of each groupings count against all other counts. Is that correct ?
    If so, try the new 11g analytic function, something like this:
    select Grouping_Condition
          ,Warehouse
          ,ratio_to_report(Value) over () as Count_Ratio_over_Report
    ..

  • Need help writing a query for following scenario

    Hi all, I need some help writing a query for the following case:
    One Table : My_Table
    Row Count: App 5000
    Columns of Interest: AA and BB
    Scenario: AA contains some names of which BB contains the corresponding ID. Some
    names are appearing more than once with different IDs. For example,
    AA BB
    Dummy 10
    Me 20
    Me 30
    Me 40
    You 70
    Me 50
    Output needed: I need to write a query that will display only all the repeating names with their corresponding IDs excluding all other records.
    I would appreciate any input. Thanks

    Is it possible to have a records with the same values for AA and BB? Are you interested in these rows or do you only care about rows with the same value of AA and different BB?
    With a slight modification of a previous posting you can only select those rows that have distinct values of BB for the same value of AA
    WITH t AS (
    SELECT 'me' aa, 10 bb FROM dual
    UNION ALL
    SELECT 'me' aa, 20 bb FROM dual
    UNION ALL
    SELECT 'you' aa, 30 bb FROM dual
    UNION ALL
    SELECT 'you' aa, 30 bb FROM dual
    SELECT DISTINCT aa, bb
      FROM (SELECT aa, bb, COUNT(DISTINCT bb) OVER(PARTITION BY aa) cnt FROM t)
    WHERE cnt > 1;

  • Query for item warehouses stock in a row

    hi all,
    How to retreive item warehouse stock in a row using query ?
    SELECT T0.ItemCode, T1.ItemName, T2.ItmsGrpNam,
    (Select WhsCode from OITW Where
    WhsCode=T0.WhsCode and ItemCode=T0.ItemCode) as 'Wh',
    (Select OnHand From OITW Where
    Whscode = T0.WhsCode and Itemcode=T0.ItemCode) as 'Whstck'
    FROM OITW T0  INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod
    WHERE T0.ItemCode NOT IN 'a-item'AND
    T2.ItmsGrpNam LIKE '%%test%%'
    and T0.Onhand > 0
    ORDER BY T0.ItemCode
    Anyone correct query so that it will retrieve item warehouse stock in a single row.
    Thanks
    Jeyakanthan

    I have tested your query, the result is just like you wish. The code can be simplified to:
    SELECT T0.ItemCode, T1.ItemName, T2.ItmsGrpNam, T0.WhsCode as 'Wh',T0.OnHand as 'Whstck'
    FROM DBO.OITW T0 
    INNER JOIN DBO.OITM T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN DBO.OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod
    WHERE T0.ItemCode NOT IN ('a-item') AND T2.ItmsGrpNam LIKE '%[%test%]%'
    and T0.Onhand > 0
    ORDER BY T0.ItemCode, T0.WhsCode
    If you want each item has only one row and warehouse on hand column-wised, you have to use as much as SELECT for each column in according to your number of warehouses. It would be look like this one:
    SELECT T0.ItemCode, T0.ItemName, T1.ItmsGrpNam,
    (SELECT OnHand FROM OITW WHERE ItemCode = T0.ItemCode AND WhsCode Like 'Whs1') AS 'Whs1 On Hand' ,
    (SELECT OnHand FROM OITW WHERE ItemCode = T0.ItemCode AND WhsCode Like 'Whs2') AS 'Whs2 On Hand' ,
    (SELECT OnHand FROM OITW WHERE ItemCode = T0.ItemCode AND WhsCode Like 'Whs3') AS 'Whs3 On Hand'
    FROM DBO.OITM T0 
    INNER JOIN DBO.OITB T1 ON T1.ItmsGrpCod = T0.ItmsGrpCod
    WHERE T0.ItemCode NOT IN ('a-item') AND T1.ItmsGrpNam LIKE '%[%test%]%'
    and T0.Onhand > 0
    ORDER BY T0.ItemCode
    Thanks,
    Gordon

  • QBE Error when query by String for Number column

    Hi,
    I have a table with Number column.
    The column structure is like below:
    <af:column>
    <af:inputText>
    <f:validator .../>
    <af:converNumber ..../>
    </af:inputtext>
    </af:column>
    QBE is enabled for this column.
    It works fine when query by Number value, such as '123'. But when I query by string like 'asd', it will return an error.
    Anyone met this problem?

    Hi Arun,
    I am using Jdev 11.1.1.7.0.
    In my case,
    I have a application table, from where user can create new row inline. Some fields in the row have type Long or Number. We are also using <af:converNumber ..../> inside <af:inputText> to do format.
    I do have a query panel above the table. But we want the user can also filter the records using QBE. Other columns are working fine, except the columns with type 'Number' or 'Long'.
    I checked the incident log, below are some useful information:
    Caused by: java.sql.SQLSyntaxErrorException: ORA-01722: invalid number
    Caused by: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT ... FROM ... WHERE ... AND ( ( (MeaRulesEO.DEFAULT_MEA_PERIOD = :vc_temp_1 ) ) )
    It seems 'MeaRulesEO.DEFAULT_MEA_PERIOD = :vc_temp_1' causes the error. Jdev assumes every input from QBE header as number. If String is entered, Jdev will return error.
    I also checked that if the table is read-only, this problem does not exist.
    Please help on this. Thank you.

  • Query for daily sales by warehouse

    Hi
    I need a query for   Daily sales by warehouse.  I am only new to this and struggling with generating.
    ideally it will look like the below.     With no selection criteria as I would like to schedule the report to email out at the end of each day.
    Warehouse      Revenue      GP          GP%
    NSW               $xxxx             $xxx       35%
    Would someone mind helping
    thanks

    thankyou ,   But i have multiple warehouse and i dont want to use a selection criteria.
    to expand on the original example
    Warehouse      Revenue      GP          GP%
    NSW                 $xxxx             $xxx           35%
    QLD                  $xxx               $xx            32%
    VIC                  $xxx               $xx            32%
    Also the results should only show figures for the day the query is executed
    Any help is appreciated.
    Similar layout to this,except using query and whs code.    the below is generated using sales analysis and customer group. 

  • MRP - want to create query for Exception message number (MD04)

    Dear all MM kings
    consider  i had one purchase against xxxx material , if i go to MD04  In Exception message number  column i got massage number 20 Cancel process, now i want to know how many purchase order exist  in system having the Exception message number  20
    i want to define query for Exception message number 20
    is there any way to do the same

    Hi,
    There are links on the first thread on this MM board that describe how to produce a query.
    But if you have not done this before and have no ABAP experience, you might find it a bit tricky.
    You need someone to find the tabkle that stores the MRP lists and see if this contains the exception message, first.
    the structure I gave you is probably built dynamically by the program and so may not be available for a query.
    One simpler option is to use the "Collective access" tab in MD04. here you can enter an MRP controller etc. and get a list of materials. You can then find out which of the 8 numbered columns contains the exception message 20 and then sort the list in this sequence (the exception messages are linked to one of the columns and this can be different in every implementation and so I can't tell you which one it is)
    This will not just get the "20" messages unless they have been configured to use a separate column, but at least it is avail;able now without config and may be enough for your purposes.
    Steve B

  • Querying for large number of objects... searchspec limitation

    As part of a product i'm developing i may come across a scenario where i need to query for 100+ specific objects based on ids.
    I know the query input for WS 2.0 has a "searchspec" string field, but based on the sheer number of specific objects i need to query for i'm afraid the string may eventually get too large.
    Is there a way around this? Can i send multiple individual queries in a batch request? Can i add more than one search object to a single query page request? Anything?
    Thanks!
    -Kevin

    A few options available using the WS v2.0 Query methods:
    1. Use Arguments like page size and startrownumber arguments. This will allow you to specify the pagesize of the recordset to be returned and also the starting row number.
    2. The searchspec is a powerful argument and it supports a set of binary and unary operators. Refer the Ondemand user guide for a more complete set of operators supported by searchspec. To narrow the results of your query, you could use the "AND" operator between 2 or more fields in your object query.
    Hope this helps.
    Jaya

  • SD Revenue recognition-Query on Number range for Rev Rec

    Hi Experts ,
    I see that in VF45-Rev Rec overview transaction, the deferred value are captured as required.But when I try posting them into Revenue G/L account, Iam facing the below errors.
    Error Log                                                                               
    1)Accounting document for collective processing 1000002092 was not created                               
    2)For object RF_BELEG 0417, number range interval 88 does not exist FBN1                                 
    3)0148000018 000010 Non-processed revenue line: 0003010501 2009003 000 - successor: 000000 - bal. sheet accts: 0002035000  
      4)0148000018 000010 Non-processed revenue line: VPRS 2009003 000 - successor: 000000 - bal. sheet accts:  
    Can you suggest me the right config i need to do to over come this issue??
    Also can any one explain the significance of this new number range in the FI config??     
    Appreciate your earliest support
    Thanks in Advance
    Banu

    Hi Banu
    For your First query , as the accounting document is not generated that is the reason it has given error also of maintaining number range in FBN1
    For your second query ,  Maintain number range interval 88 in FBN1 with the from and To  number range.
    Just configure then your third problem should also get solved. If it is not solved let us know or else close the thread if your problem is solved
    Regards
    Srinath

  • What is this for? I made no request for anything to Adobe.  Let me know who did this: Your Adobe ID: edited Your Case Number:0213119567 Case Description:download link    This email is in response to support case

    I made no request that would generate a case number.  Can you tell me who did?
    Your Adobe ID: <removed by moderator>
    Your Case Number:0213119567
    Case Description:download link
    This email is in response to support case #0213119567 submitted by M Inez Traylor.

    Good day M Inez,
    Did you contact Adobe last week for assistance in downloading the educational version of Acrobat 9 Pro for Windows after a hard drive crash? That is what this case was in reference to.
    The email you received was an automatic reminder from our system as they case hadn't quite closed out yet.
    -David
    P.S. - I edited out your email address from both your thread title and the body of your post to help protect your privacy.

  • Query for log Parser to get number of hits in a day or week for particular web applications or site collection

    Hi All,
    Want to get the number of hits in a day for a web application with IIS logs. so need to know Query for log Parser to get number hits in a day or week for particular web applications or site collection. Kindly help
    Regards,
    Naveen

    I'm trying to get this from WSS 3.0, Hence using the Log Parser

  • Query for Serial number

    Hello all,
    I want a query for show all the record along with serial number.Here i mentioned a sample table along with data.
    COMPCODE
    ITEMCODE
    ACTIVITY
    DESIGNATION
    QTY
    105
    001
    A13
    D7
    50
    105
    001
    A22
    D7
    44
    105
    001
    A34
    7
    54
    105
    001
    A45
    D7
    34
    105
    001
    A45
    D8
    54
    105
    001
    A52
    D13
    32
    105
    001
    A52
    D14
    3
    105
    001
    A61
    D2
    43
    105
    002
    A12
    D1
    43
    105
    002
    A25
    D1
    53
    105
    002
    A35
    D5
    42
    105
    002
    A35
    D4
    45
    105
    002
    A35
    D3
    65
    105
    002
    A44
    D2
    423
    105
    002
    A55
    D3
    43
    105
    002
    A62
    D4
    65
    These is the sample table along with data.My requirement is I want show the serial number based on the itemcode and activity.
    The final result should be  like this
    COMPCODE
    ITEMCODE
    SLNO
    ACTIVITY
    DESIGNATION
    QTY
    105
    001
    1
    A13
    D7
    50
    105
    001
    2
    A22
    D7
    44
    105
    001
    3
    A34
    D7
    54
    105
    001
    4
    A45
    D7
    34
    105
    001
    4
    A45
    D8
    54
    105
    001
    5
    A52
    D13
    32
    105
    001
    5
    A52
    D14
    3
    105
    001
    6
    A61
    D2
    43
    105
    002
    1
    A12
    D1
    43
    105
    002
    2
    A25
    D1
    53
    105
    002
    3
    A35
    D5
    42
    105
    002
    3
    A35
    D4
    45
    105
    002
    3
    A35
    D3
    65
    105
    002
    4
    A44
    D2
    423
    105
    002
    5
    A55
    D3
    43
    105
    002
    6
    A62
    D4
    65
    I tried write a query  used with row_number() function  but i didn't get the exact output.kindly help me for getting this type of output

    I see, try dense_rank instead:
    SQL> with your_view_resultset as (
      2  select 105 compcode, 001 itemcode, 'A13' activity, 'D7' designation, 50 qty from dual union
      3  select 105, 001, 'A22', 'D7', 44 from dual union
      4  select 105, 001, 'A34', '7', 54 from dual union
      5  select 105, 001, 'A45', 'D7', 34 from dual union
      6  select 105, 001, 'A45', 'D8', 54 from dual union
      7  select 105, 001, 'A52', 'D13', 32 from dual union
      8  select 105, 001, 'A52', 'D14', 3 from dual union
      9  select 105, 001, 'A61', 'D2', 43 from dual union
    10  select 105, 002, 'A12', 'D1', 43 from dual union
    11  select 105, 002, 'A25', 'D1', 53 from dual union
    12  select 105, 002, 'A35', 'D5', 42 from dual union
    13  select 105, 002, 'A35', 'D4', 45 from dual union
    14  select 105, 002, 'A35', 'D3', 65 from dual union
    15  select 105, 002, 'A44', 'D2', 423 from dual union
    16  select 105, 002, 'A55', 'D3', 43 from dual union
    17  select 105, 002, 'A62', 'D4', 65 from dual
    18  )
    19  --
    20  --
    21  --
    22  select t.*
    23  ,      dense_rank() over (partition by t.itemcode order by t.itemcode, t.activity) slno
    24  from   your_view_resultset t
    25  order by t.itemcode, t.activity;
      COMPCODE   ITEMCODE ACT DES        QTY       SLNO
           105          1 A13 D7          50          1
           105          1 A22 D7          44          2
           105          1 A34 7           54          3
           105          1 A45 D7          34          4
           105          1 A45 D8          54          4
           105          1 A52 D13         32          5
           105          1 A52 D14          3          5
           105          1 A61 D2          43          6
           105          2 A12 D1          43          1
           105          2 A25 D1          53          2
           105          2 A35 D3          65          3
           105          2 A35 D4          45          3
           105          2 A35 D5          42          3
           105          2 A44 D2         423          4
           105          2 A55 D3          43          5
           105          2 A62 D4          65          6
    16 rows selected.

  • Qosmio X305 - Part number for second HDD case

    What is the part number of case for put second HD ?
    I need put second HD in my Qosmio, but I don't have case for this.

    Hello
    I dont know the part number. Here it is a user to user forum and you will not find an notebook technician or ASP here.
    In your case I would contact the nearest ASP. They can tell you the part number and order for you.
    On the Toshiba website you can search for authorized service provider.
    Greets

Maybe you are looking for

  • Unable to Log In Error Message

    Hi, I created a repository file by using Oracle BI Administration Tool. My NQSCONFIG file is like below: [ REPOSITORY ] Star     =     TEST_REPOSITORY.rpd, DEFAULT; Then I stoped services and changed instanceconfig file like below for creating web ca

  • My ipod isn't being recognized in itunes and not in my computer

    when i plug my 2nd generation ipod up it won't go to itunes and it wont even register in the computer. But when i plug up the 30 gig ipod it goes directly to itunes and it shows up in the address bar. I ran the diagnostic and it showed that the 2nd g

  • How to keep my song list organized

    Hello This is my first ipod and therefore my first iTunes. I am running win 7 and had no problems installing iTunes, so far so good. The issue I am having is the organization of the music list that are displayed in iTunes, List View, Album, Grid and

  • I need to get rid of my duplicates

    I have just added all my music to my itunes and for some reason at least 90% if my music has duplicates i need a way to hide or delete my duplicates can someone please help me i've tried the display duplicates button but that doesnt really help me

  • "java.lang.OutofMemoryError: PermGen space" mesasge in windows xp 64bit

    Hi !!! I'm using WindowsXp 64bit. As per Mr. HEWizard post SQL Developer on XP x64 Edition "failed to initialize..." I can able to launch Jdeveloper on windowx xp 64 bit. But when I'm trying to create a page, it is giving an error message: "java.lang