Updating Material Master Moving Average Price using BAPI

Hi,
We need to create a program using which we can update material master moving average price for a specific material.
For this we are using BAPI_MATERIAL_SAVEDATA.
when we are executing this bapi with inputs, it is showing data updated or created but when we are checking it in MAterial Master the data (MOving Price ) is not getting updated.
Please advise,
Thanks.

I am trying to use BAPI_MATVAL_PRICE_CHANGE to change the price of a material in material master
(The moving average price [MAP] in Accounting View 1)
Using the BAPI, I enter
--> RFC target are
-> Material No.
-> Valuation Area
--> Prices table (I enter the new price that i want)
when I run the BAPI, i get error message (This can be seen in the returns table)
ID --> CKMLSENDPRICE
MESSAGE NUMBER --> 701
DETAILS --> No customizing data for Valuation Area XXXX found
PLease advise.

Similar Messages

  • How to get Material Master Moving average price into Purchase Order

    Hi,
    How to get Material master moving average price into purchase order instead of Purchase Info record.
    Thanks,
    Sridhar

    Hi,
            I  cannot understand whether it is necessary .
           How about as following step?
                 1. create Purcahse requisition
                                Price come form moving average price in material master.
                 2. Create Purchase order reference Purchase  requisition
                                There is a setting  from the unit price of P/R onto the unit price of P/O.
      Regards,
         Gaito

  • Costing material having moving average price

    HI
    My client is having business where prices fluctuates a lot and he wants to use moving average price for all materials including semi-finished and finished material.
    My question is in this senario how to do configuration of product costing and how will i be able to calculate cost as far as product costing is concerned. client doesnt want to use material ledger.
    Regards
    Invin

    Hi,
    You can not carry out period product costing activity if the material has moving average price control.
    If you set moving average price control to material master, the following activities control the moving average price
    1. GR (if the value is different from PO price) Entry in MIGO
    2. IR (if the value is different from PO price) Entry in MIRO (invoice posting)
    3. Price change using (MR21 Tcode)
    4. Debit/Credit Material (MR22 Tcode)
    Prerequisited for Product costing with quantity structure
    1. Material ledger should be active
    2. Product should be allowed for cost estimate (setting in Material Master)
    3. The master should have Standard price Control in the material master.
    If you want to change the price of the semifinished product with moving average price (due to price fluctuation) use MR21 or MR22. But this activity involves lot of human effort.

  • How to distribute exchange rate difference to material with moving average price?

    Hi community,
    Exchange rate differences are not distributed into the items based on the shipment (per article/material). Is there a workaround available based on the GR/IR exchange rate difference and the material that was purchased?
    Thank you and best regards,
    Barbara Dörr

    Hi Lokesh,
    thanks a lot for the quick answer, but I
    had read this documentation and only found this documentation of exchange rate
    difference posting:
    GR/IR clearing uses the exchange rate of
    the goods receipt. The GR/IR clearing run completely clears Unbilled Payables
    and Purchases in Transit. The run calculates price differences of EUR 155 and exchange rate differences of EUR
    135. The price differences are posted to the price difference account and the
    exchange rate differences to the exchange rate difference account.
    Therefore I guessed that the exchange
    rate differences are NOT distributed to the material with moving average price.
    Best Regards,
    Barbara

  • Stock of material and moving average price for each valuation type

    Hi
    Is anybody aware of any standard report which will show the stock of material and moving average price of the material for each valuation type.
    M5BL is one report but would like to check if there is any other report.
    Regards
    Vaibhav Mahajan

    Hi,
    Check MB52, select 'Display batch stock' option.
    Batch is nothing but your valuation type.
    You can see those details there.
    Regards,
    Piyush

  • SAP allows release of Standard Cost for Material with Moving Average Price

    Hi
    We set our Raw Material to use Moving Average Price (V) and price determination 2 (single level). And we activated material ledger.
    During mass calculation of standard cost (CK40N), If user accidentally forgot to restrict the Raw Material for being included in calculation, the system calculate standard cost anyway, even though I set it as Moving Average Price. And user is able to release it too without any problem.
    Why the system does not restrict it? By giving error maybe. Although as for now I can not find the wrong effect from releasing standard cost for MAP material, by your experience, is there any side effect that I should be aware of?
    Thanks

    CK40n is mass release of all materials. The release is not dependent on price indicator of the material in the master. It will calculate standard cost of all the materials.
    Releasing standard cost estimate of raw materials does not have any side effect as long your calculation is based on moving average price.
    Regards
    Divraj

  • Material Costing: Moving Average Price Issue

    Hi Experts,
    I have a issue regarding the Moving Average Price of the Material computed by the system (indent sales process):
    The Material was created with Purchased Price .74PO Price x 10 items = 7.4 Amt in LC Posted into the system (PGR).
    But afterwards, they reversed the Material Document with the same Price .74PO Price x 10 items.
    This had been done last 2009.
    Come 2011, they created another indent sale -> PO ->PGR for this material, now the price is .12 PO Price x 10 items = 1.2 Amt in LC Posted. However, the moving average price was computed 0.77
    How does the system comes up with this computation? Is there inconsistencies in the system?

    Thanks @jurgen. I checked-double-checked in MR21, there are no change documents under the material.
    in MR51, added one Issue Document:
    Material           Material Description                     CoCd ValA
    Type DocumentNo Itm Pstng Date          Quantity BUn     Amount in LC Crcy
    2A1E8113-20        COVER SHIFT                              1100 1110
    WE   5000003540   1 25.02.2011               10- PC             1.15- SGD
    WE   5000003534   1 23.02.2011               10  PC             1.15  SGD
    WL   4900020403   5 17.09.2009               10- PC             7.35- SGD
    WE   5000001968   5 17.09.2009               10  PC             7.35  SGD
    In S_P00_07000139:
    Start date :        01.01.2009                         0  PC                   0.00  SGD
        Total goods receipt                            20 PC                   8.50 SGD
        Total goods issue                              20 PC                   8.50 SGD
    End date   :        28.02.2011                         0  PC                   0.00  SGD
    SLoc S Date       Reference Doc.   GR/GI Slip MvT           Receipt             Issue            Amount  Balance quantity Price/Unit (Bal.)    Balance amount Comment
    WH01 E 17.09.2009 PL001427         5000026286 101           10.000             0.000              7.35            10.000              0.74              7.35  GR for sales ord.st.
    WH01 E 17.09.2009 1121010049       4900227144 601            0.000            10.000              7.35-            0.000              0.00              0.00  GD delivery sls ord.
    WH01 E 23.02.2011 2002381          5000048052 101           10.000             0.000              1.15            10.000              0.12              1.15  GR for sales ord.st.
    WH01 E 25.02.2011 2002381          5000048120 102            0.000            10.000              1.15-            0.000              0.00              0.00  GR f. sls.or.st. rev
    Still it's not tallied with the MAP = .77 in Material Master.

  • How to enter initial balance for material with moving average price

    We have an issue where the customer wants to split one material into three materials. We are thinking of posting goods issue for the original material and post goods receipt for the new three materials. But how to enter the initial balance since these three materials must have moving average price.

    Hi,
    If you create material first time in system with the help of MM01 then specify the price this will gets affect on moving price.
    and if the material is created with ZERO price then use the option MR21 which is said by  Jürgen
    Reagrds
    Sandesh

  • Material with moving average price ,while posting grn act as standard price

    hi gurus
    i have a material with a moving average price , according to moving average price during grn posting no price difference account should be created at any circumstance , but while i posted grn , i am getting stock account - wip 14407.98 , GRIR - DM 16800 -
    Price difference  matl trns - 2392.02 WHY THESE PRICE DIFFERENCE CREATED  i have maintained only moving average price in  accounting view
    regards
    Leo

    hi
    In SAP we have two price control  moving average price and standard price
    In MMR if u using Moving average Price  if any difference in price it will post it to stock account
    but in case of standard price it post it o PRD account (Price diff Account)
    Regards
    AKM

  • MIGO - cancel material document - moving average price

    Hello,
    When using MIGO to cancel a 101 movement, referring to the original material document, the correction on quantities is correct but the correction on value is incorrect.
    Material is valuated with moving average price, and the price of the material has evolved in the meantime, which could explain the problem.
    Thanks in advance for your suggestions.
    Regards,
    Sergei

    Hello Jürgen,
    Thank you for your quick reply. I read the note -- it describes the symptom perfectly, and gives example cases which match our situation. However, no solution or recommendation is given. Does it mean that this way of valuating cancellations is not seen as a malfunction, and cannot be changed?
    Thanks in advance.
    Regards,
    Sergei

  • Material Master Moving Ave. price automatic in Purchase Order

    Hi Experts!
    Good day! Does anyone know how I can configure the Material Master Moving Ave. Price to be automatically reflected in a Purchase Order?
    Actually I am doing a Stock Transfer Order, and I want that the Moving Ave. Price maintained in the Material Master reflected in the order.
    Thank you!
    Mik

    take an abaper help , user exit
    table MBEW  filed VERPR  from  mat master to doc type( PO doc type) , MEPO1211,NETPR .
    rewds

  • Change material master i.e MM02 using BAPI's

    Hi ,
    I need a BAPI which will change material master for changing MRP 2,Accounting 1 and Costing 1  View .
    Please provide me with code if possible .
    Thank you .
    Regards,
    Kumar.

    hi ,
    Use the fm SELECTION_VIEWS_FIND to get the list of active view for a particular materisl.
    The index of each record in the returned table will correspond to the position of that view in the list of views that is displayed in the bdc recording.
    The number of views maintained for a material is listed in field MARA-VPSTA.
    Each Letter in above fields indicate the views maintained. Following is the list.
    A Work scheduling
    B Accounting
    C Classification
    D MRP
    E Purchasing
    F Production resources/tools
    G Costing
    K Basic data
    L Storage
    P Forecasting
    Q Quality management
    S Warehouse management
    V Sales
    X Plant stocks
    for bdc check this,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bdc%2btutorial
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/new%2bpage
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm

  • Moving Average Price for Non-Valuated Material

    Hello Experts
    The question may seem to be quirky but need your advice for the below.
    My client is buying non-valuated material against a cost center, they do not want to keep the stocks valuated. No value update only quantity update. The accounting documents are the following when the GR is done by receiving folks
    Qty of material XYZ goods receipted = 10
    Debit     Consumption GL   12345678       10 USD          Cost Center ABC123 (This is a warehouse cost center)
    Credit    GR/IR account                            10 USD
    Qty of mateiral XYZ issued = 5
    The goods are later on issued to Production cost center and the client was the below entries to be passed with MOVING AVERAGE PRICE.
    Debit    Consumption GL 12345678           6 USD          Cost Center ABC456 (This is production Cost center)
    Credit   Consumption GL 12345678           6 USD          Cost Center ABC123 (This is warehouse cost center)
    I am aware that as this is a non valuated material the above entry is not possible. Maybe, I will use BAPI_ACC_DOCUMENT_POST for the generating the accounting document when the goods are issued from warehosue to production center.
    My question is how can i get the moving average price.
    Regards
    Chokkalingam Pillai

    you can have an accounting view for non-valuated materials, this helps for example with purchase requisitions as they could take the valuation price from the material master and the user does not need to enter a valuation manually.
    But the material master moving average  price cannot be calculated and updated automatically, as it is not foreseen in any standard program to do this for cost center procurement, since SAP only calculates a MAP for valuated stocks.
    Further it is not logical to issue non-valuated stock valuated (even with a different price) from cost center to cost center.
    It looks like you want to  have a kind of internal billing for warehouse services, as you end up with a negative amount in the warehouse cost center which is then the profit.
    Why don't you just  create a report to run at the end of the month, listing all goods issue movements with their cost centers and taking the price from last PO (or from material master if you decide to maintain it manually) and use this for a manual cost center posting in CO module

  • Function module to update Moving Average price for Material?

    Hi guys,
    is there a function module or BAPI to update the moving average price in a material master?
    i have tried UPDATE_MATERIAL_PRICE but guess it does not work. I have also tried MB_UPDATE_MATERIAL_PRICE and it seems to not work. Any pointers?

    We have a need to update the moving average price using movement type 531 for a custom solution we have built for other business requirements.  We have not found a way to update the moving average price yet using any of the information provided here.  Can any offer any other suggestions.  Looking for a BAPI, user exit, or function module that we could tap into in order to updat the moving average price.  Here is what we found...
    We believe that the following suggestions doNOT apply...
    BAPI_MATERIAL_SAVEREPLICA is basically for updating material master records in general.  It does not address the offset to the alternate accounts.
    BAPI_COSTESTIMATE_UPDATE_PRICE does not adjust the moving average price.
    CIML_UPDATE_MATERIAL_PRICE updates Project Stock.
    Any help would be greatly appreciated.

  • -ve price change in Moving average Price of Material in Material Master.

    Dear All,
    Kindly guide on below issue.
    We have a Material e.g A which stock was available in System let us say 10 qty & the Price per unit was Rs.10. But in last August some users chagned the price to Rs.5 because of whcih the Valuation in previous period has become negative.
    Now I have to rectify this. Now please tell me how can I do so.
    Also Note: there are sevral other Movements have happened since then i.e. GR, IR, Consumption for Production etc.
    This is very important.
    Regards,

    For negative MAP , there are steps which are given in SAP note 356757. Follow this steps to overcome this issue.
    The notes goes as...
    Summary
    Symptom
    When you try to post an invoice for the purchase order, the system generates error message M8783: 'Moving average price for material & & & is negative'.
    Additional key words
    MRHR, MR1M, MIRO, MMVAL, M8783
    Cause and prerequisites
    You posted a valuated goods receipt for a purchasing document for a material with moving average price control.When the invoice was posted (invoice item with price variance for goods receipt), the system generates error message M8783: 'Moving average price for material & & & is negative'.
    Between the posting of the original goods receipt and the entry of the invoice, the system already posted additional valuation-relevant transactions/events (goods movements, invoices and so on, can be displayed with Transaction MR51).
    The invoice verification tries (for stock coverage) to credit/subsequently debit the difference between the value of goods received and invoice item value for the stock.However, the material total value must not become negative by this stock posting.
    Solution
    Before you post the invoice, you must first increase the stock value.
    The amount by which the stock value must be increased at least can be calculated from the following values:
    1. Transaction MM03, accounting view material master, field 'Total value' (MBEW-SALK3)
    2. Invoice item value according to invoice
    3. In the invoice verification (Transaction MR01, MR1M, MIRO), change the invoice item amount to a value which is high enough and simulate the invoice to receive the value which would be posted for this item to the GR/IR account.
    In the invoice verification, the value (3) minus (2) is posted to stock. It must be larger than (1).Post a subsequent debit with the amount (3) + (1) - (2) for the affected material/plant (Transaction MR22).
    You can post the invoice afterwards.

