Inventory Cube Stock Quantity/Value Issue

Hi Experts,
I have an issue regarding inventory cube about the stock value and quantity.
The Issue is:
1.  I Loaded the 2LIS_03_BX first to initialise the materials opening balance, after compressed ther request with the Marker (checked) .
2.  I loaded the 2LIS_03_BF with Initialize without data transfer infopackage and compressed in the cube
3.  And  I did full load 2LIS_03_BF and compressed with check box selected for marker update.
The issue I have is, when the stock quantity/value  of a material ( BX , for example is taken on Dec.2011) is calculated(non cumulative key figure ex.0VALSTCKVAL/0VALSTCKQTY in the inventory cube) backwards based on Issues and received stock/value of material , I am not getting the value/stock equal to the value when the business started ( i.e for example Dec.2009, time at which the material opening stock is counted and entered in the system).
example:  When I loaded BX ( intialize opening stock), let us suppose for Material A , have 1000kg in Dec 2011.  When the non cumulative key figure (0VALSTCKQTY/0VALSTCKVAL) is calicualted for each month or day , at the end of the period for example Dec.2009 the stock should be 100, but I am getting more than 100 like 150 for example, even though all the issued,received and 0valstckval/0valstckqty are correct upto Dec.2009.
am i missing any steps or please let me your thoughts on this one.
Regards
Vamsi

Hi,
Please follow the steps mentioned in this link.I think 2LIS_03_BX full load should not be compressed with marker update only deltas to be updated in marker table of BF and UM.
http://wiki.sdn.sap.com/wiki/display/BI/StepbyStepLoadingDatatoInventory+Cube
Hope it helps.
Regards,
AL

