MR21 change price bapi

hi all
i search a bapi to change price in transaction mr21. I have found several bapi BAPI_MATVAL_PRICE_CHANGE and BAPI_M_REVAL_CREATEPRICECHANGE, but the both can't need it, it doens't change
the price. there are two function modul PRICES_CHANGE and PRICES_POST. I've searched the forum already, but nothing found.
Can anybody help me....
Thx

Hi,
IFound BAPI_M_REVAL_CREATEPRICECHANGE but in this BAPI block by statement
Im Standard deaktiviert
error_flag = 'X'.
IF ( NOT error_flag IS INITIAL ).
EXIT.
ENDIF.
i created a custom  ZBAPI   and remove that statement and running well.
Note :
minimal required for parameters table MATERIAL_PRICE_LIST is
plant = ft_list-werks.
material = ft_list-matnr.
curr_type = '10'.
IF ft_list-vprsv = 'S'.
change_std_price = 'X'.
std_price = ft_list-nstpr * 100.
ELSE.
change_mov_price = 'X'.
moving_pr = ft_list-nstpr * 100.
ENDIF.
currency = ft_list-waers.
iso_code = ft_list-waers.
price_unit = ft_list-peinh.
quantity_unit = ft_list-meins.
isocode_unit = ft_list-meins.
check like this.If you d not want to create a custom one the go for lsmw recording and change.
Regards,
Madhu.

