Issue in Update Standard Price using BAPI_M_REVAL_CREATE PRICE CHANGE

Hi folks,
I was using BAPI_M_REVAL_CREATE PRICE CHANGE   to update standard price, but this BAPI is not working for me..
Can anyone give me an example to run it?
My code is like this:
        t_comp_code                              = t_thold_final-bukrs .
        t_material_price_list-plant             = t_final-werks.
        t_material_price_list-material         = t_final-matnr.
        t_material_price_list-val_type         = t_final-bwtar.
        t_material_price_list-change_std_price = t_final-stprs.
        APPEND t_material_price_list.
        CLEAR  t_material_price_list.
      CALL FUNCTION 'BAPI_M_REVAL_CREATEPRICECHANGE'
        EXPORTING
          comp_code           = t_comp_code
          pstng_date           = sy-datum
        IMPORTING
          ml_doc_num          = w_mblnr
        TABLES
          material_price_list = t_material_price_list
          return                   = t_return1.
Please help as after runing this there no error in return and no material document no created.
thanks,
varun
Edited by: Varun Gupta on Jun 12, 2009 4:06 PM
Edited by: Varun Gupta on Jun 12, 2009 4:08 PM

No idea
no error in return and no material document no created
just try debugging it

Similar Messages

  • Issue in updating contract Line using OKC_CONTRACT_PVT.update_contract_line

    Hello all,
    I am facing an issue while trying to update the Contract line end dateusing the api OKC_CONTRACT_PVT.update_contract_line. when the procedure that calls api is executed it returns status S with no errors and also updating the base table i.e OKC_K_LINE_B with new end date succesfully.
    The issue is that whenever i am commiting the changes, in the front end, application - Contract line record gets disappearing. This is happening for all the item instances. Following are the parameters i am passing to the api,
    p_chrv_rec.id:=<line id in okc_k_lines_b table>;
    p_chrv_rec.end_date:=<new_end_date>;
    p_chrv_rec.VALIDATE_YN:='N'; -- i do not want the api to validate the attributes
    Pls note that the api is succesfully updating the base table record but not able to display it in the application. i have tried comparing the same record before and after updating to confirm whether any flag value is getting changed because of which record is not displaying in the apps. but there are no such changes except the new date and the annualiazed_factor. Can you pls let me know any workaround like whether any profile option needs to be changed,to achieve the same.
    Navigation to the application im checking to see the updated new end date of contract line is :
    Oracle Install Based Agent User-->Item Instance-->contracts
    Thanks in advance.
    Regards,
    Sri Harsha.
    Edited by: user10545574 on Jul 8, 2010 6:56 AM

    Hi,
    Shouldn't you be using the public api (OKC_CONTRACT_PUB) instead of the private one? By using directly the private package, you are probably bypassing some functionality which could cause issues like the one you are talking about.
    Regards.

  • I want to confirm a best practices issue - Acrobat XI Standard Forms used on an Apple OS - is this an issue?

    I am creating forms in Acrobat XI Standard on a Windows 7 64 Bit machine. I am reports that the forms do not work and I am seeing screen prints where the fonts in the form fields are larger and displaced than those in the original form I created. This is happening on an Apple product. So is this an issue? I read a post from 2007 saying that it was. But is it still today and if so, is there a way to deliver a form that works in Windows and in Apple while using Acrobat XI?
    Thanks

    The issue is not just Mac Preview. You must, as a form creator, be aware that anyone getting a computer or tablet today will have a PDF reader, or several, and not Adobe Reader. Not unless they choose to get it, and you would need to give them a compelling reason to both install and work out how to use it.  Readers people will have include
    * Mac OS Preview (command and used in Safari browser)
    * Windows Reader (with Windows 8)
    * Chrome, Firefox (browsers with built in PDF viewers)
    * iOS (iPad, iPhone) built in PDF (also Adobe Reader, while available, is very limited)
    * Android (tablet, phone) built in PDF (also Adobe Reader, while available, is very limited)
    * ChromeBook - built in PDF, no Adobe Reader app.
    The hardest part is not geting people to install Adobe Reader, but to understand that, even if they have done so, that their browser probably doesn't use it.
    Some PDF viewers ignore forms, some have limited forms support. The worst common one is Preview, as it appears to have form functionality, but it makes broken forms. Apple have no interest in fixing.

  • Issue with updating service notification using BAPI_ALM_NOTIF_DATA_ADD

    Hi experts,
    I would be very grateful if anyone could help me out with this.
    I need to update the object code damage code and cause code of the notifications (transaction iw22) through portal. For this I have made a z BAPI and am calling it through portal. Now for my notification type H1 the damage and the object part are mandatory and the cause part is not. Now while trying to update(through portal) any H1 type of notification which already has object part and damage part filled but cause part blank I am getting the error “notification locked by EPUSER”. When I run the same z bapi on R3 giving same data then error doesn’t come and every thing is updated successfully.
    Even from portal I am able to update other type of notification where either all damage cause or object part is blank or filled. This particular issue happens only the notifications having only cause part is blank.
    The logic that I have used to update the notification where cause part is blank is I have called  first ALM_NOTIF_DATA_MODIFY and have passed the damage code and object code table(notifitem) in its parameter so that damage code and object code can be modified(i haven’t passed the cause code table as passing empty cause code table(Notifcaus)to this bapi throws error) after calling this bapi i have called BAPI_ALM_NOTIF_DATA_ADD and in its parameter i have passed only cause code table(Notifcaus ) (I haven’t passed table having damage code and object code) . So on the successful execution of this two bapis i should get the updated object, damage and cause codes.
    There is a sap note 1058895 which talks about the same issue but even after applying that note same problem is coming. We raised and OSS message to sap to but I guess it won’t be of much help.
    My observation is that after calling ALM_NOTIF_DATA_MODIFY as I am trying to call ALM_NOTIF_DATA_ADD for same notification so its throwing the lock error but the point is that why then from the R3 side this error is not coming. Are there any FM to enqueue   and dequeue notifications like we have for employee numbers in HR module.
    Regards,
    Mehul

    Hi,
    Check out the thread below. It might be of help.
    Re: update PM notification through fm/bapi
    Also, post it in ABAP->General Form for a quicker response.
    Thanks
    Nidhi

  • Serial number "invalid" installing Design Standard- Initially used on PC, changed to IMac

    Hi everyone !
    I have recently upgraded from my alienware to a 5K IMac, i'm now trying to re-install Adobe CS6 Design Standard. My Serial number is being rejected...
    Hoping that's not because it can only be used on PC.
    Dowloaded the one on my IMac from Adobe.com, just trying to put in the serial that is also from my account in adobe.
    Thank-you!!!

    Hoping that's not because it can only be used on PC.
    Exactly that. You need to run a platform swap.
    Order product | Platform, language swap
    Though I can already tell you that you won't enjoy your CS6 on a 5k Retina display. It's not compatible and everything will look soft and/ or tiny.
    Mylenium

  • Is it possible to update standard rate for an enterprise resource using CSOM

    We are facing issues while updating standard rate for any enterprise resource using CSOM. The field standard rate is not available in the enterprise resource. Is it possible to update the standard rate for any resource using CSOM ? 
    Thanks in advance for any help.

    Hi Vikas,
    You can do it via the PSI.
    Please find below a blog post with a PSI code sample for updating the resources standard rate:
    https://epmxperts.wordpress.com/2011/01/30/update-resource-cost-rate-using-psi/
    In addition, here is a blog post by Brian about a PSI bug while updating the resource rate:
    http://blogs.technet.com/b/projectsupport/archive/2013/02/12/project-server-resource-rates-changed-with-psi-not-seen-in-project-professional.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Problem with changing the Standard Price using MR21

    I'm upgrading the system from 4.6C to ECC6.
    Upgrading the Standard Price works normally in 4.6C. However, in ECC6, I notice that the data saved to CDPOS table is wrongly formatted. Therefore the other programs fail to read from this table.
    Standard price is supposed to be right-justified. But it not like that in ECC6.
    Can anyone tell me we should I look into to control the process of saving the data to CDPOS?
    Thanks.
    Han

    Thanks Amuktha.
    The link doesn't seem to help resolving my problem.
    The changes is saved into CDPOS in the field Value_New (CHARACTER 254) in the way that the actual data can be retrieved by:
    value_new+238
    But any update to the standard price using MR21 now result in the value of Value_New that require:
    value_new+7
    to get the actual data.
    Further more, in the old system, the standard price value in the decimal form like: "55.66" will be save to VALUE_NEW as "5566". So to get the real value, the system need to devide the value by 100 to get the actual new price.
    In the ECC6 system, it is exactly the same as what we input: "55.66".
    My question is: Is there an user exit, BADI or any way that can interfere the process of saving the data to CDPOS so that I can ensure the new Price will be save as "5566" and can be extracted using VALUE_NEW+238?
    Thanks.
    Han

  • MAP / Standard GRC and inventory unit price used during MIGO

    Hi,
    I want to seek advice of the below.
    The value is quantity x unit price where I would like to ask on unit price.
    MAP - during MIGO
    1 debit inventory - price refer to PO or material master
    2 credit GR/IR - price refer to PO or material master
    Standard - during MIGO
    3 debit inventory - price refer to PO or material master
    4 credit GR/IR - price refer to PO or material master
    Thanks alot

    > What about GR/IR? The unit price is getting from where for both cases?
    > Also for inventory account, I thought for standard, it should be from material master?
    >
    > Now a bit confusing to me.
    >
    > Shiva reply below :
    > MAP
    > PO price Dr to Inventory A/c
    > Cr-GR/IR - ?
    >
    > Standard
    > PO price Dr to Inventory A/c
    > Cr-Gr/IR - ?
    Hi Cal,
    Obviously it is the PO price. GR/IR is the offsetting intermediary entry that is to be paid to the vendor with respect to the price you have mentioned in the PO, it is acc payable to the vendor depending on PO unit price. In real time you are buying the goods from the vendor at the price which you mention in the PO, hence system has to take account how much worth material in coming to inventory and how much outstanding to the vendor (GR/IR).
    In case of MAP, market price keeps varying and the same is updated in the material master on averaged base as and when the procurement price keeps changing, but that will not stop you from buying material at lesser or higher price everytime you order your vendor.
    In case of standard price (usually for FERT, HALB) it's your business decision to keep the material price standard and fixed for various resons (such as costing and cost sales price) hence any price differences in S are to be mapped to separate G/L acc to track the differences. Nevertheless if your standard price is say $10 and your PO price is say $8 or $15, inventory is debitted with the PO price ( $8 or $15) and the same is creditted to GR/IR as acc payable to vendor.
    Hope its clear
    Regards
    Shiva

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

  • Stock report using actual price

    HI ALL
    We want to have a report which is similar to J3RFLVMOBVED (  Stock on Start、Goods receipt、 Goods issue、Stock on End )
    But the value is using standard price.
    We already activated material ledger which will calculate actual price and update to periodic unit price field.
    Is there any standard report similar to J3RFLVMOBVED but using actual price ?
    Thanks a lot
    Danielle

    HI
      I guess the problem might be lying with the way you
    are handling the date or period.
      Can you post your code???
    Kind Regards
    Eswar

  • Report displaying Material Standard Price and PO Price

    Hello Experts
    We have materials which are purchased. Price control is maintained as standard price and standard price is maintained using T Code MR21 periodically.
    Due to this when PO price is different from standard price maintained in material master (usually PO price is higher than standard price) all price difference are posted to price difference GL at the time of GR.
    Now users want to check variations between standard price and PO price for the material receipts.
    Can anyone suggest me any report which provides details of standard price and PO price for the material receipts?
    Thanks in advance for your help.
    Satya Alapati

    Nothing std I'm aware of either.  You could consider using the messages 06 205/6/7 to get a warning at the time POs are created that price varies significantly from std.
    Config help text below:
    Set Tolerance Limits for Price Variance
    In this step, you define the tolerance limits for price variances.
    When processing a purchase order, the system checks whether the effective price of a PO item shows variances compared with the valuation price stored in the material master record. In addition, it checks whether the specified cash discount value is admissible.
    Variances are allowed within the framework of tolerance limits. If a variance exceeds a tolerance limit, the system issues a warning or error message.
    In the SAP System, the types of variance are represented by the tolerance keys. For each tolerance key, you can define percentage and value-dependent upper and lower limits per company code.
    Standard settings
    The standard SAP System supplied contains the following tolerance keys:
    PE Price variance, Purchasing
    Tolerance limit for system message no. 207. This message appears if the specified effective price exceeds the predefined tolerances when compared with the material price.
    SE Maximum cash discount deduction, Purchasing
    Tolerance limit for system message no. 231. This is a warning message, which appears when the specified cash discount percentage exceeds the predefined tolerances.
    Note
    You can specify whether the system message appears as a warning or error message using the menu options Environment -> Define Attributes of System Messages.
    Activities
    Maintain the tolerance limits for each tolerance key per company code.
    Regards,
    Nick

  • Report on Standard Prices & Moving Average Prices

    Hi,
    Would like to have a report on List of Materials with Standard Price & Moving Average Price per plant?
    Though we use Standard Price, since material master also gets updated with Moving average Price.
    Regards,
    Vengat

    Hi,
    Try MM60 tcode, see if it is suitable to you.
    It shows you both (average / standard price)
    Best Regards,
    Natan

  • Standard and Moving average Price

    Hi,
        What is the Difference between Standard and Moving Avg Price, What are the Cases will we use Standard  Price ,and what are cases shall we use Mov.avg Price, Please Explain me with Example.

    Hi Lakshmi,
    Moving average price is maintained for all the outside procured materials and standard price is maintained for all inhouse manufactured materials...
    We need to run standard cost estimate monthly to update the prices of all the materials with price control S... Prices of materials with price control V will get updated as soon as we do GRN for the materials on the weighted average method...
    Regards
    Raj

  • Standard or Moving avg price

    Hi Experts,
             What is the difference if price control of finished products in Standard or moving avg price ?
    1. I  know moving avg price is always change able but Standard price is also changeable if standard price is changable when it change ?
    2. If price control is S for finished products then product costing is happened or what !!!
    3. Price and qty of FG if it is moving avg price when changed (When GR is happened or when settlement is happened) ?
    4. In finished products if  price control S , when we run costing run (CK40N) i think price is changed,before it we settlement production order at that time price is also changed
    Kindly clarify
    Thanks & Regards,
    Debashis
    Moderator: Please, respect the rules; ask one question per thread and try not to ask 'quiz' questions

    Hi,
    Pl see the answers as below:
    What is the difference if price control of finished products in Standard or moving avg price ?
    1. I know moving avg price is always change able but Standard price is also changeable if standard price is changable when it change ?
    *Ans:You are right on moving avg price that new avg price  is calculated after every goods receipt, invoice receipt and order settlement. But in case of price determination "S", all the material movements got updated with standard price only. If Material Ledger is in Active, you can't change the standard price of the Material once you have the movements posted or the status of the Material in CKM3N shows " Quantities and Values Entered"*
    2. If price control is S for finished products then product costing is happened or what !!!
    Ans: No. This is one of the available valuation method in SAP.
    3. Price and qty of FG if it is moving avg price when changed (When GR is happened or when settlement is happened) ?
    *Ans: new avg price  is calculated after every goods receipt, invoice receipt and order settlement*
    4. In finished products if price control S , when we run costing run (CK40N) i think price is changed,before it we settlement production order at that time price is also changed
    Ans: When you run CK40N standard price will get updated against the respective material and the same is used against all the material movements.
    The main difference between the two valuation procedures is that the moving average price represents a current avg price while the standard price is based on planned values.
    In case of Price Control "S" differences to a price difference account and however in case of  moving average price,  the material stock value in Financial Accounting will get updated.
    Regards,
    Pandu

  • Changing of Inventory Valuation:  Standard to Moving Average Price

    I work at a service-based company and have also been asked to research the impact involved with switching our inventory from standard price to moving average price. 
    Scenario:  Change material type TRAD (trading goods) from standard price to MAP.
    Process:  Change settings in SPRO at the level of u201CDefine Attributes of Material Typesu201D.  Currently, this is set for u201CStandard priceu201D with the indicator u201CPrice ctrl mandatoryu201D set.  Upon change to u201CMoving average price/periodic unit priceu201D, Iu2019m thinking I need to de-activate the u201CPrice ctrl mandatoryu201D field so any current materials with an u201CSu201D in the Price control field on the Material Master Accounting 1 tab can be changed to u201CVu201D.  Is this correct?  Also, is there a program that already exists to mass update the Price control field on the Material Master?  If not, I was looking to create a CATT for this changeu2026.any other ideas?  In some of the forum posts it was mentioned to use t-code MR21 however, even with the u201CPrice ctrl mandatoryu201D field de-activated, the Price control column is grayed out.
    It was mentioned in a previous post that all open documents (PO to IR) need to be completed before changing the price control setting, at what point does this stop the process?  Does SAP generate a system error message?
    Also, any suggestions as to when this price switch is best to take place like after inventory?
    Are the above mentioned areas the only areas I should be concerned about or am I missing some areas that should be addressed?
    P.S. We do not use have our ML (material ledger) activated or use split valuation.
    Thanks~
    Dawn

    Hi,
    If you want to change material from standard to moving average price, Follow the below process
    1)first the material quantity and value should be zero
    2)if you want to keep value and quantity and want to change price control in future you have to create new material with price control "V' and lock the previous material for posting.
    Regards,
    Sreekanth

