Query to show stock value per group

Hi Experts
Would it be possible to create a query which would show me the stock value per item group in SAP?   I know this can be done through Stock Audit report etc, but as we have over 300 item groups I would like to see a report which show me only the group name and the stock value within that group.
Thanks
Geoff

Hi Gordon,
The 2% will be because in almost all cases the query is using Last Purchase Price to calculate the value, but the stock balance on 130000 account in Financials is being generated from the FIFO values of stock.   It is a problem we come up against a lot in calculating stock values - we probably wouldnt have gone down the FIFO route originally had we known!
Regards
Geoff

Similar Messages

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • How can I check stock value per valuation class at a certain period

    Hi,
    I have done this several times but with material ledger, but if I don't have material ledger available, how can I check the total stock value per valuation class for example at a certain period, lets say december 2012?
    I have check menu reports, and also the historical tables, but is there any standard to use?
    Thank you,

    HI,
    Please check transaction
    S_P00_07000140
    S_P00_07000139

  • Query to show the values of Keyfigures with above 200(201,202.....) as 200

    Hi all,
    query has to show the values of keyfigures with above 200(201,202.....) as 200.
    for example
    james         200
    willy           180
    Jhones       450
    kiris            204 and so on.
    the values above 200 that is 450 204 has 200 in the query output.
    Thanks,
    James

    Hi ganesh,
    Thanks for response.
    but assumption is wrong.
    the values below 200 also needed and the values above 200(400,204) has to show 200 in the output of the report.
    format before the output of the query.
    james 400
    kitty   200
    jhones 180
    francy  204.
    Now my output has to show
    james 200
    kitty   200
    jhones 180
    francy  200.
    I hope you can understand better now.
    Thanks,
    James

  • Query to show BP and discount groups where appropriate

    Hi Experts,
    I need some help in setting up a query to show me whether or not a BP has anything in special prices for business partners.
    Essentilly I just need to report the BP Code, BP Name and Y or N as to whether they have item codes in special prices for BPs.
    Thanks
    Jon

    Hi Jon,
    Try this one:
    SELECT T0.CardCode, T0.CardName, Case WHEN (T0.CardCode NOT IN (SELECT T1.CardCode FROM OSPP T1)) THEN 'N' ELSE 'Y' END AS 'Y/N'
    FROM dbo.OCRD T0
    Thanks,
    Gordon

  • Query to display one row per group based on highest value

    I have the following table and I want to be able to create a query that displays only the highest number based on a group. (see below)
    Acode
    aname
    anumber
    a
    Jim
    40
    a
    Jim
    23
    a
    Jim
    12
    b
    Sal
    42
    b
    Sal
    12
    b
    Sal
    3
    Acode
    aname
    anumber
    a
    Jim
    40
    b
    Sal
    42

    Multiple ways
    using aggregation
    SELECT Acode,aname,MAX(anumber) AS anumber
    FROM table
    GROUP BY Acode,aname
    using subquery
    SELECT Acode,aname,anumber
    FROM table t
    WHERE NOT EXISTS (
    SELECT 1
    FROM table
    WHERE Acode = t.Acode
    AND aname = t.aname
    AND anumber > t.anumber
    using analytical function
    SELECT Acode,aname,anumber
    FROM
    SELECT *,ROW_NUMBER() OVER (PARTITION BY Acode, aname ORDER BY anumber DESC) AS Rn
    FROM table
    )t
    WHERE Rn = 1
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • BEx QUERY - pre filter characteristic values (material group)

    hi gurus
    i have a bex query where the user is asked to enter a material group value, this query is for planning some kind of material groups, so i need to show in the match code for material group (variable screen) just the material groups related to this query.
    For example, material group 0matl_group in rsdmd looks like this:
    M1
    M2
    M3
    M4
    M5
    M6
    M100
    I just wanna show in variable screen the first five material groups so the user can select one of them, i dont wanna show all the 100 material groups
    regards
    joker

    Hi ,
    I am not sure but You can try writing a customer exit code .
    create a interval variable of type customer exit .
    In the customer exit code write the code :
    In I_step = 1
    read the material group master data table in your case or the source from which you get the material group .
    write a code to read the first five records .
    In the low value read the first record.
    and in high value read the fifth record .
    your user should get only the first five materials to input in this case .

  • Variable entry screen for query doesnt show selection values.

    Hi,
    I've created a query with date varibale Quarter From-To. When i execute this query, the variable entry screen pops up but when i try to select values just shows ??? and not the text.
    if i run the same query in RSRT the variable entry screen pops up but here the selection values are present for me to choose from.
    can anyone tell why the values arent showing when the query is executed.
    Thanks

    yes, it seems to be a problem with NetWeaver BI BEx Java Web runtime as it works in RSRT and web analyzer. Found a note on marketplace note 125357 - No values displayed for attributes in input help but this did not resolve issue.
    A call has been raised now as it seems to be a product fault

  • Query to show stock quantity

    Hi Friends,
    I have this data in a table, which stores quantity of items on the basis of tickets No.(issuing items from ticket)
    This table also save data from receipt(Receipt items).
    This is my table data:-
    vc_id vc_date nu_qty ch_flag tick_no tic_date
    1 01-10-2009 2000 A
    2 11-10-2009 20 S 201 09-10-2009
    3 12-10-2009 10 S 201 09-10-2009
    4 12-10-2009 20 S 202 10-10-2009
    5 13-10-2009 30 S 201 09-10-2009
    6 13-10-2009 10 S 203 10-10-2009
    7 14-10-2009 1000 A
    8 14-10-2009 20 S 202 10-10-2009
    Now i would like to query so that it show data(Period Wise) like:-
    from vc_date between 01-10-2009 and 12-10-2009
    Date Tick No. Tick Date Received Qty Issue Qty Balance Qty
    01-10-2009 2000 2000
    12-10-2009 201 09-10-2009 2000 30 1970
    12-10-2009 202 10-10-2009 1970 20 1950
    How to accomplish it ?
    Regards
    KarTiK PareeK

    SQL> create table mytable (vc_id,vc_date,nu_qty,ch_flag,tick_no,tic_date)
      2  as
      3  select 1, date '2009-10-01', 2000, 'A', null, null              from dual union all
      4  select 2, date '2009-10-11', 20  , 'S', 201 , date '2009-10-09' from dual union all
      5  select 3, date '2009-10-12', 10  , 'S', 201 , date '2009-10-09' from dual union all
      6  select 4, date '2009-10-12', 20  , 'S', 202 , date '2009-10-10' from dual union all
      7  select 5, date '2009-10-13', 30  , 'S', 201 , date '2009-10-09' from dual union all
      8  select 6, date '2009-10-13', 10  , 'S', 203 , date '2009-10-10' from dual union all
      9  select 7, date '2009-10-14', 1000, 'A', null, null              from dual union all
    10  select 8, date '2009-10-14', 20  , 'S', 202 , date '2009-10-10' from dual
    11  /
    Tabel is aangemaakt.
    SQL> select max(vc_date) vc_date
      2       , tick_no
      3       , tic_date
      4       , sum(case ch_flag when 'A' then nu_qty end) received_qty
      5       , sum(case ch_flag when 'S' then nu_qty end) issue_qty
      6       , sum
      7         ( nvl(sum(case ch_flag when 'A' then nu_qty end),0)
      8           - nvl(sum(case ch_flag when 'S' then nu_qty end),0)
      9         )
    10         over (order by max(vc_date),tick_no) balance_qty
    11    from mytable
    12   where vc_date between date '2009-10-01' and date '2009-10-12'
    13   group by tic_date
    14       , tick_no
    15   order by vc_date
    16       , tick_no
    17  /
    VC_DATE                TICK_NO TIC_DATE            RECEIVED_QTY  ISSUE_QTY BALANCE_QTY
    01-10-2009 00:00:00                                        2000                   2000
    12-10-2009 00:00:00        201 09-10-2009 00:00:00                      30        1970
    12-10-2009 00:00:00        202 10-10-2009 00:00:00                      20        1950
    3 rijen zijn geselecteerd.I'm not entirely sure, but I hope this is what you want ...
    Regards,
    Rob.

  • How to restrict aggregation to top-N values per grouping?

    Hi all,
    Using Oracle's EMP table as an example, the following query sums the total of all salaries for each department.  How can the query be altered (hopefully, in a simple manner) so that it will only sum the top N salary values for each department? 
    select deptno, sum(sal)
      from emp
      group by deptno
      order by deptno
    Hopefully, the query doesn't need to be rewritten or altered significantly.  I'm hoping there is a simple and straight-forward approach.
    Thank you so much,
    Kim

    ... sum the top N salary values for each department? 
    The ethernal doubt: does 3 denote positions or values
    with
    t as
    (select deptno,sal,
            dense_rank() over(partition by deptno order by sal desc) rnk
       from emp
    select deptno,
           sum(sal) top3_sum
      from t
    where rnk <= 3
    group by deptno
    order by deptno
    DEPTNO
    TOP3_SUM
    10
    8750
    20
    10075
    30
    5950
    Regards
    Etbin
    Message was edited by: Etbin Oops! should have looked before posting as I got distracted. My bad.

  • Query key figures showing incorrect values

    Hi,
    key figures in my query are showing incorrect values NO CALC POSSIBLE
    Data in the cube is coming from different datasources and the cube is compressed.
    this is how data in the cube looks like
    plant    Unit   currency    Stock Quantity    Stock Value   total ( *** key figure ( inflow and outflow)
    P001    ST                         1000                   0 
    P001             EUR                                    100
    Query result
    plant       stock(PC)            Stock Quantity   Stock Value       total ( cumy figure ( inflow and outflow)
    P001       No Cal possible    1000                  100                   No Cal possible
    How do I resolve in query or cube level so that the NO CALC possible is not displayed.
    thanks

    Hi,
    Indeed my cube is a copy of 0IC_C03.
    Could you please explain more about the filtering.
    I have the following key figures
    0TOTALSTCK
    0ISSTOTSTCK
    0RECTOTSTCK
    ZISSSTCK_VALUE
    ZREC_VALUE
    ZTOTSTKVALUE
    ZTOTSTKVALUE is CKF with inflow and outflow of ZISSSTCK_VALUE
    ZREC_VALUE
    Whenever there is 0 it displays NO CALC possible. I would like to have it blank or 0s.
    thanks

  • Valuated stock value ( 0VALSTCKVAL ) - 0IC_C03

    Hi,
    The std  non cumulative keyfig valuated stock value ( 0VALSTCKVAL ) of Inventory cube 0IC_C03 has exception aggr. as 'LAST VALUE'  with ref char as 0calday.  Could somebody throw light on the calculation of this keyfig?  The query sometimes shows the value as the diff of Issue value & Receipt value but sometimes I'm not able to derive the value that comes up in the query..
    This is really urgent. All help will be highly appreciated.
    Thanks,
    Ritu

    Hi Vijay & Jaspreet,
    Sorry for the delay in replying.. was stuck with something else. Thanks for your explanations. But still the keyfig 0VALSTCKVAL  is not consistent with the logic.  For some materials, it calculates correctly. But for some I'm not able to figure out the calculation based on the 0IC_C03 records ( based on Issueval & Receipt values).
    One e.g. is shown below:
    Plant  Material                        CalDay       Curr      <b>0ISSVS_VAL   </b> <b>0RECVS_VAL</b>
    12T1  000000100000000016     03/27/2006  USD        6.12       0.00
    12T1  000000100000000016     03/26/2006  USD     1.02     0.00
    12T1  000000100000000016     03/25/2006  USD     88.40     0.00
    12T1  000000100000000016     03/22/2006  USD     0.34     0.00
    12T1  000000100000000016     03/21/2006  USD     1.19     0.00
    12T1  000000100000000016     03/20/2006  USD     0.85     0.00
    12T1  000000100000000016     03/17/2006  USD     1.53     0.00
    12T1  000000100000000016     03/16/2006  USD     2.55     0.00
    12T1  000000100000000016     03/15/2006  USD     2.04     0.00
    12T1  000000100000000016     03/14/2006  USD     12.24     0.00
    12T1  000000100000000016     03/13/2006  USD     9.35     0.00
    12T1  000000100000000016     02/24/2006  USD     0.00     331.67
                                                                      sum      125.63     331.67
    The Query shows the values as shown below :
    Value of Valuated Stock      Receipt Value, Valuated Stock    Issue Value, Valuated Stock
    $ 242.40                                   $ 331.67                                    $ 125.63
    I'm just wondering how the 242.40 came up...
    Your input will be highly appreciated..
    Thanks,
    Ritu

  • Stock Values for previous period on batch number

    Need to show report which shows stock value and levels on a certain period (previous) by batch numbers.
    Report MMBE shows current stock levels per batch.
    Report MB5L shows stock value on a certain period (previous) but with no batch information
    Is there any standard reports which you can see all stock values and levels for the previous period on batch?
    Thanks

    Hi,
    Good morning and greetings,
    Please go through the following link
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/2839124f7811d18a150000e816ae6e/frameset.htm
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • BW showing Negative Material Valuated stock value !

    Experts,
    in BW i am i am getting all Negative valuated stock value for all material. can anybody suggest what could be the issue ?
    in R/3 if the valuated value is $100, then in bw its showing the same value but Negative.
    please help

    Hi,
    I had loaded the infocube not correctly. see http://www.google.de/url?sa=t&rct=j&q=inventory%20management%20how.to&source=web&cd=8&ved=0CHgQFjAH&url=http%3A%2F%2Fwww.sdn.sap.com%2Firj%2Fscn%2Findex%3Frid%3D%2Flibrary%2Fuuid%2Ff83be790-0201-0010-4fb0-98bd7c01e328%26overridelayout%3Dtrue&ei=SSxFT9jtLIf04QTq2IGsAw&usg=AFQjCNET9rFiwqY_VrvvCkCktnPxHNhRvg&sig2=2Q5GFescGLZrCbQJXXggAA&cad=rja
    1. load datasource 2lis_03_bx into the infocube
    2. compress the request -> check the flag "marker update". You have to refresh the stock (flag is not set).
    3. check the actual stock with a query. Compare it with the ERP - transaction MB5B.
    4. load the datasource 2lis_03_bf with INIT.
    5. compress the request -> check the flag "marker update". Now, DON'T to refresh the stock (flag is set).
    6. check the historial stock with a query. Compare it with the ERP - transaction MB5B.
    now, daily:
    7. load the datasource 2lis_03_bf with DELTA.
    8. compress the request -> check the flag "marker update". Now, you have to refresh the stock (flag is not set).
    9. check the actual stock with a query. Compare it with the ERP - transaction MB5B.
    Sven

  • Query - Stock Value (On a Selected Date)

    Hi all
    I came up with the below query to display the stock value at a given date in the past.The total value is correct as per the Inventory Audit report. However, it displays the total value for the two warehouses that we have, yet I want it to display the value separately per warehouse. My chart of accounts has only one (general) account defined.
    SELECT T0.[Debit]-T0.[Credit] FROM [dbo].[JDT1]  T0 WHERE T0.[Account] ='XXXX' AND  T0.[RefDate] <='%0'
    Anyone with an idea about how I can I can display the values separately? Thank you.
    Regards,
    Henry

    Hi Gordon,
    Many thanks, it worked great.. I'm able to include warehouse selection too.
    out of curiosity, what does the T0.Cogsval contain?
    Regards,
    Henry

Maybe you are looking for

  • Running Xcode 3.2.3 for the first time, hitting an error immediately

    Hello. I'm learning Objective-C from a book ("Beginning Mac Programming"), and I've run into an error right out of the gate. I've checked the book's errata, as well as left a message with the author, but neither have solved the issue. Here's what hap

  • Oracel 9i Portal on Redhat 7.1

    When running the Portal configuration assistant I get an ORA 00600 error during the creation of database objects in the remote database. I have set the shared_pool and java_pool to the recommended sizes. The install manual does not give a recommended

  • How to  upload and display image using bsp application

    hi I  just wants to know that 1- how to  upload image from BSP page with attachment into sap server .? 2-how to display image in to BSP page(webpage). thanks

  • Ultra 10 + Solaris 10, Ethernet adapter not displaying

    Ok please bear with me as I'm a total newbie when it comes to sun hardware and solaris. The ethernet adapter on my Ultra 10 doesn't show up in ifconfig -a and neither does it show up in the GUI tool. The only thing showing is the loopback lo0. How ca

  • How to put a value into the Gauge object

    Hi Experts I would like to use the DS_1.getData() command to retrieve data from a query and place it into a gauge (standard object in DS). What I understand is that the getData command retrieves a float value and the gauge object expects an integer v