How to find total stock in a plant

Hi.
iam an abap developer i need to print a report which shows material and  total stock in plant.tell me filed name which display total stock
Thank you,
madhu

Hi
The plant stocks are stored in these tables
MARD Storage Location Data for Material
MCHB Batch Stocks
MKOL Special Stocks from Vendor
MSKA Sales Order Stock
MSKU Special Stocks with Customer
MSLB Special Stocks with Vendor
MSPR Project Stock
you can get the Stokc filed from the tables.
Thanks & Regards
Kishore

Similar Messages

  • How to find total no of record in cube

    Hi Experts,
    How to find total no of records in a cube.
    Thanks in Advance.

    Hi
    If you want total number of records in a CUBE then you have to check in both F Table and E table.
    Go to LISTSCHEMA tcode in your system, give your CUBE name and execute.
    You will fine two table E and F table
    goto SE16 -->give the table name and click on number of entries.You will get number of records.
    Check the below thread
    No of records in /size of Info cube
    Regards,
    Venkatesh

  • How to find total recs in a local table for a particular condition

    Hi,
    How to find total recs in a local table for a particular condition?
    Thanks,
    CD

    Well, you may want to try this as well, and compare to the LOOP way.  Not sure what kind of overhead you may get doing this way. Here ITAB is our main internal table, and ITAB_TMP is a copy of it.  Again I think there may be some overhead in doing the copy.  Next, delete out all records which are the reverse of your condition.  Then whatever is left is the rows that you want to count.  Then simply do a LINES operator on the internal table, passing the number of lines to LV_COUNT.
    data: itab type table of ttab.
    data: itab_tmp type table of ttab.
    itab_tmp[] = itab[].
    delete table itab_tmp where fld1 <> 'A'.
    lv_count = lines( itab_tmp ).
    Regards,
    Rich Heilman

  • How To Find Opening Stock And Value For a Material

    Hi Experts,
    How To Find Opening Stock And Value For a Material  in Given Dates
    Moderator Message: Search.
    Edited by: kishan P on Sep 15, 2010 4:05 PM

    Thanks For Answering.....
    But I Need Any Function Module To Get Opening Stock And Value For Given Material With in Dates.

  • How to find total memory for Oralce Memory utilization

    Hi,
    How to find total amount of memory utilized by oracle including SGA+PGA+PROCESS
    Thanks,
    Abk

    Is you OS 32-bit ? If you add /3gb in boot.ini , then it will limit oracle.exe to go only upto 3gb.
    Add /PAE in the boot.ini and remove /3gb.
    then use db_block_buffers parameter instead of db_cache_size
    for using db_block_buffers, you need to set another parameter also.
    use_indirect_data_buffers=true
    db_block_buffers=<number of blocks
    db_block_buffers=db_cache_size in kilobytes /db_block_size
    (since db_block_size is 8 kllobytes by default in Windows..
    {color:blue}Please refer Metalink Note : [373602.1|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=373602.1]{color}
    Edited by: Mahesh Menon on Apr 29, 2009 2:56 PM

  • How to find Blocked Stock Value for a Material Division

    Hi Every Body,
    I have gone through the notes 589024,637927 to find out Blocked Stock value for a Particular Material at different plants . But I have to get Blocked Stock value at each Material Division . Kindly give some light on it to get it.
    The steps are same for finding the Consignment stock value and Transit Stock value. So kindly help me if any body has already worked on it.
    With rgds,
    Anil Kumar Sharma .P

    Hi Anil,
    well these notes work but they're prerequisites that have bothered me and unabled me to fulfill our requirement, for instance, having the material number in the drilldown and so on in order to perform the calculation during query execution.
    I believe there is not much more alternative if you still want to calculate valuations accurately at SLOC or any other stock indicator during query execution...
    I started from the basic fact that valuation of material underneath the plant/valuation area  (in my case 1 PLANT = 1 VALAREA).; precisely because all movements doens't carry all information as per the note explanation.
    So what we have done is to pull a cube with all Article/Sites MAP values; this can be done in several ways; MBEW/MBEWH are holding MAP values per fiscal periods; it has sufficient for us until now: our operations are asking to track MAP values more frequently.... So I am investigating how to work this out and have several alternatives:
    - MSEG has additional fields (available in the extract structures) like Total Stock Qty/Value PRIOR the posting. There is as well an indicator telling if the posting is relevant for the valuation (if it is going to affect the Qty/MAP or not). So it is possible to get the MAP after the posting for each material movement.
    - Create a change pointer on MBEW/MBEWH.
    - MKPF has two convenient fields (CPUDATE and CPUTIM) from which we could build our own delta extractor tracking MAP changes
    In BW the Idea  is to have a cube registering the Article/Plant valuation in time (non-cumulative) and then fulfill our queries via a multicube...
    hoping this will help you in solving your issue; I am of course following any topic in this matter so would appreciate your input....
    Olivier.

  • MCBZ report how to get total stock qty calculation?

    Dear Guru,
            if i checking one material in Tcode:MMBE having unrestricted stock is 356 & reserved qty is 56. After this when i am executing report MCBZ-- Current stock reqmt list & get Total stock qty is 120 for same material.
    can any one tell me how it is calculated (i.e. Total Stock).
    My requirement is we want to see a report which shows diffrence bewtwwen satfey stock & total stock. so i am using this report, if any othere suggestion then please reply me.
    Best Regards,
    Dev

    Dear,
           You can see in MD04 t-code here u can find safety stock and inventory stock.
    Regards
    Ravi

  • How to find total number of records in a BDoc?

    Dear all,
    I have replicated about BP 1088 records from ISU into CRM system with block size 100. Technically on SMW01, for each successfully processed BDoc, there will be 100 records (corresponds to 100 block size). But due to some failed BDocs, not all "successfully" BDocs will have 100 records each, some may have only 1 record inside...or 30...or 88 for example. So, may i know how to find or is there a report i can look into to find the total number of records clearly shown for each of the successfully processed green status BDocs???
    Please help and points will be rewards!!
    Thank You
    Best Regards,
    CK

    I am just showing this to show how to get the rowcount along with the cursor, if the program has so much gap of between verifying the count(*) and opening the cursor.
    Justin actually covered this, he said, oracle has to spend some resources to build this functionality. As it is not most often required, it does not makes much sence to see it as a built-in feature. However, if we must see the rowcount when we open the cursor, here is a way, but it is little bit expensive.
    SQL> create table emp_crap as select * from emp where 1 = 2;
    Table created.
    SQL> declare
      2   v_cnt     number := 0;
      3   zero_rows         exception;
      4  begin
      5    for rec in (select * from (select rownum rn, e.ename from emp_crap e) order by 1 desc)
      6     loop
      7        if v_cnt = 0 then
      8           v_cnt := rec.rn;
      9        end if;
    10     end loop;
    11     if v_cnt = 0 then
    12        raise zero_rows;
    13     end if;
    14   exception
    15    when zero_rows then
    16      dbms_output.put_line('No rows');
    17   end;
    18  /
    No rows
    PL/SQL procedure successfully completed.
    -- Now, let us use the table, which has the data
    SQL> declare
      2   v_cnt     number := 0;
      3   zero_rows         exception;
      4  begin
      5    for rec in (select * from
      6          (select rownum rn, e.ename from emp e)
      7          order by 1 desc)
      8     loop
      9        if v_cnt = 0 then
    10           v_cnt := rec.rn;
    11           dbms_output.put_line(v_cnt);
    12        end if;
    13     end loop;
    14     if v_cnt = 0 then
    15        raise zero_rows;
    16     end if;
    17   exception
    18    when zero_rows then
    19      dbms_output.put_line('No rows');
    20   end;
    21  /
    14
    PL/SQL procedure successfully completed.Thx,
    Sri

  • How to find total no of records in DSO

    How to find the total no of records in a DSO?

    Hi,
    To check the num of entries in DSO,
    in DSO the data always comes from Active data table(Since DSO has 3 tables-> New data,Active data, Change log tables)
    just right click on DSO and go to manage DSO, then select "Active data table"  tab and go to Contents.. There u can see the data which you loaded in to DSO... So there u can get num of entries..
    Or
    go to TCODE : SE11 and give ur Active DATA table name.. and click display....
    then press ctrlshiftF5 to see the contents of tha table....
    Thanks And Regars
    MAnjunath P

  • How to find total in-use connection of a connection pool in Sun apps 8.1 ur

    Hi
    Thank you for reading my post.
    how i can find total open (in-use)connection of a connection pool ?
    sometimes my application take some longer time to do an specefic job , now i want to see how much connection of the pool is open and in use
    thanks

    Hi,
    Sun app.server provides monitoring facility using which we can find how many connections are in use, how many clients are in wait-queue etc.,
    You can refer the following URL of
    Sun Java System Application Server 8 - Administration guide.
    http://docs.sun.com/app/docs/doc/819-2554/6n4r8s7ti?a=view
    for enabling monitoring and getting monitoring values for a particular conn. pool
    Thanks,
    -Jagadish

  • How to calculate total stock quantity in cube

    Dear Master
        I want to verify the data between BI report and cube whether correct or not.My report name is stock summary. It's giving report for Total quantity stock (0TOTALSTCK) for paricular date. This KF(0TOTALSTCK) inflow is 0RECTOTSTCK and outflow is 0ISSTOTSTCK. Somebody telling to get the Total quantity stock (0TOTALSTCK) value, I have to use following formula 0RECVS_VAL (Value Received into Valuated Stock) - 0ISSVS_VAL (Value issued from valuated stock). Please advice me which formula should I use to get the total stock quantity?.
    Thanks a lot in advance
    Raja

    Please let met understand better, you have the following keyfigures:
    - Receipts (Cumulative)
    - Issues (Cumulative)
    - Difference (Cumulative) populated during URules = Receipts - Issues (any routine with elaborated calculation behind?
    - Stock (non-cumulative InFlow = Receipts, OutFlow = Issues)...
    Is this correct?
    Olivier.

  • How to print total stock in smartform by material wise

    Dear Experts,
    I am trying to print total material stock which is issued and receipt during entered date in a smartform ,Here  I want to print totatl stock issued n receipt by material wise in seperate line .For that I fetch alldata and put into one internal table .In smartform I am using table for printing data.
    Edited by: BharatRathod on Mar 8, 2010 11:43 AM
    Edited by: BharatRathod on Mar 8, 2010 11:46 AM

    Hi,
    Try using the CALCULATIONS tab in the tables for printing the total stock in smartforms.
    Regards,
    Sharin.

  • How to find to stock movements

    Hi,
    Can anyone tell me how to track the stock movements ie  receipt -issue = balance ..
    my issue is , in mb5b when i gave date selection as 01-04 to 30-04 - my stock bal is 1500 Kg, where as in mat master (a/cing view ) for period 1 2009, the stock showing as 0 , as well in table mbewh also 0 .. so in this case tell me how i can prove that the stock becomes zero??

    thanks jurgen,
    I'm comparing the stock as of 1-4 to 30-4 (i.e period 01), here my stock in MM03 (period 1 only) is zero where as in MB5B it's 1500 kg (for 1.4 to 30.4) ???  how this will happen and how to track it?? and i checked there is no document posted in may  as posting date as april.. there is no such doc,.what ever posted and entered in april only..
    Edited by: UJ on May 7, 2009 12:37 PM

  • How to consider the stocks of other plants in MRP run

    Hello All,
    I have a requirement in  which  A finished material which it´s planning and production is on PLANT 1 and and is transfered to plant 2 (there is no production and no planning on this plant, it is used for storage only). In that case, I would like the MRP to check the stock of finished material both in plant 1 and 2 for creating planned orders .
    I know  this can  be possible  with APO .  but is there any other way round we can do this like MRP area or scope of planning or some z developemenmts.
    Thanks in advance
    Regards
    Anupam Sharma

    Is there any stock at production plant?  Where does the goods issue to sales occur?
    If both plants can have stock and sales can occurs in both plants then it is the issue not only stock but also sales order consumption with planned independent requirement.  You need to have two BADI to do so.  First is the one you mentioned and the flexible PIR also (MD_PIR_FLEX_CONS).
    If only storage plant has stock and sales occurs here, then you may want to explore special procurement type produce in other plant and make storage plant a planning plant.  The receipt of production order at production plant will posted into storage plant directly.
    If sales occurs in storage plants, and there are stock in both plant, use special procurement type transfer from others (40 as standard).  When you run MRP, the system will check stock at storage plant first, then if shortage, create stock transfer request to production plant.  At production plant, the stock transfer request will be your demand to offset with stock there before create planned order.
    Like other comments stated previously, SAP cannot handle the multiple plants planning very well.

  • How to find total no of items ordered

    Hi all,
    Pls let me know how to fine total number of items ordered per given purchqge order?
    ex:
    purchage order    item    ordered
    100001            1       4
    100001            1       5
    100001            1       7
    100001            1       6
    for above purchage order total ordered= 22
    I dont know field for quantity ordered.
    Thanks in advance,
    Shashikanth.

    po no.  | item   |  ordered
    100001      1          4
    100001      1          5
    100001      1          6
    100001      1          7
    sort itab by pono item ordered
    at end of order item sum.
    write/ ordered.
    Regards
    Raja

Maybe you are looking for