BAPI_PO_CHANGE - changing prices

Hi,
We have a batch job that is changing the Document Type at the PO header (EKKO-BSART) and the code sets the following fields to be changed.
  MOVE 'ZB'   TO poheader-doc_type.
  MOVE 'X'     TO poheaderx-doc_type.
BAPI_PO_CHANGE is called to change the document type.  In testing we found that the pricing for some line items are also updated with BAPI_PO_CHANGE because of outline agreements. 
We set NO_PRICE_FROM_PO = X based on note 552189, but still some POs where the doc type is changing the price is also changing.
Is there another value that needs to be set with the BAPI_PO_CHANGE to prevent the price from changing?
Thanks,
Martha

Hi,
The note was 580225, not 552189. 
Martha

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

  • 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

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

  • How to change price total for "Change Unit Cost Estimate Screen" for KKE1 Tcode ?

    There is a requirement of bringing the Material Price in KKE1 while entering the Item Catogory M ( M for Material) from the Gross Price in the condition type (P001) that is entered in the Purchase order.Currently systems brings the material value from MAP(Moving average Price) in the Material Master data.
    I have looked into the user exit 1) EXIT_SAPLKKEC_001 2) EXIT_SAPLKKEC_002  available in this T code KKE1.When I put break-point in these user-exit,it is not going in debugging mode while fetching the price value in Price total column  for "Change Unit Cost Estimate" screen in KKE1.
    How will change pricing condition for material in KKE1?
    I want to change price condition for material  as marked in red as shown in the screen-shot.
      Where will write the code such that I will bring Price Total based on material number as shown in the image?

    Hi Ram,
    I think you can do the same in thei manner.
    Go to program SAPMV45A.
    use menu GOTO -
    > Text Elements----
    >Text Symbols
    Here make change of Text-002 Sold-To Party as saleable .
    Regards,
    Pravin

  • In Sales Order Users are not allowed to change price for any material

    Dear all,
    Please give me the solution :
    In Sales Order va02 Users are not allowed to change price for any material .

    Hi Amit
    If you  want that in VA01 manual as well as other pricing condiion entry and cahnges to be allowed and only in va02 users should be restricted ,then  you have following alternative.
    Go to  T.Code SHD0
    Select Transaction VA02.
    Create a new variant ,give suitable name.
    select option change with processing.
    So u can run a va02 transaction and for every screen u can create screen variant and control data entry whether required  , dispaly or hide.
    in this for  LV69a pricing  screen disable update button .
    so system wont change anything updated or cahnged in pricing.
    further you can create the variant transactions  from this transaction variant and assign to different users as per control requirements.
    I think this will help you
    Regards
    mandar

Maybe you are looking for

  • Importing P2 .mxf files with audio into AE CS4

    I hope this isn't the ultimate newbie question but, I have been working with After Effects for a few months but haven't need audio until now. Is there a different process for importing/exporting with audio? I have brought in the P2 video file but I d

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year). 1.First function --> I

  • I have 2 different iTunes accounts; how do I get them both to sync to my iPhone4? It only allows 1 account.

    I have two personal iTunes accounts and want to conjoin the into one so that I can sync my contents to my iPhone4. So far I can only figure out how to sync with the iTunes account that I have obligated to my iPhone. CAn I conjoin the two accounts so

  • Read from spreadsheet file

    Hi! I am a beginner labview user and I have a problem reading data from a ..xls file. I have written in columns the data that i want to present in a waveform graph through labview. I give the path to the Read From Spreadsheet File tool and i connect

  • Stock Transfer : Possible Ways

    Hi All , I was looking for the possible ways to transfer stocks between plants .....I could find out following ways 1) One step (w/o STPO w/o Delivery w/o Billing/invoice) Using Mvt Type 301.Material is received automatically with MVT type 301. 2) On