MARDH vs. MBEWH

Hi all,
following the SAP notes 193554 and 415349 the table MARDH is updated for previous period if there is a material movement within the current periode.
I would like to ask, whether there is also the table MBEWH each time updated, it the MARDH is updated?
The table MBEWH is updated if there is a price change, but this does'n affect the MARDH table. E.g. if I change the price via MR21, only the table MBEWH is updated.
I need it for a custom report. Just to ensure, that if I am looking for a price to an old stock entry from the MARDH, that there will also be an entry within the MBEWH with the same periode/year as whithin MARDH.
Thanks in advance
Regards
Peter
Edited by: Peter Jankech on Sep 11, 2009 6:01 PM

MBEWH is history table for valuation of a material
MARDH is history table for storage location stock.
Stock can be valuated and non-valuated, e.g. a return from a customer is non-valuated until you do a subsequent movement from return to own stock.
So this return will only update in MARD. the subsequent  transfer posting will update MBEW.
Similar it is with GR into blocked stock, movement 103
so the stock in MARDH must not necessarily match with the valuated stock in MBEWH. the difference is just th non-valuated stock at a certain time.

Similar Messages

  • Stock report for a period (based on posting date)

    Hi Experts,
    We have a requirement as under:
    1) We want a report for a period say from 01.04.2011 to 30.09.2011 (closed period for both MM and FI postings). Report is being taken on a later date say 01.12.2011.
    2) The report should say the status of stock as of 30.09.2011 only even of being taken in the month of December
    3) I tried to take the desired report through MB5B for the period 30.09.2011 to 30.09.2011 (selection date fields) on 20th december, 2011 and noticed that if same report with the same selection criteria is taken at two different times, output data is not the same whereas MM and FI posting periods are already closed.
    Can anybody suggest alternative SAP standard report where output will remain the same if report with same selection criteria is taken at different intervals ELSE in case of change we should be able to see the documents posted in between if back dated entries have been posted after opening MM /FI period.
    thanks

    sure it speaks the same, but it mentions as well the reasons (1) and has much more information (2)  and a solution.(3)
    1)
    user starts transaction MB5B for a very large number of materials or for all materials in a plant
    During the runtime of transaction MB5B, goods movements are posted in parallel:
               - The results of transaction MB5B are incorrect.
               - Each run of transaction MB5B returns different results for the same combination of "material + plant".
    Example: Transaction MB5B should process 100 materials with 10,000 MM documents each. The system takes approximately 1 second to read the material master data  and it takes approximately 1 hour to read the MM and FI documents. A goods movement for a material to be processed is posted approximately 10 minutes after you start transaction MB5B. The stock for this material before this posting has already been determined. The new MM document is also read, however. The stock read before the posting is used as the basis for calculating the stocks for the start and end date.
    Even for an old and closed period, MB5B starts today and calculates backwards  any movement to finally get the stock for  the time your specified in your selection.
    2)
    The SAP standard release does not include a solution
    so you have to understand that there is no real alternative transaction in SAP
    3) and then they provide a large section with a workaround that can be developed by an experienced programmer within 3 to 5 days.
    So how shall anyone here be able to tell you an alternative report?
    if someone does, then it is an owndeveloped z-report which is not available in your sap system.
    if you know that people want lookup period closing stocks at any time in future, then either schedule MB52 at month end and store the list somewhere (and do not allow backposting)
    or have an Abaper create a stock report based on the history tables MARDH, MCHBH, MBEWH etc.
    And even here you may encounter an issue at some day, if you start archving special stocks or material masters, because then the stock figures from the historic tables are gone and you cannot rebuilt a reliable stock report .

  • Stock  material report

    Hi ABAP Guru's
    I got a requirement to develop an report which lists the stock(Opening Stock and Closing stock) for each material of a plant in given date range.whose Values to be matched with either MB5B or MC.9 Tcodes.I have found few tables for Stock like MBEW,MARD but those values are not matching with the Transactions.Can u tell me exactly how can i develop this report.? I'll be very thankful if u do the same.
    Thanks and Regards,

    Hi Rakesh,
    The logic for the requirement is a little complex. However, if you compare the contents of the MBEW and MARD tables with the output in the transactions you have mentioned you might be able to create a pattern, but in some cases, you might be missing out the relation.
    This is because, you have to also consider two more "history" tables in the report viz. MARDH and MBEWH.
    The history tables store the stock and amount valuations for previous periods.
    What you do is get the stock and valuation amounts from MARD and MBEW for the material details. If you do not find a record, it means there has been no stock movemtn in the current period and remains same from last period. In this case you need to retrieve the data from history tables, viz. MARDH and MBEWH.
    Hope this helps you get started.
    Cheers,
    Aditya

  • Material aging table

    Hi experts,
    Can any one tell me what is the exact table to display "Material aging"?
    points guaranteed
    cheers
    kaki

    Hi Kaki;
       If I understand what you mean by aging, I think the tables you are looking for are MARCH, MARDH and MBEWH.  They should the history in past posting periods, if there is any for that period.
    Cheers,
    John

  • Total Stock vs Plant Stock

    I have the following problem with the stock:
    The total stock (MBEW-LBKUM) shown in the material master data (Accounting 1 tab) is not equal to the Plant Stock (MARD-LABST) shown in the Plant Stock tab (there is only unrestricted stock).
    In my opinion they should be the same because:
    - The valuation area is a plant (transaction OX14)
    - I´m not using valuation categories (which determines the valuation type). Thus in table MBEW the field valuation type is blank, the same as the valuation category.
    Any ideas on why the stock is different?
    Thanks in advance!

    Dear  Agustin
    Actualy i was also facing the same problem in my previous project.Also I have gone thru some of the threads in SDN few ppl were facing the same problem
    just check the entries in Table
    MARD and MBEW for the material for which u are getting the difference.
    what must have in the begining that ur GR must have been done with the non valuated stock
    Check in the table MARDH and MBEWH to find the period where it started to become different.
    MARDH has all stock, MBEWH has only valuated stock.
    It all happened in the begining when the stk is uploaded with zero price and when the first GRN happens then the price of that material gets updated in the material master,
    the stk must have been uploaded twice due to that reason some stk are valuated and some stk are non valuated ,that u can see in MB5B T-code ,for valuated stk the table is MMBE and the valuated + Non valuated stk gets updated in MARD so by the difference of stk in MARD and MBEW u will get the Non valuated stk.
    How ever in MM03 -> Accounting View -> Total Stock is the Total Valuated Stock.
    In MMBE, Total Stock comprises of Valuated and Non Valuated Stock.
    Also, if there are Sales Order Stock with Individual Valuation, these Stocks will not be shown in Accounting View -> Total Valuated Stock, however this will be in MMBE.
    Please refer the threads posted by me
    1)How to Convert Non Valuated stk into Valuated
    2)Inventory difference problem in MM03 and MMBE
    3)Qty Differene problem in MMBE & MM03
    where as to solve your problem is to only make a program in which it will update the MARDH stock and MBEWH stock so that in future the problem does not arise.
    Coz our sales person was finding the stock in MMBE but he was not able to do the delivery.
    Coz there were no valuated stock.
    To solve this I have made a program in which both the stocks will remain the same.I didnt got any solution thats the reason we have to take thsi step
    Hope this finds useful .If it does I will expect the Points from you
    Regds
    Shail

  • Error message M7314

    Has anyone seen these error before?
    "Valuated Stock becomes negative - error message no. M7314"
    Were trying to clean up inventories in a plant to be shut down and we have unrestricted balances we try to adjust off or issue off and get this message.  Negative stock flag was turned on for the duration of this materials use and standard cost is 100 @ 0.01 per LB.  We've cleaned-up open PO's, etc. and this is all that is left to do.

    Hi
    The error message that you are receiving "Valuated stock becomesnegative is normally sent in the system when there is some kind of inconsistency for the data of a material, for example,
    when the stock tables do not contain the same information as the valuation tables.Like MARD ,MARDH MBEW ,MBEWH ,MARC ,MARCH .Plz check these tables and  refer to note 34440.usually in this case  try to communicate with SAP.
    Hope It will works for u
    Regards
    Anupam Sharma

  • Re; Stock & sales data tabs - reg.,

    Hi guru's
    Can anybody guide me where can I get the current stock & sales tabs in which we can get the current data, this is required  for a report by an ABAPer, please its urgent.
    thanks
    tuljasingh.

    Pls check tables
    MVKE
    MARD
    MARDH
    MBEW
    MBEWH
    Thx
    Raju

  • MARDH table update

    Dear Experts,
    We have a Z report for Stock on posting date(similar to MB5B with some addons as per client reqmt) and we have used MARDH table for opening stock for any period in that report. But we face problems now as this table is not getting updated properly. Is there anyway to update the MARDH table for every period for material and storage location combination? Else can we use any other table for Stock on posting date report?
    Regards,
    Ravi Kumar

    As of Release 4.5, stock and valuation fields that refer to the previous
    period or those dating back even farther, are not stored in those tables
    in which the current stock data is stored (MBEW, MARD, MCHB, and so on)
    but in so-called history tables (MBEWH, MARDH, MCHBH, and so on.).
    (Also compare release note for period closing as of Release 4.5)
    These history tables can have one entry per period. The values of such
    an entry refer to the end of the period. For the current period, there
    are no entries in the history tables. An entry is not written in this
    history table for every period. If stock-relevant or valuation-relevant
    data change, the system might generate an entry in the history table.
    Furthermore, the fields LFMON ('Current Period (Booking period)') and
    LFGJA ('Fiscal Year of the Current Period') in the stock tables are no
    longer automatically set to the current period by the period closing
    program. The period is only transferred to the new period during the
    first movement. At the same time, the relevant history entries are also
    generated.
    You can refer to SAP note 193554 for more information.
    What is the addons that required by your client ?

  • Difference between MARD & MARDH

    Hi,
    Can anybody explain the difference between tables MARD & MARDH.
    As per my understanding MARD has data for current period only whearas in MARDH has inventory details for all the previous closing periods.
    In my case i am observing that both tables contain data for previous period but data is from different postings.It is not clear under what circumstances data will get updated in MARD & MARDH.
    regards,
    Mohit Goyal

    Hi Mohit,
    MARDH is a history table
    MARD - Storage Location Data for Material for the current period.
    These history tables can contain one entry for each period. 
    An entry is created in the history table only if the stock-relevant data or valuation-relevant data changes (G/R, G/I…). 
    <b>Example</b>
    Let's say at the start of period 02, there are 100 pieces of material 458111 in stock (MARD-LABST).
    <b>Goods receipt</b>
    50 pieces are received in period 02.
    <b>System response</b>
    The system records a stock of 100 pieces in the history table for period 01 (MARDH).  At the same time, the system increases the current stock to 150 pieces (MARD).
    <b>Goods receipt</b>
    50 more pieces are received in period 02.
    <b>System response</b>
    The history table is unaffected by this event because an entry already exists for period 01.  The system increases the current stock to 200 pieces.
    <b>Goods issue</b>
    25 pieces are withdrawn from stock in period 04.
    <b>System response</b>
    The system records a stock of 200 pieces in the history table for 03.  At the same time, the system reduces the current stock to 175 pieces (the history table does NOT contain an entry for period 02 because there were no goods movements in period 03).
    <b>Rules</b>
    If the history table does not contain an entry for the previous period, the values for the previous period are the same as those for the current period.
    If the history table does not contain an entry for  period 'n' that precedes the previous period, the values for period 'n' are the same as those for the period
    n + 1.
    You cannot read the information for the previous period directly from current period/year tables. (MBEW, MARD, MCHB, etc).  Instead, you need to interpret and read the history tables (MBEWH, MARDH, MCHBH, etc).
    Hope this helps and clarifies.
    Thanks,
    Viswanath

  • What is difference between MBEWH & MCHBH table?

    hi guru's
    what is difference between MBEWH & MCHBH table?
    wat ever stock in these table are different?
    i am doing support already i have two reports one is for Stock at PLANT level and one BATCH level . they used table for quantity MBEWH for PLANT level .and MCHBH for BATCH level wat ever displaying quantity is different in both reports ?
    so please give me details description on these tables.
    regards,
    satheesh.

    I think MBEWH table is refering to total valuated stock
    MCHBH table is refering to valuated stock with unrestricted
    Raghu

  • Report for historic valuation of material-MBEW and MBEWH

    Hello,
    Our client needs a report that shows the value of stock of past period, the medium price during last exercises. Actually they have a Z report that show all this data, considering the data on MBEWH. The problem is that MBEWH only is updated if there is a price change (for example MR21) or a goods receipt. This table only will be changed when in the comiing month a material have any movement of stock.
    My question, if we catch the values LFGJA and LFMON OF MBEW table we consider the last change of price, and the key for entering to MBEWH table to get the past values.
    I have checked too, the MC.9 transaction. Looks like fine too, but if we can develop a program for accessing to the S039 table, this table is transparent table and we can not get any data. The data is providing from S032 table, and I have seen, that this table sometimes contains insconsistency values or negative values.
    Is there another transaction to get our client's requeriments???
    Thanks

    Hi Ravikumar,
    Hope you are an ABAPer. If not also, you can achieve this through an ABAPer. As mentioned by others, you need to check whether your requirement is met by the standard transaction MB5B. You need to check whether this transaction gives you the exact opening and closing balance for a material. If this gives what you want, then you need to make some small enhancement in the MB5B report program so that you will be getting the result of the opening and closing stock. In this enhancement you will use EXPORT to export the result to your program where you can IMPORT it. This procedure is explained in detail in a document created in SCN dated 30th November, 2012 by Sijin Siji. Have a look in that.
    That document is descriptive and it will be helping you in solving this issue. If you have any doubts, please revert back.
    Regards,
    Abijith

  • Historical stock on table MARDH is different than calculation from MB5B.

    Hi expert,
    I've checked stock on posting date (MB5B) is correct, comparing with MMBE as well as the physical inventory stock.
    Now I'm checking my historical stock (table MARDH) on period 06.2010, for specific material, plant and storage location is not the same result with MB5B in the same selection. Using my own calculation, MB5B is the correct one.
    No problem found at period 04, 05 or 07.
    What is the possible reason of this difference in table MARDH?
    Kindly advise.
    regards,
    rob

    Does it means if any movement in the next period then it copies from MARD into MARDH for previous period entry?
    yes
    Kindly advise how the calculation the qty copied into MARDH.
    Please read OSS note 193554
    It explains how the history tables are updated and it may help to retrieve your value.

  • BAPI to extract from MBEW/MBEWH for a given period

    Hi ABAPpers,
                We have two tables MBEW and MBEWH for Material Valuation. Based on the changes in few fields like VERPR, the record in MBEW will be transferred to MBEWH. Is there any BAPI that helps me to extract the data for a given period of a given fiscal year without asking me to probe from which table we need to fetch data from and which record in MBEWH is valid for that period of that year. Please suggest possible ways to do it.
    Thanks.
    Edited by: VKUPPILI on Dec 19, 2011 2:53 PM

    Hi
    Although it's not your question, see SAP Note 193554 - Stock/valuation data of previous periods, I think that it helps you to understand how to understand how to work the history tables.
    I hope this helps you
    Regards
    Eduardo

  • Difference in MARDH & MB5B report

    Hi,
    I'm comparing the previous period stock  using MARDH table with MB5B stock report but closing balance what we get from MB5B report is not matching with the MARDH Table.

    Hi,
    MB5B: Gives Opening and Closing stocks for a given date range.
    MB5B calculates the stock at a certain date by reading all movements (adding receipts and reducing goods issues)
    MARDH store Stocks for Periods (Months).
    MARDH has the historic stock at month end. A MARDH record for the last period is only created if a new movement in the current period has changed the stock level.
    Example. If you had 100 stock in April and you had a goods issue of 20 in May, then you will get a MARDH record for period 01 with stock of 100.
    If the stock situation has not changed until today (period 10-January) then you see the stock of 80 in table MARD, and the last MARDH record is the record of period 01 with stock of 100.

  • Error while creating datasource from table MBEWH

    Hi all,
    I am facing an error message while creating datasource from table MBEWH
    "Invalid extract structure template MBEWH of DataSource "; This operation failed, because the template structure quantity fields or currency fields, for example, field LBKUM refer to a different table.
    Can anyone help me that why system is not allowing me to generate generic datasource for table MBEWH to transfer my month wise inventory data.
    thanks and regards.

    Hi Zakir,
          This was comming for classification data... when ever you want to extract some classification related data then we can't create generic datasources  directly.. for that you need  to go with CTBW  ( tcode )  and   create  one datasource...
       so, you need to check that   related table also.. for that  MBEWH table..
        ALL THE CLASSIFICATION RELATED DATASOURCES WE CAN'T CREATE DIRECTLY... JUST LIKE  AUSP table also.. liek this..
    regards
    @jay

Maybe you are looking for

  • Re: How to set quick boot on T. Satelllite A200?

    I cant find quick boot or quick post option in Bios setup. Can I turn off memory test? If anyone know how to do it please help me.

  • Missing Menu Options in Flash Builder

    I encountered a mystery surrounding several missing menu options in  one of my Flash Builder workspaces recently. I wanted to create a new  skin for a List control so I right-clicked on my skins folder and looked  for the New MXML Skin option. And I

  • Encoding Different Quality Videos

    I have created a new project with two video clips.  One video clip was encoded as 4K (3840x2160@~39Mbps) MP4.  The second clip was encoded as 1080P@~9Mbps MP4.  I have have adjusted the two clips to be the same size within a new project (3840x2160).

  • No scene detection in premiere?

    Someway that the editing program can automatically detect and cut scene changing moments in a single video clip. Does this function exist in premiere, or does it exist only in "capturing material in premiere" and "speedgrade (and using xml files to g

  • 3750X QoS Problems

    I'm new to setting up QoS so I would like some input. I'm setting up QoS on my 3750X: Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 15.2(2)E, RELEASE SOFTWARE (fc3) I enabled Auto QoS on the switch: mls qos map policed-dscp  0 1