Update the price related to condtions in Sales Order

Hi all,
I want to update the price related to condtions in Sales Order from input file. I am using bapi 'BAPI_SALESORDER_CHANGE' to for this.
the code for this
    wa_conditions-itm_number = wa_itab-itm_number.
    wa_conditions-cond_value = wa_itab-kbetr.
    wa_conditions-cond_type  = 'ZPSV'.
    wa_conditions-cond_count = wa_itab-kwmeng.
    APPEND wa_conditions TO it_conditions.
    wa_conditionsx-itm_number =  wa_itab-itm_number.
    wa_conditionsx-cond_count = wa_itab-kwmeng.
    wa_conditionsx-cond_value = 'X'.
    wa_conditionsx-cond_type  = 'ZPSV'.
    wa_conditionsx-updateflag = 'U'.
    APPEND wa_conditionsx TO it_conditionsx.
But this is creating a new line in conditions instead of updating the existing line, I want to update the exsting line with new condition rate instead of creating a new line.
i have tried by   lv_logic-pricing = 'B'.
But it works when values are maintained in vk11.
Please help me if you have any soultion for this.

hi siya,
plz refer to the following threads
Re: problem using Bapi_Salesorder_Change
http://www.sapfans.com/forums/viewtopic.php?p=160339&sid=bf9e3219db318d89596f7e911462416f
i hope it helps.
arjun