Maybe you are looking for

  • Going from Pages to EPUB using InDesign?

    Is there a guide for going from a Pages document to EPUB using InDesign? The target is a book that is over 105K words for 425 pages. I am an absolute beginner with InDesign and I was hoping to more finely control the outcome of EPUB generation by usi

  • ESB/DB adapter and use of sequence,,,

    I've tried to implement a DB adapter - for inserting data into one table with a PK. In addition, I've created a sequence (start with 1). I've checked use native sequecing, preallocation set to 1, attached the rigth sequence to the right table/pk. Now

  • HELP: Copying layers from one file to another to keep structure not possible??!!!

    Hi guys, I have a curious question. Sounds a bit silly and highly disappointed if Illustrator is actually not capable of doing this. Hopefully I have missed something. I have an AI doc that has grown so large that saving it now is a major effort so t

  • Trying to update Adobe Flash Player: 'update' seems to be OUT of date

    I've been trying to download updated version of Adobe Flash Player over & over again for over two hours. The only available version reads 'updated April 19, 2013' and does not work - I am still seeing "blocked plug-in" everywhere there should be a vi

  • Old 32gb i5 backup, restored on my new 5s 16gb...none of my settings restored! Help

    So my old 32gb iphone 5 backup was successfully backed up. Now when i restored my new 5s 16gb model with the 32gb backup, all it did was it dumped apps and contacts but didnt restore my saved settings, email settings, grouped app folders, network set