How to report on batch stock balances

Hi All,
I would like to report on batch stocks over a period of time.
How can I get the valid stock balances for a batch for each batch managed plant material for a given time period. I know we can use MCHA, MCHB/H.
Can you kindly clarify the logic to reconstruct the batch stock balance each month for a batch managed plant.
Thanks
Karen

Hi Mischa.
I think you can achieve what you want like this
Add the Start Month and End Month (let them be IO's that reference 0calmonth) to your cube and  populate them in the load using a formula, like Aron suggested.
Create a query with a  restricted key figure.  I suppose you are looking at some kind of count  to know how many people where absent in a given month, or something like that. Thus, add your KF to the structure and add the Start Month and End Month to the selection.
Restrict the Start Month using a variable, ZMONTH (this is what the user will enter at runtime), as follows:
Start Month <= ZMONTH.
Now restrict the End Month using a variable, XMONTH (this will have to be an exit variable filled in CMOD by reading ZMONTH) as follows:
End Month >= XMONTH.
Thus, your restricted key figure will only return values if the entered month is part of the absence interval. The abap you need for CMOD should be simple as all you are doing is reading a variable and passing it to another. From the top of my head, it should look something like this:
data:
l_s_range type rsr_s_rangesid,
loc_var_range like rrrangeexit.
case i_vnam.
the case statement will likely already be there, as well as the above definitions, so look for the case and insert the below
when 'XMONTH'.
if i_step = 2.
clear l_s_range.
loop at i_t_var_range into loc_var_range
where vnam = 'ZMONTH'.
l_s_range-low = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range to e_t_range.
endloop.
endif.
endcase.
this will likely already be there, so you won't need to put it there again.
Good luck!
Jacob
Edited by: Jacob Jansen on Jan 11, 2010 9:18 PM
Edited by: Jacob Jansen on Jan 11, 2010 9:30 PM

Similar Messages

  • How to upload the batch stock to bin level

    Dear gurus
    My client are going to implement WM  i want to know how to upload existing batch stock to bin  level.
    regards
    sam
    Edited by: Csaba Szommer on May 25, 2011 12:10 PM

    Hi,
    You can use LSMW for Tcode LT01 to upload inital stock in WH.
    So here u can enter all relevant data required like material, qty, batch, plant, Sloc etc..
    Hope this helps you...
    Rgds,
    Kris.

  • Report for Project Stock Balances as on a previous Date

    Hi PS Gurus !!
    We need to have a Report that gives the Project Stock Balances and Values as on a Past Date. The system gives a Current Status Report, but is there a Report that gives the Values for Past Date. This is a report for the Auditor's Interest.
    Secondly, we would also need a Report on the Movement of Project Stock in the past periods. Is this possible ??
    Thanx !!
    Ravi

    Hi Everyone !!
    I would once again request all of you to kindly answer to my question, as I need a solution to this urgently.
    Thanx & Regards,
    Ravi Kumar

  • How to loading the opening stock balance into Infocube 0IC_C03

    Dear Expers,
    I have referenced SDN a expert's documentation, but I canu2019t go on at page 10 .
    Check: How Tou2026 [Handle Inventory Management Scenarios in BW|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    (1)original text:
    Loading the opening stock balance (InfoSource 2LIS_03_BX) into InfoCube
    0IC_C03. In the InfoPackage, choose the upload mode u201CCreate opening balanceu201D
    (see screenshot).
    Question:
    How to find option that upload mode u201CCreate opening balanceu201D?
    i'm  use to customize infopackage.  i  can not use default infopackage, when i click the defualt infopackage, will error prompt: Data target '0DF_C07' removed from list of loadable targets; not loadable
    (2) I actived BI Contnet (0IC_C03), I seen that the data flow  as following:
    Datasource(2LIS_03_BX)->transformation->Infosource(2LIS_03_BX_TR)-> transformation->Infocube(0IC_C03)
    Datasource(2LIS_03_BF)->transformation->Infosource(2LIS_03_ BF TR)-> transformation->Infocube(0ICC03)
    Datasource(2LIS_03_UM)->transformation->Infosource(2LIS_03_UM TR)-> transformation->Infocube(0ICC03)
    Quesiton: I donu2019t  know whatu2019s version, neither like BW 7.X nor like BW 3.X,
    Why have infosource in BW 7.X, how to use infosource load data to target?
    Currently, I canu2019t create transfer rule and upate rule for this datasource & infosource.
    Do  I  need to create a  customize ODS?
    Thank you very much , if you will answer me above two questions.
    Best Regards
    Steve

    >
    stevezhuang wrote:
    > Dear Expers,
    >
    > I have referenced SDN a expert's documentation, but I canu2019t go on at page 10 .
    >
    > Check: How Tou2026 [Handle Inventory Management Scenarios in BW|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    >
    > (1)original text:
    > Loading the opening stock balance (InfoSource 2LIS_03_BX) into InfoCube
    > 0IC_C03. In the InfoPackage, choose the upload mode u201CCreate opening balanceu201D
    > (see screenshot).
    >
    > Question:
    > How to find option that upload mode u201CCreate opening balanceu201D?
    >  i'm  use to customize infopackage.  i  can not use default infopackage, when i click the defualt infopackage, will error prompt: Data target '0DF_C07' removed from list of loadable targets; not loadable
    >
    >
    >
    > (2) I actived BI Contnet (0IC_C03), I seen that the data flow  as following:
    > Datasource(2LIS_03_BX)->transformation->Infosource(2LIS_03_BX_TR)-> transformation->Infocube(0IC_C03)
    >
    > Datasource(2LIS_03_BF)->transformation->Infosource(2LIS_03_ BF TR)-> transformation->Infocube(0ICC03)
    >
    > Datasource(2LIS_03_UM)->transformation->Infosource(2LIS_03_UM TR)-> transformation->Infocube(0ICC03)
    >
    > Quesiton: I donu2019t  know whatu2019s version, neither like BW 7.X nor like BW 3.X,
    > Why have infosource in BW 7.X, how to use infosource load data to target?
    > Currently, I canu2019t create transfer rule and upate rule for this datasource & infosource.
    > Do  I  need to create a  customize ODS?
    >
    >
    > Thank you very much , if you will answer me above two questions.
    >
    >
    > Best Regards
    > Steve
    You don't need to worry about 0DF_C07 as it was defence cube not activated during your Business Content Activaiton.
    YOu can create your own infopackage for 2LIS_03_BX and there will be option generate intial status.
    This loading will create your Opening Balance.
    you need to compress this with NO Marker UPDATE option unchecked(as you will have to update hte marker).
    After this load movements 2LIS_03_BF and reval 2LIS_03_UM. Compress this with NO MARKER UPDATE option checked.
    Regards,
    RK

  • What is meant by opening stock balance?

    what is meant by opening stock balance and  how we load the opening stock balance .Actually i gone through the document in SDN.But i didn't understood properly.Can anybody explain in simple words.

    Hi Pardhu,
    In many cases your SAP R/3 system goes live earlier than your BW system.
    Say during go live in R/3 on 1st May 2009 - you had certain stock of product1 in inventory - say 100 PCS.
    You then sold 20PCS of product1 and brought 40PCS until today.
    So the stock of product1 in your inventory is 100 - 20 + 40 = 120.
    Now if your BW system was to Go Live tomorrow.
    You would have to let BW know what is your current stock level.
    From tomorrow then you can record only movements in BW.. ie you will send only data of sold and brought pcs of prodct1 from tomorrow.
    To inform BW about the current stock level you need the data source 2LIS_03_BX.
    To send the movements to BW you have the data source 2LIS_03_BF.
    2LIS_03_BX picks data from statistical table.
    For the statistical table to reflect the current stock of product one , you need to run MNCB ---> which precisely calculate the current stock level of product1 using the logic 100 - 20 + 40 ie stock till date and stores it in the statistical table.
    Then you load this data through 2LIS_03_BX to BW. Thus BW has the information of current stock.
    Then you load the movemens only through 2LIS_03_BF after setting up the delta.
    Markers can only be updaed when compression is done.
    You choose to update the marker based on certain conditions.
    BW uses markers to store the information of stock levels.
    It stores the stock as the marker value(reference value) +/- delta changes.
    When the cube is compressed you can update the marker. This will make the reference more current in time. Thus to calculate current stock you will have to take into account lesser deltas and a more current marker .. this improves performance...
    For further details on this :
    [How to handle inventory management scenarios|http://sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    Hope this helps,
    Best regards,
    Sunmit.

  • Stock ageing report with batch Management active

    Hi Experts,
    My client wants a Stock ageing report and batch management is active
    According to my client, Inventory ageing report should show stock quantities and stock value as follows,
    1. Below one year
    2. Between one and two years
    3. Above two years
    What are the table and fields to be considered for this report.
    Thanks
    NDS

    What steps do you mean? taking an ABAP course and doing it yourself, or stepping to an ABAPer and let him know what he shall do?
    you asked for a stock report, not for a movement report.
    If I go into my warehouse and looking at all the stuff sitting there and want a report that should tell me how old this stuff is, then i am not intrested if there was a goods receipt movement.
    However I would like to know the last movement date. In this case you have to look into table S032 or into the movements MSEG (with MKPF as header table)

  • Stock balance Report S_P00_07000139 Wrong quantity

    Hi,
    I have executed the report S_P00_07000139 and found quantity were wrong display.
    Stock card report selection:- Stock balance report summary.
    Scope of List:-No Zero Stock
    Here Quantity appear (98.112) and Amount 1878403.29.THB.
    Though on the posting date 13.02.2014 having two GR document with
    reference to production order.
    13.02.2014 58.957 TO
    13.02.2014 34.989 TO
    It should be include in the above said report and display the closing
    quantity.
    Because in MB5B report were functioning well and included all the
    movement of the said material.The data from MB5B are furnished below.
    Opening stock Total Receipts qty Total issue qty Closing
    stock Bun Closing value Currency
    80.550 106.759 89.197- 98.112 TO 1,878,403.29 THB.
    We have already implemented the SAP Note:-1767220 but still having the same issue.
    Kindly advice.
    Thanks & Regards
    Rakesh

    Hi,
    For your reference i have attached the screen shot details of reports.
    Transaction code:- S_P00_07000139
    FG code:- FRRSGTR24X061000FP
    Plant:-0431
    Company code:-0430
    Datum:-01.02.2010 TO 28.02.2010.
    After Execution of the report.
    Screen shot data from MB51
    Date range:-01.03.2010 to 01.01.2014
    A lots of Data found.
    Again run the stock card report
    Datum:- 01.01.2014 TO 28.02.2014
    Again quantity is the same. How it’s possible.
    Regards
    Rakesh

  • Stock ageing report without Batch Management

    Hi Gurus,
    My client wants a Stock ageing report. But my concern here is can we achieve this  without batch management
    According to my client, Inventory ageing report should  show stock quantities and stock value as follows,
    1. Below one year
    2. Between one and two years
    3. Above two years
    We can accumulate the goods receipt as per Material document date and movement type according to the above age requirement.
    But, can we track goods issues from the above age groups without Batch Management.
    Experts Pls reply and If possible, pls explain how we can achieve this.
    Thanks
    NDS

    As you already noticed not only the input (GR) but the output (GI) is also important.
    The date of the GR is only one thing, but after that you received the goods in your SLoc you cannot make difference between stocks received at different times.
    As your stock is not distinguished in the system as per the GR date you cannot say that which sub-stock has been consumed during GI.
    So, without batch management you cannot achieve your goal in standard system.
    Of course, physically you can realize your idea by putting labels on different batches - this would mean batch management physically and not in SAP.
    If you use warehouse management you can use a workaround: the GR date is stored in the quants and this makes possible to track the age of the stock without batch management. Please check:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c6/f83b5e4afa11d182b90000e829fbfe/frameset.htm
    Regards,
    Csaba

  • Stock Balance Report

    Hi
    I have to create one stock balance report as on specific date,  I have checked MB52 it will show the current stock balance.  How to findout which are the stock types needed to check?
    Regards
    Sebastian John

    hi friend
    check the link
    [http://wiki.sdn.sap.com/wiki/dosearchsite.action]
    and give 'Stocks ' in the search field
    regards
    surender
    Edited by: SURENDER on Oct 14, 2009 12:10 PM

  • How to report on balance sheet accounts using 0EC_PCA_3

    Hi Experts,
    How to report on balance sheet accounts using 0EC_PCA_3
    Thanks
    nagini

    Hi,
    IF you want to see the accumulated balances you need to select the period from 0 to 12.
    EX: you want to open the report up to period 6th 2009 and want see the figures including the carryforward balances from 2008.
    then in selection screen select the from period = 0  and to period =6.
    hope its helpful
    thanks,

  • Stock Report with batch number and its Charactristc values

    Our material are batch managed and Char values are entered at the time of GR. We need to prepare stock report showing batches for the material, their stock and characteristics values.
    Like to know what tables we should use to find the char values. I could not find value in table CAWN

    Hi,
    For characteristcis link and values use below tables:
    Characteristics :
        CABN                   Characteristics ( o.a. batch/vendor)   
        CABNT                 Characteristics description
        CAWN                  Characteristics  ( o.a. material)
        CAWNT                Characteristics description
        AUSP                   Characteristic Values
       Class types and objects :
        TCLAO                 Several class types for object
        TCLA                    Class types ( vb. lfa1 => v10 en 010)
        TCLAT                  Class type text
        TCLT                    Classifiable objects
        TCLC                   Classification status
       Links :
        INOB                    Link between Internal Number and Object
        KLAH                  Class header data  
        KSSK                  Allocation Table: Object (vb.matnr) to Class 
        KSML                  Characteristics for a class (internal number)
    for batch stock 0 use tables ilken MCHB, MCHA etc,
    hope this helps
    Reg
    Dheeraj

  • Stock Report with Batch Number

    Hi ,
    My Client requires stock report with Batch numbers .required report format is
    Item Code,BatchNumber,OpenQty,OpenVal,PurchaseQty,PurchaseVal,SalesQty,SalesVal,ClosQty,CloseVal
    I tried using query on wiki for stock report but that query is written in 2007 and Batch tables and OINM table is changes in 8.81.
    http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLH-INItemInventoryOpeningandClosingStockper+warehouse
    can any one help with stock report- batches.
    Thanks,
    Preeti

    HI,
    use below query as basis and mofiy the fields required. it shows linking in batch and transaction tables:
    SELECT distinct T0.ItemCode,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum,T0.LocCode ,t4.DistNumber as [BatchNumber], T1.Quantity ,T5.CalcPrice as [Price]  
    FROM  [OITL] T0 
              INNER  JOIN [ITL1] T1  ON  T1.[LogEntry] = T0.[LogEntry] 
              INNER JOIN  OBTN T4 on T1.MdAbsEntry=T4.AbsEntry
              INNER  JOIN [OITM] T2  ON  T2.[ItemCode] = T0.[ItemCode]   
              Inner JOin OINM T5 on T0.ItemCode =T5.ItemCode and T0.LocCode = T5.Warehouse  and T0.AppDocNum = T5.BASE_REF
    Thanks,
    Neetu

  • How to do STO of expired batch stock

    Hi,
    How can I do STO for expired batch stock? i need to do it for scrapping which is handled in other plant.
    Thanks in advance.
    Ninad

    Hi
    I suppose the expired batch is blocked stock & for doing the STO, we need to bring the stock to unrestricted. What you can do is, create one separate new storage location in which there wont be any other stock available. Move the expired blocked stock to unrestricted stock in this storage location. Process the STO cycle with this storage location. In recieving location, stock can be again recieved in quality stock & can be treated for further process i.e scrapping.
    Thanks
    Sachin

  • How to ajust stock balance  marco in snp?

    Dear SAP,
    Now, we have created loc-pro hierachy to aggregate demand of location K410  = T661 + T671.
    However, the system has only aggregated wrong stock on hand K410 = T661 + T671 not including stock on hand of itself.
    Please, tell me how to ajust stock on hand marco?
    thanks so much.

    Hi,
    You need to create a stock category group with all stock categories that you would like to consider as available stocks.
    Or you can pick  a standard group like STK if it contains all categories relevant to your business model.
    This stock category group needs to be assigned in the location master SNP tab.
    If this does not help, please check the stock balance macro & check if it is active, or it has been tampered with.
    Regards,
    Ashok

  • How to run the Batch input session(SM35) in background thru Report program

    Hi Experts,
    I am working in one modification report requirement ,the report is Mass upload will update and run the file via batch input session. The client requirement is to implement the report execution in background mode , the batch input session will process automatically (ie. the job runs the batch input session in background and process the session ends).
    Currently, the report calls SM35 to write a batch input session and the user manually selects the session and record the transactions.
    Once the Transaction enters and the selection-screen inputs are given, then the transaction executed in background mode and all the above batch input process to be implemented.
    Please advise and guide me, how to proceed.
    I need your guidance to proceed via Call transaction using bdcdata statement, if it can be achieved the requirement.
    Thanks & Regards
    San.

    Hi Arabind Prasad,
    Thanks for your inputs.
    I know the process of the report Execution in background and job steps.
    I want the inputs for how to upload thru Batch input session in background job and the session should also processed automatically
    Currently the report logic declared like call transaction 'SM35' and skip first screen.Once the report (tcode) executed (not in background) It writes one session in SM35. The user should select the session and process the transaction manually.
    The new requirement is, if the report (tcode) executes in background mode...what and how the batch input session should be declared and how it process automatically (like you said mode 'N').
    Hope I am clear in my query.
    Please advise.
    Regards
    San.
    Edited by: San Learner on Mar 1, 2011 7:16 PM

Maybe you are looking for

  • Can Apple TV produce sound output on a wireless speaker and a cable-connected speaker simultaneously?

    My situation is this:  I have a one bedroom apartment.  In the main room, I have a Bose Soundlink (via bluetooth, which may be my first problem!!!).  I just got an Apple TV (3) and want to connect it to the TV in my bedroom.  I was considering gettin

  • Custom Timebase in sequence settings for 15 fps animation

    I have an stop-motion project, where we are capturing images to playback at 15 frames per second. I have set up FCP to do this in the past, but I cannot find where the preference is. I thought you could just set your sequence settings to use a 15 fps

  • Storing data in arrays and using Stirng methods

    Hi There! Could any one help me in developing a kind of "PhoneBook" in java? Coding for the following program is required in java(jdk1.2). The problem is to program a PhoneBook in the following way when the program executes A list of following option

  • How can i make sender address as default in ABAP code

    hi gurus, am developed a abap program to send emails. working fine i want set sendar address as default ,presently am using the following code to set sender address .but below BCMESS userid should in Sap user list then only it should working,my quest

  • Price too low (below tolerance limit of 10%)

    Hello, I am facing the below error while processing of MIRO. The error detail is as below: Price too low (below tolerance limit of 10.00 %) Message no. M8085 Diagnosis The invoice price (value invoiced divided by the quantity invoiced) varies too gre