MBEWH Table updation

Hi
I need some clarification in below scenario,
In table MBEWH, value and moving average price is 0
for all periods except last period.
For eg;
Period      Stock       Value        MAP
1             100             0               0
2              90              0               0
3             120             0               0
4             200         1000              5
If next period update in the table period 4 is get 0.
Pl clarify me.
RRS.

Check table S031

Similar Messages

  • MBEWH table updation logic

    Would like to know the MBEWH table updation logic.

    Okay.
    The first period 001 "activity" was the cost change;  therefore the history of 012 was written to MBEWH. 
    I would not expect any other activity in Period 001 to cause or change the 012 entry in MBEWH.
    When there is activity in Period 002, the history of 001 will be written.
    If there is no activity in 002 and 003, When there is activty in Perod 004, the history of 003 will be written.
    To answer  the question  "what was the standard cost at the end of Period 002?"
    -  Look in 002 in MBEWH   in this example there is no record.
    -  Look FORWARD to next period.
    -  See record for 003 - the information in record for 003 is also the information for the end of 002.
    Hope this helps.

  • MBEWH Table

    Dear All,
    I am facing a problem in analysing MBEWH table. In MBEWH table, there is a field SALK3 (Total Value). Its F1 says as below.
    F1 help: Value of Total Valuated Stock
    Value of total valuated stock before the posting
    Specifies the value of a material's valuated stock prior to posting.
    When I posted a initial goods movement, this field is not updated as explained above. When I am executing second goods movement, the field SALK3 is updated in MSEG table but not in MBEWH table.
    When this field value gets updated in MBEWH table. MBEWH table description says Material Valuation: History. How does it differ from MBEW table.
    Please Help.
    Rgds
    Raul

    Hi,
    MBEWH table is updated whenever there is change in Moving Average Price.
    MBEWH is basically the History table for MBEW - Material Valuation table.
    As MBEW is supposed to contain current values, when it has to be changed (like when updating material current price, etc.), the current value gets written to MBEWH and the new value gets written to MBEW.
    The current standard is always in MBEW. When the first activity in a u2018periodu2019 takes place valuation or quantity update; a record is written to MBEWH to document the balance, std, price control, that existed BEFORE the "first activity 
    The number that represents the previous period record being written into the MBEWH table is represented in the u2018current periodu2019 LFMON field. 
    EXAMPLE: when the first activity occurs in period 3 (i.e., a goods receipt), an entry is written into the MBEWH table with a u2018current periodu2019 number of 2. The quant and value updated to the u2018total stocku2019 and u2018total valueu2019 fields are equal to the data that represents these fields PRIOR to the activity quant and value occurring in period 3.
    If there is no activity for several periods, you will not have entries for every period in the MBEWH table
    Regards
    KK

  • New Datasource with MBEWH table

    Hi,
        I need to create a datasource based on a FM. The FM should retrive all the materials from MBEWH table for all the plants. It should basically retrieve the latest stock from MBEWH table.
    Consider a material A is posted at year 2007 period 6 and 7 and its not posted in the following periods, it should take material A of year 2007 and period 7. If I retrive all the records, sort it and delete adjacent duplicates then it would be a performance issue, Since its a history table it will contain numerous records. If we use aggregate function also, then it also leads to performance problems. Is there any other way of proceeding with this issue? Is there any way to retrive the lastest stock from MBEWH table?
       Any inputs.

    There are no other way to retrieve this data from MBEWH. You should have to write the Function module and give it your ABAP team with providing this inputs.
    Put this data into z table. to avoid performance issue you can run this as Batch job and updated data will come in your table and then extract this data from your z table.

  • Auto update of Ztable when ever BSID or BSAD tables updated

    Auto update of Ztable when ever DB table updated     
    Hi experts
    I want my Ztable get updated automatically when ever a record is created or updated in BSID or BSAD tables.
    Here clear requirement
    Generally using Company code & Allocation number  ( 18 char ) my programs access BSID & BSAD tables it is taking very long time for execution almost more than 30 minutes ( data in millions ).
    Step 1.
    I created a new Ztable with limited fields Company Code, Customer, Document, Allocation Number and Posting date.
    Step 2.
    Before look into BSID or BSAD my program searches Ztable for Customer number & Document number using Allocation field and Company code.
    Step 3.
    Once get the Customer & Document numbers accessing BSID & BSAD table is very easy (now just taking less than 1 minute).
    Created a new program to update Ztable every day but BSID and BSAD are live table so I want my Ztable get updated immediately when any entry posted in BSID or BSAD
    Please help me
    Satya
    Singapore

    You need to check what is the procedure (T-Code) from which the data gets updated into these tables.
    For example
    when we craete a material from MM01 the data gets updated in the corresponding table i.e. EKPO.
    In same way you need to find the process and then you can use BTE (Busineess transaction events) for that process. BTE are only for FI module and these tables are also related to FI .

  • Problem in MSEG Table updation

    Hello All,
    The problem is related to MSEG table updation after Stock Transport Order  (STO) is done between Manufacturing plant & Depot. The problem is described below with an example.
    In case of STO the Supplying Plant or vendor is SP02 and the Receiving Plant or the customer is RP15.in the STO under the shipping tab for Customer the system is showing RP15 and under the Delivery address tab for Vendor the system is showing SP02.
    While during PGI when the material document is generated when we check the MSEG table two line items have been generated where  we found that the field WERKS contained SP02 & RP15 against which the feld XAUTO is showing blank space & X symbol respectively.But in case of both LIFNR & KUNNR fields it is showing blank space, which indicates that both the vendor & customer  fields are not getting updated in the MSEG table.
    Now I want the system to pick up the data for KUNNR field (in case of XAUTO is X) also in the MSEG table i.e. RP15 should also be displayed in the MSEG table.
    Is there any configuration to attain my requirement?
    Looking forward to some valuable suggestions.
    Thanks & Regards
    Priyanka Mitra

    the ADRx tables are central tables that are used from various transactions in SAP.
    e.g. from customizing, master data maintenance, transactional data, such as purchase orders and sales orders.
    use the ADRNR from ADR6 table and then lookup an entry in table ADRC to find and hint to its origin  field ADDR_GROUP

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • How to capture the table update

    How to capture the table update.Suppose I delete a enrtry from the table or mofying any entry in a table is there way to capture that update in SAP?

    hi ,
    follow these steps:
    1. After you selecte the search help for New Responislbe person, domodify gets triggered.
    2. In the wddomodify, get the value of New Responsible person by reading the attribute binded to it.
    3. Now if Value entered is not initial, write a selecte query to fetch the name based on pernr no.
    4. Finally bind the name fetched with the attribute binded to New Responsible person name.
    Wdomodify :
    ************* *Read the New REsponsible person Pernr* ***********
      DATA lo_nd_cn_sflight TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_sflight TYPE REF TO if_wd_context_element.
      DATA ls_cn_sflight TYPE wd_this->element_cn_sflight.
      DATA lv_carrid LIKE ls_cn_sflight-carrid.
    * navigate from <CONTEXT> to <CN_SFLIGHT> via lead selection
      lo_nd_cn_sflight = wd_context->get_child_node( name = wd_this->wdctx_cn_sflight ).
    * get element via lead selection
      lo_el_cn_sflight = lo_nd_cn_sflight->get_element(  ).
    * get single attribute
      lo_el_cn_sflight->get_attribute(
        EXPORTING
          name =  `PERNR`
        IMPORTING
          value = lv_carrid ).
    ****** *Check whethre a value has been entered in PERNR* *************
    if lv_carrid is not initial.
    *************Select Name based on pernr entered* ***********
    select ename from pa001 into lv_ename where pernr = lv_carrid.
    *******Set the Name atttribute with the ename value fetched* *****
      lo_el_cn_sflight->set_attribute(
          name =  `NAME`
          value = lv_cename ).
    endif.

  • Tables updating for atransaction

    Hi All,
       i wnat to know is there any transaction code or program to know the tables updated for a transaction.
    we have a transaction called PPOM and FS00 ,i want to know which tables are updated when i create new records for these transaction codes.
    With regards,
    kiran I

    Hi,
      You can check tables CDHDR and CDPOS tables.
    You can check the modified tables, values, by which transaction does this modification has been done.
    Give current date to check. As these are cluster tables, it may take some time for retrieving data.
    CDHDR - header details
    CDPOS - item details
    Regards,
    Sailaja.
    Dont forget to reward points, if answer helps you.
    Message was edited by: Sailaja N.L.

  • Tables updated while creating order, before saving

    hi friends,
    Please provide list of tables updated while creating the order, before saving it.
    regards,
    vandana arora

    Hi
    The following tables get updated
    VBBE - Sales Requirement
    VBLB - Release Order Data
    VBAK - Sales Document Header
    VBPA - Partner Table
    VEPVG - Delivery Due Index
    VBAP - Sales Document Item Data
    VKDFS - SD Index: Billing initiator
    VAPMA - SD Index: Order Item by Material
    VAKPA - SD Index: Order Item by Partner Function
    VBEP - Schedule Line
    VBKD - Sales Doc: Business Data
    VBEH - Schedule Line History

  • How downtime can be reduced for setup table update.

    Hi;
    Can anyone tell me various ways to reduced system downtime for setup table updates.
    thanks
    Warm Regards
    Sharebw

    Hi,
    You will need to fill the set up tables in 'no postings period'. In other words when no trasnactions are posted for that area in R/3 otherwise those records will not come to BW. Discuss this with end user and decide. Weekends are a general choice for this activity.
    try Early Delta Initialization
    With early delta initialization, you have the option of writing the data into the delta queue or into the delta tables for the application during the initialization request in the source system. This means that you are able to execute the initialization of the delta process (the init request), without having to stop the posting of data in the source system. The option of executing an early delta initialization is only available if the DataSource extractor called in the source system with this data request supports this.
    Extractors that support early delta initialization are delivered with Plug-Ins as of Plug-In (-A) 2002.1.
    You cannot run an initialization simulation together with an early delta initialization.
    hope this link may make you clear about early delta init
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a65dce07211d2acb80000e829fbfe/frameset.htm
    thanks,
    JituK

  • Which are the tables updated in SRM and R/3 System for SC created?

    Hi,
    I want to know which are the tables updated in SRM system and also in R/3 system, when a Shopping Cart is created. Also how do i get the PO number for the Shopping Cart created.
    Thanks.
    Regards.
    Rahul

    Hello Rahul,
    All list of tables for eg. SC You can find in transaction BBP_PD on SRM side.
    These tables are (SRM):
    - CRMD_ORDERADM_H - for Header (Business Transactions Header)
    - BBP_PDHGP - Business Transaction Purchasing Information
    - CRMD_ORDERADM_I - for Item - Business Transaction Item
    - BBP_PDIGP - Business transaction item-Purchasing information
    - BBP_PDBEI - Backend Specific Item Data
    On R/3 side:
    EBAN - purchase requisition
    EBKN - purch. req. account assignment
    Regards,
    Marcin Gajewski
    please reward points for helpful answer

  • RAISING AN EVENT WHEN DATABASE TABLE UPDATES

    hi all,
             i want to raise an event when database table updates.For eg : if a price of a material has been changed then i have to raise an event and run the abap program in back ground.i know transaction SM62 to create event, i dont know about transaction SM64. please give me the procedure how to solve this problem. i dont know work flow. please give me a sample code how to raise event.
    thanka and regards
    suresh

    Hi Suresh
    It is important to understand that the SAP architecture abstracts the database from the application.
    I think that you should look for ways that the application triggers an event when an update has taken place, rather than the DB.
    Two ways of doing this that spring to mind are change pointers (for the ALE interface, see menu SALE) and Business Transaction Events (various things including CRM integration, see menu FIBF).
    The latter works very well for sending prices to CRM when they change. I am more familiar with this than ALE so I will discuss it.
    If you go to menu FIBF and then follow menu path Environment -> Info System (P/S), and then run the report for event 00503301, you can find documentation and a sample function module that you can copy.
    Once you register your new function module in the event tables then it will be called when prices are changed.
    Cheers
    Dom

  • Wrong VBAP table updation

    Hi
    Facing a problem with wrong VBAP table updation.
    Sales order shows Business Area" A " at both header and Item Level but in VBAP table the business area updated is " B ". can't understand why it is happening.
    Changelog doesn't indicate anything
    Thanks and regards
    Nikhil

    Hi,
    Can you check how the business rule that is assigned at SPRO-> Sales and distribution -> basic functions -> Account assignment/Costing -> Business area account assignment?
    Regards

  • Table Updation through Workflow

    Hi All,
              I have a scenario in my project in which a workflow is to be triggered when an entry is made in a table.
    Now this workflow has to read some data from some tables and then update some other tables.
    My doubt is it possible through workflows to update the tables? If yes is it advisable.Also how will the
    updation happen? Should methods for updation will be written in BO methods? Or should a task be called
    which does the same.
    Please suggest,
    Saket.

    Hi Saket,
    Yes it is possible!
    To trigger workflow from table updates you can use table level events. Refer to
    Re: WorkFlow when Data is changed in Table or program
    Also you can update a table from a workflow. To do this, create an Activity step in workflow. In this, you can call a BO method. This BO method would store the code to update the database table required.
    Just take care of the bindings between the method -> task -> workflow container.
    Hope this helps!
    Regards,
    Saumya