Similar Messages

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

  • Non-Cumulative vs. Cumulative KeyFigures for Inventory Cube Implementation?

    A non-cumulative is a non-aggregating key figure on the level of one or more objects, which is always displayed in relation to time. Generally speaking, in SAP BI data modeling, there are two options for non-cumulative management. First option is to use non-cumulative management with non-cumulative key figures. Second option is to use non-cumulative management with normal key figures (cumulative key figures). For SAP inventory management, 0IC_C03 is a standard business content cube based upon the option of non-cumulative management with non-Cumulative key figures. Due to specific business requirements (this cube is designed primarily for detailed inventory balance reconciliation, we have to enhance 0IC_C03 to add additional characteristics such as Doc Number, Movement type and so on. The original estimated size of the cube is about 100 million records since we are extracting all history records from ECC (inception to date). We spent a lot of time to debate on if we should use non-cumulative key figures based upon the  standard business content of 0IC_C03 cube. We understand that, by using Non-Cumulative key figures, the fact table will be smaller (potentially). But, there are some disadvantages such as following:
    (1) We cannot use the InfoCube together with another InfoCube with non-cumulative key figures in a MultiProvider.
    (2) The query runtime can be affected by the calculation of the non-cumulative.
    (3) The InfoCube cannot logically partition by time characteristics (e.g. fiscal year) which makes it difficult for future archiving.
    (4) It is more difficult to maintain non-cumulative InfoCube since we have added more granularity (more characteristics) into the cube.
    Thus, we have decided not to use the Cumulative key figures. Instead, we are using cumulative key figures such as Receipt Stock Quantity (0RECTOTSTCK) ,  Issue Stock Quantity(0ISSTOTSTCK)
    , Receipt Valuated Stock Value (0RECVS_VAL) and Issue Valuated Stock Value (0ISSVS_VAL). All of those four key figures are available in the InfoCube and are calculated during the update process. Based upon the study of reporting requirements, those four key figures seems to be sufficient to meet all reporting requirements.
    In addition, since we have decided not to use cumulative key figures, we have removed non-cumulative key figures from the 0IC_C03 InfoCube and logically partitioned the cube by fiscal year. Furthermore, those InfoCube are fiscally partitioned by fiscal year/period as well.
    To a large extent, we are going away from the standard business content cube, and we have a pretty customized cube here. We'd like to use this opportunity to seek some guidance from SAP BI experts. Specifically, we want to understand what we are losing here by not using non-cumulative key figures as provided by original 0IC_C03  business content cube. Your honest suggestions and comment are greatly appreciated!

    Hello Marc,
    Thanks for the reply.
    I work for Dongxin, and would like to add couple of points to the original question...
    Based on the requirements, we decided to add Doc Number and Movement type along few other characteristics into the InfoCube (Custom InfoCube - article movements) as once we added these characteristics the Non Cumulative keyfigures even when the marker was properly set were not handling the stock values (balance) and the movements the right way causing data inconsistency issues.
    So, we are just using the Cumulative keyfigures and have decided to do the logical partitioning on fiscal year (as posting period is used to derive the time characteristics and compared to MC.1 makes more sense for comparison between ECC and BI.
    Also, I have gone through the How to manual for Inventory and in either case the reporting requirement is Inception to date (not just weekly or monthly snapshot).
    We would like to confirm if there would be any long term issues doing so.
    To optimize the performance we are planning to create aggregates at plant level.
    Couple of other points we took into consideration for using cumulative keyfigures are:
    1. Parallel processes possible if non-cumulative keyfigures are not used.
    2. Aggregates on fixed Plant possible if non-cumulative keyfigures are not used. (This being as all plants are not active and some of them are not reported).
    So, since we are not using the stock keyfigures (non cumulative) is it ok not to use 2LIS_03_BX as this is only to bring in the stock opening balance....
    We would like to know if there would be any issue only using BF and UM and using the InfoCube as the one to capture article movements along with cumulative keyfigures.
    Once again, thanks for your input on this issue.
    Thanks
    Dharma.

  • No Quantity/ value update at Movement type

    Hello All,
    At Material type level with valuation area SAP controls check / uncheck Quantity/ Value updating (OMS2)
    In our specific business scaenraios, we use material type (HALB) with valuation area combination with / without Quanity & Value updating. Hnece, above setting will not work in our scenario.
    is it possible to have control of Quantity/ Value updating by using a custom movement (ex: copy of 101 to 1Z1)?
    Really appreciate your thoughts!
    Thanks
    Siva

    Hii shiva, lots of threads are available regarding this .
    have u gone thru.plz search sdn, u will get good reply.
    quantity and value update
    Quantity update and value update in case of account assignment category
    Material Type that updates Value but no Quantity
    Quantity and value updates for stock.
    quantity/value updation query
    hope u will get sm idea.
    Note : Do not use SMS Speak.Avoid links while answering,try to give your own suggestions.
    Edited by: Jeyakanthan A on Jul 22, 2011 10:25 AM

  • Reserves stock quantity in the Inventory cubes

    Hello
    I need to add a new KF: reserved stock qty to the inventory cubes? Does anyone have an idea if there is any R.3 field for the same or any specific t-codes where I can search. Or is it a calculated kF in the cube (with routines) or in the query?
    Thanks.
    Srini.

    HI,
    You talk to MM guys an dask how to capture the reversals using some MOvement types and Item Catogories and then you just add one norma Keyfigure and write code in Transformations like below, this code is sample one and I'm using for other purpose, in the same way you do it..
    CLASS lcl_transform IMPLEMENTATION.
      METHOD compute_ZQMM_TURS.
    *   IMPORTING
    *     request     type rsrequest
    *     datapackid  type rsdatapid
    *     SOURCE_FIELDS-BWAPPLNM TYPE /BI0/OIBWAPPLNM
    *     SOURCE_FIELDS-MOVETYPE TYPE /BI0/OIMOVETYPE
    *     SOURCE_FIELDS-CPQUABU TYPE /BI0/OICPQUABU
    *     SOURCE_FIELDS-BASE_UOM TYPE /BI0/OIBASE_UOM
    *    EXPORTING
    *      RESULT type _ty_s_TG_1-/BIC/ZQMM_TURS
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    *$*$ begin of routine - insert your code only below this line        *-*
    **********SURENDRA REDDY ON 12-09-2009**************BEGIN*****
    ... "insert your code here
    *--  fill table "MONITOR" with values of structure "MONITOR_REC"
    *-   to make monitor entries
    ... "to cancel the update process
    *    raise exception type CX_RSROUT_ABORT.
    ... "to skip a record
    *    raise exception type CX_RSROUT_SKIP_RECORD.
    ... "to clear target fields
    *    raise exception type CX_RSROUT_SKIP_VAL.
    IF ( SOURCE_FIELDS-MOVETYPE EQ '453'
    OR  SOURCE_FIELDS-MOVETYPE EQ '454')
    * AND  COMM_STRUCTURE-/BIC/ZXAUTO IS INITIAL
    AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'.
    * result value of the routine
      RESULT =  SOURCE_FIELDS-CPQUABU .
    where ZQMM_TURS = normal kf to get the quanity based on movement type and others..
    Thanks
    Reddy

  • Inventory Valuated Stock Value is not matching with R/3

    Dear Friends,
    we are in a big mess.Needed your help urgently
    We are in sap netweaver 2004s.We are implementing the standard business content only for one of our client.We have loaded the Inventory data into BW by following "How to handle the Inventory Management" document.
    We have loaded the inventory data into 0IC_C03 using standard transferrules and update rules.
    The sequence we followed as:
    IN R/3
    Filled the setup tables for during the posting free time(non-business hours)
    Stock intialization
    Material Movements
    Evaluations
    IN BW
    We had loaded the data into only 0IC_C03 cube using standard update rules(no changes done)
    2LIS_03_BX-Generate intial stock with no marker update unchecked
    2LIS_03_BF-Full update with no marker update checked
    2LIS_03_UM-Full update with no marker update checked
    When we compared the data between R/3 and BW they are many materials "Valuated Stock Value" is not matching with R/3.For some materials value is matching with R/3 but for some other materials its not matching with R/3.Some materials are showing the negative figures for Valuated Stock Value.
    But the valuated quantity value is exactly matching with R/3 for all the materials.
    We have tryed to many ways in the past 10 days to find out the solution.We have followd the notes 589024 and implemented the formula.But no luck so far.
    Needed your help..Any suggestions would be highly appreciated.
    Please help us with your inputs.
    Thanks in advance.
    Regards
    Soujanya

    Hi Sudheer,
    No We haven't implemented this note.
    In start routine we already have the first start routine in the note.
    INSERT BEGIN
      loop at DATA_PACKAGE.
        if DATA_PACKAGE-stockcat eq 'V' or
           DATA_PACKAGE-stocktype eq 'V'.
          delete DATA_PACKAGE.
        endif.
      endloop.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    INSERT END
    We should comment the above start routine and follow the remaining section as below?
    ==========================================================
    Notes:
    However, if you want a report of these consumption values, proceed as follows:
    1. Do not use the start routine listed above.
    2. Create two new key figures (cumulative values):
       1. Material consumption value (ZVERWERT, for example) with unit 0BASE_UOM
       2. Material consumption quantity (ZVERMENGE, for example) with unit 0LOC_CURRCY
    3. Include these in the InfoCube definition.
    4. Update these key figures from 2LIS_03_BF as follows:
    -> material consumption value:
    IF ( COMM_STRUCTURE-processkey EQ '100'   "Other Issues
        OR COMM_STRUCTURE-processkey EQ '101'   "Returns / Vendor
        OR COMM_STRUCTURE-processkey EQ '104'   "Material Transfer
        OR COMM_STRUCTURE-processkey EQ '105'   "Stock Adjustment InvD
        OR COMM_STRUCTURE-processkey EQ '106'   "Stock Adjustment Other
        OR COMM_STRUCTURE-processkey EQ '110' ) "Issues from Stock
                                                "Transfers
       AND COMM_STRUCTURE-bwapplnm EQ 'MM'
    only movements which are relevant for stock control
       AND COMM_STRUCTURE-cppvlc <> 0
       AND COMM_STRUCTURE-stockcat EQ 'V'
       AND COMM_STRUCUTRE-stocktype EQ 'V'.
    result value of the routine
        RESULT = -1 * COMM_STRUCTURE-cppvlc.
    if the returncode is zero, the result will be updated
        RETURNCODE = 0.
    ELSEIF ( COMM_STRUCTURE-processkey EQ '000'   "Other Receipts
        OR COMM_STRUCTURE-processkey EQ '001'   "Goods Receipt/Vendor
        OR COMM_STRUCTURE-processkey EQ '004'   "Material Transfer/"Receipt
        OR COMM_STRUCTURE-processkey EQ '005'   "Stock Adjustment InvD
        OR COMM_STRUCTURE-processkey EQ '006'   "Stock Adjustment Other
        OR COMM_STRUCTURE-processkey EQ '010' ) "Receipt from Stock
                                                "Transfer
    only movements which are relevant for stock control
       AND COMM_STRUCTURE-cppvlc <> 0
       AND COMM_STRUCTURE-stockcat EQ 'V'
       AND COMM_STRUCUTRE-stocktype EQ 'V'.
    result value of the routine
        RESULT = COMM_STRUCTURE-cppvlc.
    if the returncode is zero, the result will be updated
        RETURNCODE = 0.
      ELSE.
    if the returncode is not equal zero, the result will not be updated
        RETURNCODE = 4.
      ENDIF.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0..
    -> material consumption quantity:
    The code is the same, but COMM_STRUCTURE-cpquabu replaces COMM_STRUCTURE-cppvlc.
    -> The characteristic value calculation is the same for the other key figures.
    5. Update these key figures from the 2LIS_03_UM in the same way.
    =======================================================

  • Negative Values for Stock Quantity in BI

    Dear Experts,
    I have a report based on Inventory Management Multiprovider which is executed to check the Valuated Stock Quantity for single day input entry. ( Valuated Stock Qty is a non cumulative Key figure with Inflow as Quantity Received into Valuated Stock and outflow as Quantity Issued from Valuated Stock )
    So Valuated Stock Qty for a particular day = (Quantity Received into Valuated Stock till that day) - (Quantity Issued from Valuated Stock till that day).  So i think, checking the cube data in BI will not help to resolve the issue.
    Issue: : When I execute the report in BI for some dates I am getting Negative Values for Valuated Stock Quantity which is wrong output.
    Can this issue be resolved by filling set up tables and loading it to BI, say for last month?
    Could you please suggest any other solutions available?
    Also it will be helpful if you could explain what needs to be analyzed in ECC side (with T Codes)
    Thanks in advance
    Vinod

    Hi Vinod,
    try these transactions on the ECC side:
    MMBE to view stock of a material
    MB51 to view all material documents for your selection (i.e. material)
    The business content stock reporting in BW is mainly using datasource 2LIS_03_BF for movements and 2LIS_03_UM for revaluations. For this to work you will have to have all material documents loaded into your cube.
    Also have a look at this How To paper if you haven't yet.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Best,
    Ralf

  • Inventory Cube Issue

    Hi Experts,
    We have created a copy of 0IC_C03 with more no of fields added to the copy cube CIC_C03. We had lot of data mismatch in the earlier stage & now after  a long time this copy cube is working fine in production. We have not yet compressed the deltas in the cube.
    Now, later there was a field to be added in the inventory cube which takes data from an ODS. For this we created one more copy cube as we didnot want to disturb the inventory cube in production, hence we created one  Zcube which is the copy of CIC_C03 with an added field. In the update rules we have a routine which fills with data from the ODS. The CIC_C03 acts as datasource for this Zcube.
    My question is:
    1) I dont feel that after a month or so, we require the data in CIC_c03 as the same data comes in ZCube. So will deletion of data from CIC_C03 affect my data?
    2) The intial data in CIC_C03 are compressed whereas the deltas  are not yet compressed. Should the full upload to Zcube take after compression only?
    3) Suppose we delete the data from CIC_C03 after 2 months after a full upload is taken till that point. After deletion, the deltas will be coming in CIC_C03, canl these everyday delta be transfeered to Zcube?
    Waiting for reply.
    Regards,
    Vaishnavi.

    Hi,
    The note(637927) is saying that the KFs which represents the <b>values</b> of Stock-in-transit (issue, receipt, current) are deleted in the cube . But still the cube is containint the KF which represents the <b>quntity</b> of Stock-in-transit (issue, receipt, current) .
    So the deleted KF are :
    0VALTRANSST - Stock-in-transit value
    0RECCCNSVAL - Stock-in-transit issue value
    0RECTRFSTVA - Stock-in-transit receipt <b>value</b>
    Available KF are:
    0TRANSSTOCK - Stock in transit <b>Qty</b>
    0RECTRANSST - Receipt <b>quantity</b>: stock in transit
    0ISSTRANSST - Issue <b>quantity</b>: stock in transit
    So to find out the value of Stock-in-transit , you will use the Stock in transit. The scenario has to be used in this calculation is same as explained in note:589024.
    With rgds,
    Anil Kumar Sharma .P

  • Items with  zero stock quantity show negative stock value in Stock reports

    When running Stock reports for controlling the stock value towards the GL accounts, some items appear with zero stock quantity, but the report still shows a stock value  (negative value in my case)
    How can this happen, and how can I correct this situation ?
    System parameters are :   negative stock is not allowed, Items with zero cost price not allowed. On item level average cost price method is used.
    P.K.Johnsen

    Hi Johnsen,
    I believe you have checked the" Manage Inventory by warehouse". I have noticed this issue in SAP B1 2005B but this is rectified in 2007B. The system behaves in this way as the system maintains item cost for the item for all warehouses and even if the stock is not present in the warehouse, the system would still show you a value for the same. Hope this helps. please search the forum. You'll find related threads.
    Thanks,
    Joseph

  • Inventory cube 0IC_C03 ,Stock on particular date

    Hi All,
       We are trying to get the stock on a particular date using cube 0IC_C03 ,but we are unable to get the total stock on a given date.
    1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting  null values.
      I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
    2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
    Thanks&regards,
    Sunitha

    Hi,
    Check
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting null values.
       I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
    For 2LIS_03_BX it will give the extracted date only
    2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
    try with below options.
    Use :
    0VALSTCKVAL   " for Value
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month
    Use the above combinations in New Selections in columns and go it.
    For Qty Opening:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input)  and set the offeset
                                   value = -1 bcoz if user will give 12.2009 , so it will display 11.2009 closing stock, this is opening for 12.2009.
    For Qty Closing:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input) .
    In the same way build for Value and other Keyfigures on 0IC_C03.
    And
    Drag & drop
    0MATERAIL
    0PLANT  " Give some Input Variable.
    See the steps.
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    If it is BI 7 then for BX in in DTP in Extraction Tab you need to select Extacrion mode = NON-Cumulative option.
    Thanks
    Reddy

  • Inventory cube - non cumulativekey fig values are showing -ve values

    Hi Guru's,
             For Improving the performance of inventory cube *0IC_C03
    The following steps i did:
    1) Created History cube by taking a copy of actual cube (0IC_C03).
    2) Transferred all the four years of data (2007, 2008, 2009, 2010) to history cube(4 yr data) as a back up to do clustering and for cube remodelling.
    3) After doing all these, loaded the current 3 years (2008, 2009, 2010)data back to the actual cube and kept one year data in the history cube (2007) (i.e maintained only recent 3yrs data in actual cube).
    5) Created a multiprovider includes actual and history cubes and populated the existing report on top of the multiprovider.
    6) After purging one year data from the actual cube, stock values in the reports are showing negative values
    7) To clear that issue i loaded the 2007 year data back to the actual cube (now the cube has all years data as it was before) to avoid the negative stock value, but again stock values are showing negative values.
    How to solve this issues in inventory cube..
    how too eliminate the negative value in reports which was working prperly before data purging( removing the first year data from the actual cube)

    Hi prayog.. 10q for answering... Yeah i went 2 the data targets. And the forumlae is already wrriten like this IF( Debit/Credit = 'H', Qty in OUn, ( 1- * Qty in OUn ) ) for Actual Consum. K.F and IF( Debit/Credit = 'H', Amt. in local curr., ( 1- * Amt. in local curr. ) ) for Amount.....
    So i already said that from one of the infosource the data is flowing through ODS and then 2 CUBE. So i checked out the data in ODS with the movement type and posting date as per in the Report.. I selected the 'Debit/Credit' = H and Movement type and Posting date... But in ODS o/p the keyfig's are not displayed..... This is the problem...
    Cheers,
    Hemanth Aluri...

  • Inventory opening and closing stock with value report

    Hi All,
    Is it possible to get details of both opening and closing stock with value of each items of last financial year (2009-10) in inventory report?
    Mizan

    Hi..
    you can  try this query
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate =
        (Select min(S0.Docdate) from OINM S0 where S0.Docdate >='[%0]')
    set @ToDate =
        (Select max(S1.Docdate) from OINM S1 where S1.Docdate <='[%1]')
    select * from
        SELECT T0.itemcode,
        min(T0.Dscription) as 'Item Description',
        min(B1.ItmsGrpNam) as 'Item Group', W1.Whscode, C1.Location,
        (isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate ),0)-
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate),0)
        ) as [Opening Stock],
        isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate
            and O1.docdate<=@ToDate and O1.inqty>0
            and O1.transtype in (20,18)),0
        ) as [Purchase Quantity],
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate
            and O1.outqty>0 and O1.transtype in (21,19)),0
        ) as [Purchase Return Quantity],
       isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate and O1.outqty>0
            and O1.transtype in (13,15)),0
        ) as [sale Quatity],
        (isnull
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate<=@ToDate),0
            isnull((
                Select sum(isnull(outqty,0))
                from OINM O1
                where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
                and O1.docdate<=@ToDate),0)
        ) as [Closing Stock]
        FROM OINM T0
        INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
        INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode
        INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod
        INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode
        INNER JOIN OLCT C1 ON W1.Location=C1.Code
        Group by T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location
    ) a
    where (a.[Opening Stock]
            +a.[Purchase Quantity]
            + a.[Purchase Return Quantity]
            +a.[sale Quatity]+a.[Closing Stock]
           ) !=0
    Regards,
    Bhavank

  • Inventory Tracking / Stock Posting cannot change batch quantity

    When stock taking, Item A in the system consist of :
    - Batch B-01 = 10 pcs
    - Batch B-02 = 10 pcs.
    Actual stock has:
    - Batch B-01 = 20 pcs.
    Anybody knows how to fix this batch quantity, through Inventory Tracking / Stock Posting ?
    Since I try it, it couldn't work. 
    Best regards,
    Surya

    Hi Surya,
    Check the following thread
    Batch Inventory tracking
    Inventory management via batch number
    *Close the thread if issue solved
    Regards
    Jambulingam.P

  • How to get Item-Code wise stock quantity and value for a previous date

    Dear Sir,
    As per the government legal requirement , we are required to furnish a list for items having stock as on a date ( date is not the current date but it is some past date)  and  in the list we need to provide material wise stock quantity and value .
    We can generate a list  for the current date , but do not know how to get it for a previous date .
    We request you to kindly guide us about such a list .
    With Thanks and Regards
    Sonia Agarwal

    hi,
    might be this reports will be help full for your requirement.
    MMBE
    MB53
    MB52
    MB5M
    MB5B
    MB5T
    MBLB
    MBBS
    MB54
    ME56
    Thanking you

  • Stock Quantity & Stock Value at vendor on a Particular Date

    HI,
    My client requirement is to get a report for Stock Quantity & Stock Value at vendor on a Particular Date .
    Please give suggestions to get the stock & value in tables or Any standard T.codes
    Note : I am getting Stock qty on paricular date In MB5B & S_P00_07000140 , but not getting the values
    Regards,
    PR

    HI,
    we can get this report thru SAP standard without vendor selection, do the following steps
    1. goto MB5B
    2. Give plant /material details
    3. give selection date
    4. select stock type option as special stock
    5. select special stoct indicator as "O" for material provided to vendor
    excute the same , you will get a report with qty and value posted for  the vendor from the plant
    here by copying this standard program we can add one more input parameter  as vendor, then we can get this report vendorwise also.
    try this and let us know
    Regards
    Sridharan