Similar Messages

  • How to change price of item using salesorder create bapi

    hi all,
         As per requirement i have to change price of the item while i am creating sales order using sales order create bapi. kindly tell me the process or if possible any sample program.
          thanks in advance
    thanks,
    pavan
    Message was edited by: pavan kumar pisipati

    hi max ,
          i created sales order using following code. from here onwords i have to update to change the price of the item. kindly do the needful. i am working 4.7 ides
    <b>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '50'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
      my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-req_qty   = '10'.
      append my_orderschedulesin.
      my_orderschedulesin-itm_number = '20'.
      my_orderschedulesin-req_qty   = '20'.
      append my_orderschedulesin.
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-division      = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag        = 'I'.
      my_orderschedulesinx-itm_number       = 'X'.
      my_orderschedulesinx-req_qty          = 'x'.
      append my_orderschedulesinx.
      my_orderschedulesinx-itm_number       = 'X'.
      my_orderschedulesinx-req_qty          = 'x'.
      append my_orderschedulesinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
          order_schedules_inx           = my_orderschedulesinx
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
    if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.
    endif.</b>
    thanks,
    pavan
    Message was edited by: pavan kumar pisipati

  • Change price with MR21

    HI,
    HOW TO CHANGE THE PRICE OF MATERIALS IN MR21?
    WHAT CRITERIA REQUIRED FOR PERTICULAR MATERIAL TO CHANGE PRICE WITH MR21?

    Go to MR21 and Enter
    Posting Date
    Company Code
    Plant
    Press Enter
    in the Next screen enter material, It will show you the Current valuation price in the " Current Valuation Price tab"...
    enter New price in the "New Price " Tab..
    This New Price will be applicable to the Period for the Posting Date you have maintained..
    Pls Reward Points If Useful..

  • Change price in material master

    Dear Experts,
    May I know how we can change std. price that maintained in material master. I believe t/code MR21 use to change price for MOP (moving average price) but I'm not sure for std. price.
    *Please assist me how we can use MR21 & what are the important element need to take care during price change by using MR21. And please help me to understand the t/code as well.
    Thank you.
    rgds,
    nantha

    HI,
    MR21 is for valuation price change. Go to t code and enter the material number and new price and save.
    Check the accounting impact in accounting documents.
    Regards
    Ram

  • Change price control V to S

    Hi there:
    We wanted to change price control type from V to S and also need to input 20 usd as standard price, so I went ot mm02 to change price control V to S, after that,I used mr21 to update standard price, then I saw price change document posted, do I need to change other area? Please advise.

    Hi,
    From standard price to moving average price
    You can make this change at any time. The moving average price (which until now has been updated for informational purposes only) replaces the standard price and is used for valuation from now on.
    From moving average price to standard price
    You cannot make this change in the following two cases:
    If the material master record is set up as a valuation header record for a material subject to split valuation For more information, see Split Valuation.
    If the standard price comes from costing and is not equal to the moving average price
    If the change is possible, the moving average price becomes the standard price, which is then used for valuation.
    You change the type of price control by overwriting the price control indicator in the material master record with the new indicator.
    Changing the type of price control for a material does not change the value of the material stock, since in both cases the current price becomes the new price.
    Regards,
    Viswa

  • Change price in Sales Order created with reference with Quote

    Hi Experts,
    Need to change price (eg..1000USD to 1100USD) in sales order (va02). Here Sales Order is created (va01)with reference with Quote(va21) where price in maintained (as 1000USD). so price in Sales Order is copied from Quote. Now, If I want to do the change in Sales Order (from 1000USD to 1100USD) kindly suggest me what are all the possible ways. Can I do the changes within the existing documents rather than creating new docs. due to the change.
    Note: User is creating new Quote with 1100USD and creating subsequent new Sales Order with new Quote.
    Thanks
    Viswanathan

    Hi,
    In va02 you double-click on the material that has been entered, then in the new screen goto the condition tab, here u will find the $1000 that you have entered, and then change it to $1100.
    Swapnil

  • How pricing condition be auto updated if the user changes price in PO ?

    Hi
    Is there any configuration setting on how pricing condition can be automatically updated if the user changes price in the purchase order ?
    Thanks
    Maruthi

    Hi Maruthi,
    As far as I know, POs (like many other documents in SAP) are "snapshots" of data as it was at the time of the document creation.  This snapshot has no direct link to master data, so it will not change unless you go to the document and manually change/refresh whatever data you need updated. 
    Even if there were a way to link your PO to master data to auto-update I don't see how any change on a PO could go backwards and change master data.  Pricing works the other way around - the PO takes the price from the condition records, not the records from the PO.
    Hope this helps,
    J

  • How to change price determination form blank to 2 on the material master?

    Hi expert,
    I had a difficult problem:
    Material ledger is active in our company Normally, in material master data accounting view 1, we always set price determination 2 and price control V. Price determination 2 is set default if creating a material master by entering no price determination.
    Today, my Key user came accross a prblem: In our company, for batch processing of material master, we made a mistake that  price determination were set blank (neither 2 or 3, In MBEW table, field MLAST is blank) when inputting material master. all data were imported without error warnings. But ,acturally, all materials' price determination in accounting view 1 was set Blank! This is a big problem that we can not release standard price or do any other price changing~~~.
    I have used CKMM to try to change price determination. But it failed: it can not identify this situation because old price determination must be set a word rather than blank in CKMM.
    I don't know any other solutions to change price determination from Blank into 2.
    Hope you can help me out. Very thankful!

    Hello,
    I have the same problem with a type material, the material ledger is active but the price determination were set blank.
    I already checked the OMX1 transaction... and all configurations of ML and type material and apparently is ok.
    Has anyone knows the solution?
    (maybe with applying a program or SAP note).
    Please help.
    Regards,
    Eliana

  • How to change Price determination from blank to 2

    Hi expert,
         I had a difficult problem:
         Material ledger is active in our company Normally, in material master data accounting view 1, we always set price determination 2 and price control S.  Price determination 2 is set default if creating a material master by entering no price determination.
         Today, my Key user came accross a prblem: In our company, for batch processing of material master, we use a IDOC to process inputting material master fields including the price determination field. But, because absence of the key user, price determination were set blank (neither 2 or 3, In MBEW table, field MLAST is blank) when inputting material master. all data were imported without error warnings. But ,acturally, all materials' price determination in accounting view 1 was set Blank! This is a big problem that we can not release standard price or do any other price changing~~~.
         I have used CKMM to try to change price determination. But it failed: it can not identify this situation because old price determination must be set  a word rather than blank in CKMM.
          I don't know any other solutions to change price determination from Blank into 2.  Specially, some materials that had already lots of movements and prices changing.
         Hope you can help me out. Very thankful!

    Hi,
    Currently the materials are inconsistent and there is no way to repair them with the standard
    programs. The problem should be corrected by Sap Support. Please create a oss message
    providing a detailed description of the incidence and the remote connection to check the problem
    in the system.
    Sorry for not giving you a better alternative.
    Regards,
    MLM

  • Backend Purchase Requisition - is it possible to change price?

    Hi,
    We are using classic scenario (SRM 4.0 - R/3 4.7), and, after the transfer of the PR to the backend system, the "Price" field in ME51N is non-changeable. Is it possible to change price for items in the backend purchase requisition after it was transferred from SRM system?
    thanking you in advance,
    Andrey.

    Hi Andrey
    One the Pr is generated in R3 backend system we can change the price field and this can be regulted by field status group where you have to keep the option optional for price field rarther than display .
    This is in MM -spro - Manterial Management - Purchase requisiton- Define Screen Layout at Document Level
    regards,
    Nimish Sheth
    Do reward points for helpful answers.

  • Function module to change price of uploaded product

    Hi Gurus,
    is there any function module to change price of uploaded product info in crm
    regards
    Naveen
    Edited by: Naveen Kumar on Feb 13, 2009 12:05 PM

    condition record can modify using FM 'CNFPR_RECORD_PUT'

  • User changing price in ME29n

    Dear Experts,
    user changing price,while releasing the Purchase order,how to avoid this problem,
    please suggest me.
    Regards,
    Varun

    Hi,
    This can be achived thru SPRO setting. Please go to IMG ==> MM ==> Purchasing ==> Purchase Order and click on Define Screen Layout at Document Level.
    Search for ME21N and copy this to ME29N. Select ME29N and go to Quantity and Price selection group and then you can change "Price and Price unit" from Optional entry to Display.
    regards,
    Ajay Mishra

  • Till at what Stage i can change price in Order 2 Cash Flow?.

    I would like to know below information,
    1. Can I change price after I book the Sales Order?.
    2. Can I change price before do the Pick Release or Ship Confirm?.
    3. I would like the reflect the price in Sales Order at the time of Shipping(Ex: at the time of enter the sales order my item price is 10, and shipping time price is 9).
    Thanks & Regards,
    Srinivas

    Hi Srinivas,
    1) Yes (though you would want to do this with controls/restrictions given you may have already acknowledged the earlier price to your customer).
    2) Yes and Yes (as long as the pricing flag on the order lines is 'Calculate Price' and not 'Freeze Price' you can change the price at any point up to Ship Confirm)
    3) You can set the pricing date on the order lines to the ship date instead of to the order entry date as long as you have price list lines and modifier list lines with effectivity dates far enough into the future.
    Regards,
    Jon

  • Changing Price Control S to V

    Hi
    Currently we have Price Control as S in the System for the Trading Finished Goods
    I need to change it V.....
    Before Changing it the Price control form S to V I just whated to confirm what would be the impacts in calculation of Cost.
    Regards
    Ash

    Hi
    U can change price control at any time also if stock exist for that material
    Check SAP help for this
    http://help.sap.com/erp2005_ehp_02/helpdata/en/47/60ff6249f011d1894c0000e829fbbd/frameset.htm
    Vishal...

  • Restricting user from changing price in me22n after goods receipt

    i want to restrict the users from changing the price of the material in me22n after after goods receipt.
    pls tell me the userexit for it with detail.

    Okay, then let me play the role of the bad man.
    Why would you need to restrict users from changing a price after GR ?
    Do you think that users are changing prices just for fun or to mess up the system?
    Have you talked to users why they want change the price after a GR?
    do you have an alternative plan, for the case that the price really needs to be changed to be able to post the invoice?  do you want to cancel always the GR in this case? Is is possible? What if the stock is already issued? do you then want to cancel the entire chain? what if a month end closure was already done?

Maybe you are looking for

  • How and where to add code to login page

    I have a login page which uses the Dreamweaver Login Behavior.  I want to add code to:      Check the status of the person loging in (status is the last field in the mySQL authentication table).           a.     If the person is already logged in, di

  • IWeb quit on me.....

    While launching iWeb 3.0.1, it would just about to open then this pops up... "iWeb quit unexpectedly while using the SFWordProcessing plugin." I was using it all afternoon. Worked just fine. I stopped for a hour or so, went back to work on a site, no

  • Adobe Business Catalyst Training

    Hi, I have some experience using Adobe Business Catalyst but have a budget to improve the gaps in my knowledge. Mainly I need help developing custom templates along with the e-commerce side. I am struggling to find any courses on the subject in the U

  • How to Access oracle DB table through SAP..problem in code

    Hello Guys          I have to Access oracle table through SAP and need to create a report. From Some source I got the following code .  But it's not working , I am not able to update the table as well not able to access the data from table. Can some

  • Configure REPORTS_PATH in Reports11g

    Hi, I'd like to know how to configure the REPORTS_PATH variable for Reports 11g from the Enterprise Manager, i know how to configure it with the reports.sh file, but i'd like to know how to do it from Enterprise Manager since it's the "recommended wa