Maybe you are looking for

  • Problems with TTS user dictionary with Captivate 8

    Hi There, We have installed Captivate 8 on 2 machines at work.  We need to use Neo Speech and will be looking to add and modify pronunciations.  We are having some issues with TTS.  Firstly on my machine I can modify words and save the dictionary but

  • DB Trigger in Apps

    Hi, I am trying to create a DB trigger on AR_RECEIVABLE_APPLICATIONS_ALL table to update the custom table when the above table column attribute1 is updated through the form DFF. But I am getting the following error when I save the changes. FRM-40735:

  • How to get name of RandomAccessFile?

    Hello. java.io.File has a method: getName() which returns a string assigned to the name of the File. Is there an equivalent for instances of RandomAccessFile? If not, is there some way to get the name of a RandomAccessFile? Thanks in advance for your

  • Implementing text comonent content scaling

    Hi, I need to implement the HTML view (text fonts, images...) scaling. So how to do it? I havn't found JEditorPane is able do this and tried to run a simple test before. This code doesn't work: html_document and view are valid (non null) but the view

  • Are there significant changes in the UI framework between 5.2 and 2007 ?

    Hi, As the UI framework got introduced in 5.2 . Are there significant changes to the framework between 5.2 and 2007. Therefore could a developer with experience in 5.2 carry out developments within the UI framework for 2007? These developments need t