Maybe you are looking for

  • Can't Get JCO to work on my server

    hey guys, I'm trying to make the JCO work on my 6.40 J2E server. I started with a very simple jsp, but i get an error can anyone help me ? here is  the code : <%@ page language="java" contentType="text/xml" import="com.sap.mw.jco.JCO"      %><% JCO.C

  • Problem with Ship to and Org fields on Purchase Order form

    I query a purchase order and click on the shipment lines button. There are 2 shipment lines in this example. I am using CUSTOM.pll to inject some specific code to restrict the cancel functionality. One line I want to restrict the cancel functionality

  • Folders Not Showing in Server Admin AFP Share Point?

    Hello all, My problem is I can make a folder in Server Admin under AFP Share Point, But the Folder wont actually be made on the HD. Under Server Admin AFP Share Point it will tell me that it doesn't exist? So I thought I'll go to that point on the HD

  • Question about syncing between two computers

    I feel a bit silly, because I feel as though I should know this, but I'm not sure because it has never applied to me until now. My main computer is a Vista machine, and everything is sync'd with that. However, I bought a MacBook last night (WOO-HOO!)

  • MBP running hotter than usual and shutting off randomly

    Hey everyone, I have a MBP 2.16Ghz, it's about 20 months old. About a year ago I had some problems with it and Apple replaced my battery and my motherboard. The machine was running fine without any problems. This week I realized that the MBP was beco