Similar Messages

  • Unable to copy the Price Modifiers associated with a Sales Order Line

    Dear All,
    I am copying Sales Order Line using the process_order API. I was not able to copy the Price Modifiers associated with the Lines. How can I accomplish this..?
    Is there any API available for copying the Price Modifier info associated with the Sales Order Line..?
    Environment is 11i and OS is SUN Solaris
    Please update...
    Many thanks in advance..

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Unable to update the serial number through bdc in Sales Order

    Hi experts,
    I written the inboud FM for to update the 3rd party items serial number to the sales orders through BDC Call transaction Method.
    Here i am facing a problem when i have the 19 item Quan ,it is updating correct through idoc , when ever there is moe than 19 and at that if any serial number repeated for that if i am changing at that time it is loosing the control of the BDC and giving the control to the salesorder screen.
    how can i handle that control again has to come to BDC prgrm......
    Thnks,
    Regards,
    Bharani

    Hi,
    Can you please let me know the segment in ORDERS05 Idoc to process the Payment card information and if the standard Function Module can handle the creation of a Sales Order with data for Payment Card.
    We have a requirement to map the Tokenized Number of the Credit Card send from a store front end to ECC mapping via SAP-PI.
    Thanks in Advance,

  • Error in Updating the Prices through DTW

    Hello Expert,
                         I am getting an error while updating the item prices through DTW.
    I upload all the items in SAP and prices in Price List 01
    Now I create One more Price List with Other name and want to update the Price in this Pricelist for all items through DTW
    but system giving an error "this entry is already present in Table(ODBC-2035) Application Defined or Object Defined ErrorItems"
    SAP 8.8
    PL 5
    Regards
    Atif

    What Neetu suggests is great.  However, you will run into problems if your users have deleted a price list.  Perform the following query as suggested:
    SELECT T0.[ListNum], T0.[ListName] FROM OPLN T0
    Copy this to excel and create a further column called 'RealNumber' or something
    Start numbering cells in this new column from 0 to whatever you need to cover all the lists from the database.
    The number in the 'Real Number' column is the one you should insert into the LineNum field in the prices spreadsheet.
    Hope this helps.  Reply if you need more guidance.
    Regards
    Bob

  • What is the relation between delivery num , sales order num and invoice

    what is the relation between delivery num , sales order num and invoice

    Look at VBFA Table
    goto VBFA table ,enter order number number vbelv ,vbtyp_n is C,then VBELN is the delivery
    if you enter delivery number in vbelv ,vbtyp_n is J,then vbeln is Invoice.
    here VBTYP_N is the import.
    VBFA is the sales document flow table,and very important table
    Thanks
    seshu

  • BAPI_PO_CHANGE to update the Price for the line item not updating the Price

    Hi,
    I am using BAPI_PO_CHANGE to update the Price for the line item. This BAPI is not updating the Price. I am using external cummit also, but the BAPI is not updating price.
    I am passing following data to the BAPI.
    Plant: CQ11
    PO                   Material                Price
    4500002142     TEST_BATCH     12
    Please provide suggestion.
    Regards,
    Jubin.

    Hi,
    check this link...this has sample code
    [http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm]
    Regards,
    Surinder

  • Is there a feature that can automatically update the price of an item?

    I am currently making a 'Checklist Total' on Numbers and I have a few items down and their prices.
    Is there a feature where it can update the price typed on the screen corresponding to the price of the item online.
    Example: I put a pair of headphones on the spreadsheet and I put a price next to them. Every time this price decreases or increases on a specific website, for example Amazon, the new price appears in place of the old price written down on the spreadsheet.
    I'd appreciate any answer or hints to where I might also find the answer.
    Patrick

    Hi Patrick,
    This kind of capability is not built into Numbers.
    However, it is not too hard to have an AppleScript automatically fetch a price from the web and update a Numbers spreadsheet.
    This doesn't work well for many web pages, but for many it does work.
    If you have a specific page in mind post it and I will see if I can provide an example.
    SG

  • Price to Customer Changes When the Payment Method is Changed on Sales Order

    This is one I have never seen before and wonder how this can be corrected/blocked/changed...
    When a customer has a payment method of let's say "Check" and they place an order and decide to pay it with a "Credit Card", a system message comes up and asks if you would like to change the prices on the order according to the way the customer is payiing - say what???
    Well, first off that is about the wierdest thing I have ever heard - you are going to change a price because a person pays in a different manner???  Does anyone pay a different  price when they go to a restaurant, have a meal, and use their credit card instead of cash???  Does the restaurant charge you more because you are paying with a check???  Heavens no - so why would SAP make that function as a default instead of making it the exception it should be???  I am truly puzzled on this one.
    Sure there are discounts, but overall changing a price by way of payment is very bad - 99% of the time a person is going to pay the same price no matter how they pay - cash, check, COD, 1% 10 days, 2% 5 days, etc...
    I know, I know - the vast majority of answers will be just say "No" on the System Message Screen BUT since SAP B1 throws up so many useless System Messages, users tend to ignore them and just hit yes.  Changing the price of an order like this can be disastorous and I just cannot believe this function has not been challanged by someone in the user/customer community who have some common sense in seeing how bad/dangerous this can be...
    I am looking for a way to shut this off.  The payment method window requires you to enter a price list under the "BP" section.  How do I get this to be blank under the BP section and not change the prices of an item on an order just because someone is paying with a credit card instead of a check...
    Maybe I am missing something here but does anyone know what to change or what setting needs to checked???
    Thanks in advance...Zal

    Thanks for the reply Julie...
    I have heard of some places where there is a difference, but as I said before...that is the exception and certainly not the rule.  I do a good bit of traveling and a surcharge like that has happened to me maybe once - at the max twice.  I am not sure where the vast majority of SAP B1 installations are being used, but those some countries are definitely in the minority.
    Let's just face it, this is a bad system design.  First off, the payment terms should never have had a required connection to a price list - OR - SAP should have given the option to leave the price list field blank during the initial set up of payment methods and terms, and then leave the system message by the wayside.  When you have personnel who are paid commission on getting out orders quickly, this is just another button to click and their chance to take the next incoming order is delayed - not good.
    I have received about six Emails saying I should post this in a forum for consideration of changes/enhancements to SAP B1, and that is exactly what I am going to do.
    Take care - Zal

  • Two prices for one material in sales order according condition type

    Hi,
    I configure the condition type according to following condition record:
    Plant/ Sales Organization/ Distribution channel/ Material / Customer
    (because system should calculate two prices for one material in two plants)
    In the sales order screen, when user firstly select material , quantity, plant ,  system calculate the related price correctly but if user select the material and quantity and enter and after that select the plant, system will show the error message in pricing procedure and to have a price for material, user should update the price in the price condition in sales order.
    It is so difficult for user to update one by one, because there are several sales orders which need to update.
    Is it any way to solve this problem?
    Thanks,

    > In the sales order screen, when user firstly select material , quantity, plant ,  system calculate the related price correctly but if user select the material and quantity and enter and after that select the plant, system will show the error message in pricing
    Hi,
    Why to let the user press Enter button before entering plant value Obviously, system will give error, because it doesnt get all the required value based on which you have maintained condition records.
    Ask the user to enter all the value at item level otherwise you will have go for the option that you are doing currently.
    It is said prevention is better than cure
    Hope you get some inputs
    regards,
    Sagar

  • Regarding the date of last change in sales order...

    Hi,
    Can anyone help me in the scenario...
    I have to pick the date of last change in sales order...whether it is done on Configuration items ,additional data B or on the ordered quantity...
    the problem is that it has some customized fields that are included in VBAK....
    So i need help regarding this...shud i have to writ a user exit for this....or i hv to do a change in USEREXIT_SAVE_DOCUMENT .
    Plz help me..
    Edited by: Amit Gupta on May 1, 2008 3:02 PM

    VBAK-AEDAT will be updated, evenIf you have your custom fields in Sales Order.
    Regards,
    Naimesh Patel

  • User Exit to change the Ship-to party address at Sales Order headder level

    Hi,
    I have requirement like this......
    I need to change the  ship-to party address at Sales Order headder level. for that which user exit i need to  use and which structure i need to use to update the transaction.
    I used : userexit_save_document_prepare, in that i passed data to 'xvbpa' and 'xvbadr' structures. even though it is not update the transaction.
    Please let me know the answer.
    Thanks,
    Satish.

    Hi Satish,
    Step1. Create new Data Copy Routine using Tcode VOFM.
    Step2. *-----------------------------------Ship to Party from contract
       IF CVBPA-PARVW = 'WE' OR
          CVBPA-PARVW = 'SH'.
        REFRESH IT_STP.
        SELECT KTOKD
               A~KUNNR
               NAME1
               NAME2
               A~ADRNR
               FROM VBPA AS A INNER JOIN KNA1 AS B ON A~KUNNR = B~KUNNR
               INTO CORRESPONDING FIELDS OF TABLE IT_STP
               WHERE VBELN = CVBPA-VBELN . 
    Step3.
       CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
            EXPORTING
              ENDPOS_COL   = 80
              ENDPOS_ROW   = 10
              STARTPOS_COL = 10
              STARTPOS_ROW = 5
              TITLETEXT    = 'Your Title'
            IMPORTING
              CHOISE       = T_SELIDX<=====Index No of selection
            TABLES
              VALUETAB     = IT_STP
            EXCEPTIONS
              BREAK_OFF    = 1
              OTHERS       = 2.
    Step4.
           READ TABLE IT_STP INTO WA_STP INDEX T_SELIDX.
            IF SY-SUBRC = 0.
              CLEAR:CVBPA-KUNNR, CVBPA-ADRNR.
              MOVE WA_STP-KUNNR TO CVBPA-KUNNR.
              MOVE WA_STP-ADRNR TO CVBPA-ADRNR. <========Address ID (Change Here).  
           ENDIF.
    Regards,
    Amrendra
    Moderator Message - Please do not reply to old, dormant threads.
    Message was edited by: Suhas Saha

  • Price is not changing in sales order in line item

    dear all.,
    price is not changing in sales order on line item,error comes "CHECK ORDER STRUCTURE.
    Regards,
    Praveen

    Dear
    You can go into VA03 --> Menu --> Environment --> Partner --> display credit account (if the data is maintained, than the system springs into FD33). Another way is to check if the sales order type is assigned to credit management in the transaction OVAK (should be D for aut. credit management).
    Did you enter the pricing date , prcing condition and press enter , so  that it should pick the correct price?
    Check this and come back
    Regards
    JH

  • Update Means-Of-Transport Type in a sales order

    I want to Update Means-Of-Transport Type in a sales order. You can find this field (VBKD-TRATY) in Sales Order->Header->Shipping.
    I couldnt find this field in BAPI_SALESORDER_CHANGE.
    Is there any function module which wud update it?

    Means of transport will be decided at the time of shipping in delivery .
    So LIKP-Traty will be the means of transport .
    i dont think there is a Fm to handle this .
    Let us check if someone has a solution.
    regards,
    vijay

  • Preventing update to COPA tables for a particular Sales order type

    Hi ,
    We need to have incoming sales order transfer to COPA activated only for one particular sales order type activated.
    Earlier we implemented note 571697  for user exit to allow COPA update only for particular sales order type.
    This prevented the transfer of SO to actuals table, but off late the performance for VA01 and VA02 has decreased substantially.
    Upon checking, we found this is happening because of other CE4XXXX tables (excluding CE1XXXX) which are getting updated during creation/ change of SO. as the data in these tables is huge .
    If possible, please advise, right userexit to prevent update to these tables.
    Thanks.
    Neeraj

    Thanks for your inputs..I have few more queries on same.
    Initially we had incoming sales order activated in KEKF allong with implemented SAP note 571697, which helped us to update CE1XXXX only for a particular sales order type. This was initial requirement to have system updating COPA values only for one particular sales order type.Also, KEQ3 was also activated which resulted in updates to CE4XXXX. This was not a problem initially since we had few sales orders now that plant has grown old with more sales order (resulting in huge size of CE4XXXX) VA01 is impacted..
    Currently ,since we have KEQ3 activated so, Segment is created the moment we create sales order.. and table CE4XXXX is updated..
    As most of you have suggested to switch off sales order in KEQ3, i need to analyze the impact of this..
    From what i understand CE1XXXX will continue with updation for that order type... and CE4XXXX won't be updated in future..Please correct me if i am wrong..
    Also, please advise what all can be possible impacts on COPA reporting if I switch off from now onwards (client has been using this since long) , and what all should be the precautions that i should take while doing this.
    Thanks

  • How to transfer the stock form Project stock to Sale order stock

    Hi
    How to transfer the stock form Project stock to Sale order stock
    I tried to do this with movement type 413Q
    System is giving me error
    Valuated project stock not allowed with customer stock.
    Message no. KI346
    How to do this
    Thanks
    NK

    You can use Mov Type 412-Q
    412     Q     Transfer posting project to own - reversal
    Thanks
    Rajesh

Maybe you are looking for