Maybe you are looking for

  • Video Playback In Acrobat 9

    I’ve been looking on this forum and if this problem is covered in another post, if you could point me in that direction that would be great. If you have an answer to this problem that would also be great. We build classroom presentations in InDesign

  • Cisco ACS 5.2 authentication against multiple LDAP servers

    Hi Folks, I have a wireless network that uses ACS 5.2 to handle authentication.   The ACS is integrated with an Active Directory LDAP server (my_ldap) and is working correctly at the moment.    The authentication flow looks like this:  - User tries t

  • Dmake is very very slow in our builds (HELP please!!!)

    We use dmake (with makedepend) in our builds and our build time for the entire system is extremely slow (it takes 17+ hours to do a clean build). Could anybody suggest a solution or remedy to help us reduce the long build times. We use solaris 2.6 wi

  • Syncing problems when using playlist folders

    I am using playlist folders on iTunes. When syncing to an old iPod photo, all the playlists are copied (without the folder structure). Trying sync for the first time on a new iPhone 4S, only playlists that are outside the folder structure are copied

  • Basic menu and displaying

    Need help with what should be a basic problem (And hopefully basic easy answer ^_^) I first display a splash screen then after it's dismissed displays a list of items. Can't seem to get it to work at the moment. the midlet class: public void startApp