Updating price conditions using CRM_ORDER_MAINTAIN

Hello everyone!
Could anyone help me out with respect to price updation using "CRM_ORDER_MAINTAIN"?
I am supposed to do the following:
I obtain the current unit price for a sales order item using "CRM_ORDER_READ". The feild et_pridoc-pric_cond-kbetr gives me this value. Then i get new price for the product from a condition table. I compare this new price with the kbetr value for a particular condition type. If the new price is less than the kbetr value then i should update the kbetr value of the item  using "CRM_ORDER_MAINTAIN". I am sending all the parameters necessary to the FM.
I have gone through the previous posts with the same query but with  no luck i am running out of ideas! Any sample code will be greatly appeciated.
Thanks and Regards,
Smitha

hi,
   please pass all the parameters & check updating parameters.like when u create a new entry u need to enter X & modify Y so pass all the parameters ...
thanks,
chaitanya

Similar Messages

  • Update price condition in scheduling agreement (ME32L)

    Hi,
    I have to update scheduling agrrement (ME32L).
    The input data that i would like to update are price amount, validity start date and valdity end date.
    Is there any function or bapi which can be used to update.
    Any help in this would be highly appreciated.
    Thanks,
    Mandeep

    hi
    did you update the conditions and validity period of scheduling agreement?  If yes then plz send me the details of parameters
      ITEM_COND_VALIDITY           =
      ITEM_COND_VALIDITYX         =
      ITEM_CONDITION                  =
      ITEM_CONDITIONX                =
    I am also facing the same issue.
    waiting for your reply.

  • Slow in updating price lists using import from excel

    Hello,
    I am concerned about the slow process of updating prices in SAP using import from excel. It took me hours to complete the upload for 3700 item rows and 2 price lists. It is also slow in adding warehouses. I am not sure if the account segmentation has something to do with it but it never happened to my other databases where there is no account segmentation. Other than this, SAP is running real fast on the server.
    How could this be? Thank you and regards.
    Derrick

    Yes vijay, There is query params in step 2 of DTW.
    2 week before only we have updated to SAP B1 2005B PL41,
    but i'm not sure whether DTW is updated to latest version or not ?
    Current DTW version is 2005.0.15 & API version is 6.80.320.
    What is procedure to update DTW ?
    Jeyakanthan

  • Need BAPI/FM to update Contract conditions using FNVM

    Hi,
         I need to insert/update contract conditions in tcode FNVM.Kindly suggest me a BAPI/FM to achieve this functionality as
    BDC for insetion/updation of contract conditions in FNVM is not possible since i am not able to capture the recording for
    contract selection dialog box.Thanks in advance .
    Thanks&Regards,
    S.Sivakumar

    Hi,
    look for a methotd in object type BUS2049 (SWO1).
    There is Loan.ContractCreate (BAPI_LOAN_CONTRACT_CREATE).
    Also check corresponding package FVVD_BAPI.
    Regards
    Michael

  • Update price conditions in massive way

    Hi Gurus,
    I defined a Rappel agreement with transaction VK11. Now i am needing to update this agreement for all customers so i would like to know if its possible to update at massive way instead of one per one.
    The field "Customer" is a mandatory field and its only lets you put one customer instead of a range of customers.
    Thanks in advance!
    Best Regards
    Juan Bretón.

    Dear Juan,
    I suppose, the easiest way is to use LSMW.
    If requires, I'll provide one of my post - LSMW Record, for reference.
    If, you would like to go for BDC-Program, following Thread would be helpful:
    [BDC - Condition Record|Requirement type and Requirement class]
    Best Regards,
    Amit
    Note: Meanwhile, you refer:
    [Pricing Condition Upload|LSMW Pricing Condition changes]

  • Update Price Condition Function Module

    I'm trying to identify the function or bapi that is used to update the pricing conditions for a line item in a purchase order. This is done manually by clicking the UPDATE button on the screen when in the PO item conditions view.
    Specifically this FM will be used in visual composer to update pricing prior to goods receipt.
    any help in identifing the code would be great.
    Thanks

    Hi simon,
    Please check the following
    RV_CONDITION_SAVE
    RV_CONDITION_COPY
    SD_SALES_CONDITION_MAINTAIN
    Do you want to add one more pricing condition type to the existing sales order??
    Use BAPI_SALESORDER_CHANGE.
    Hope this help

  • Manual price condition (%) in order creation (using ABAP)

    Dear community members,
    I could use some help on a problem I have encountered while creating a sales order (in the CRM system) using ABAP programming, the details are given hereunder:
    I have two manual price conditions used to set a possible discount, one using a straight value and one using a percentage:
    1. When the order is generated using the value (let us say 100€) it cointains the correct price condition.
    2. On the other hand, when the order is generated using percentages (i.e. 10%), it is created without explicit errors or warnings but with no price condition in it.
    For the latter case I have checked the IPC logs (from transaction SM53) finding this error message:
    Message: Condition cannot be processed manually
    --> com.sap.spe.pricing.transactiondata.exc.ManualChangeNotAllowedException: Condition YSCP cannot be processed manually
    at com.sap.spe.pricing.transactiondata.impl.PricingCondition.changeConditionRate(Ljava/math/BigDecimal;Ljava/lang/String;Ljava/math/BigDecimal;Ljava/lang/String;)V(PricingCondition.java:3124)
    at com.sap.spe.pricing.transactiondata.impl.HeaderCondition.changeConditionRate(Ljava/math/BigDecimal;Ljava/lang/String;Ljava/math/BigDecimal;Ljava/lang/String;)V(HeaderCondition.java:387)
    at com.sap.spe.pricing.transactiondata.impl.PricingDocument.addHeaderCondition(Ljava/lang/String;Ljava/math/BigDecimal;Ljava/lang/String;Ljava/math/BigDecimal;Ljava/lang/String;C)Lcom/sap/spe/pricing/transactiondata/IHeaderCondition;(PricingDocument.java :1472)
    at com.sap.spe.document.rfc.AddPricingConditions.handleDocRequest()V(AddPricingConditions.java:131)
    at com.sap.spe.document.rfc.DocHandlerAdapter.handleRequest()V(DocHandlerAdapter.java:72)
    at com.sap.spe.base.util.jco.HandlerAdapter.handleRequest(Lcom/sap/vmc/RFCContainer/Call;)V(HandlerAdapter.java:117)
    at com.sap.vmc.remserver.RFCDispatcher.handleRequest2(Lcom/sap/conn/jco/JCoFunction;)V(RFCDispatcher.java:995)
    at com.sap.vmc.remserver.RFCDispatcher.handleRequest(Lcom/sap/conn/jco/JCoFunction;)V(RFCDispatcher.java:746)
    at com.sap.conn.jco.rt.VMCServer.dispatchRequest(Lcom/sap/conn/jco/JCoFunction;)V(VMCServer.java:911)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.dispatchRequest(Lcom/sap/conn/jco/rt/ServerWorker;Ljava/lang/String;)V(MiddlewareJavaRfc.java:3415)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(Lcom/sap/conn/jco/rt/ServerWorker;)V(MiddlewareJavaRfc.java:2468)
    at com.sap.conn.jco.rt.VMCServer.listen()V(VMCServer.java:766)
    at com.sap.conn.jco.rt.VMCServer.run()V(VMCServer.java:689)
    at com.sap.vmc.remserver.RfcServer.run()V(RfcServer.java:376)
    at java.lang.Thread.startup(Z)V(Thread.java:1954)
    I have already debugged FM CRM_ORDER_MAINTAIN but to no avail, maybe I just missed something and I can assure that the customizing is correct and aligned between the systems and both the conditions are set to be processed manually.
    At this point, since the condition is applied when the commit is yet to be done I wonder whether it is possible to apply a discount percentage on prices which are yet to be generated, it would be illogical to do so and then again while using a straight value (which does not require a calculation) the order is correctly generated.
    Furthermore when I add the conditions in an order (from both the GUI and the WUI) the table IT_PRIDOC is alway empty, even if CT_INPUT_FIELD is populated.
    I know that there are similar posts here in SCN but sadly I was not able to find a solution so any help would be greatly appreciated.
    Thanks in advance for any replies given,
    Alessandro.

    Dear Padma,
    apologies for my late reply. I also thought it should be possible to use a percentage but I was not sure.
    Sadly the debugging did not bring about any positive result.
    I also tried to make a second CRM_ORDER_MAINTAIN call after the system generated all the pricing conditions but that also did not work.
    There is one thing that caught my attention though:
    - YSCV (fixed amount): still no problem at all (passed to KBETR);
    - YSCP (percent): if I assign a value to KWERT or if I leave all the fields empty, the condition is created in the sales order but it is always set to 0%. However, if I try to assign it to KBETR, I always get the message: "Condition YSCP cannot be processed manually".
    I made some attempts with the customizing, for example adding the condition to the "easy entries" or playing with the options of "Create Condition Types" (always aligning the systems) without getting positive output.
    I am beginning to think that it could be an IPC-related problem (which is not my area of expertise... yet).
    Alessandro.

  • Create/Update of Price conditions - PR00

    Hi folks
    I hope U know the right Function Module. Normally we use
    transaction MM02 to insert/update price conditions via view
    "Sales: Sales Org. Data 1". Here we push the button "Conditions
    and have the posability to enter/change the PR00 price condition.
    So far so good.
    But which Function Module do I have to use if want to do the same from within a background ABAP program??
    Maybe BAPI_MATERIAL_SAVEDATA?? And how to?
    Best regards
    and have a nice weekend
    Carsten :o)

    Hi there,
    check thist thread.
    BAPI_PRICES_CONDITIONS
    Kind regards,
    J.

  • Determination of price conditions

    Hi all !!
    We have a problem with our price determination.
    The situation that is working wrong is the following:
    When we create a sales order which is giong to be delivered in several steps (For instance, 400 units of the material XXXX, delivering 100 units per month) our system calculate the price conditions using the date of the outbound delivery instead of the pricing date of the sales order. Taking this into consideration, when the billing documents are created, for each outbaund delivery we've got a different price, and we should have the same price for every outbound delivery.
    We've have been checking the copy control and everything is ok.
    Anyone can help us?
    Of course if you need more information, please let us know.
    Thanks a lot.

    Please check the copy controls (T-code VTFL, at the item category level field "Price Source", over there select the option "order" instead of delivery/order.
    All the prices relevant at the order level will be applicable in the billing document
    Plz reward points if this was useful to you.
    Regards,
    Sanjay

  • How to update multiple Price conditions in FM CRM_ORDER_MAINTAIN

    Hi All,
          need to update multiple price conditions in a contract Thru FM CRM_ORDER_MAINTAIN.
    please see the piece of code that am using...
      am able to update single price condition...but not able to populate 2 or more .......i,e..ADD A Condition
    i,e...DATA : ls_cond TYPE prct_cond_external_input,
           lt_cond TYPE prct_cond_external_input_t.
    DATA : ls_con TYPE PRCT_COND_DU,
           lt_con TYPE PRCT_COND_DU_TAB.
    Create Condition Type
    *ls_con-KNUMV = lv_header_guid.
    *ls_con-KPOSN = lv_item_guid.
    ls_con-stunr  = '134'.
    IF Y EQ 1.
      ls_con-ZAEHK = '001'.
    ELSE.
       ls_con-ZAEHK = '002'.
    *ENDIF.
    *ls_con-kschl = 'ZFP1'.
    **ls_cond-waers = 'CNY'.
    *ls_con-kbetr = '0.00'.
    *ls_con-kpein = '1'.
    ls_cond-kschl = 'ZFP1'.
    ls_cond-waers = 'CNY'.
    ls_cond-kbetr = '0'.
    ls_cond-kpein = '1'.
    ls_cond-knumh = lv_item_guid .
    CLEAR ls_Price_doc.
    ls_Price_doc-ref_guid = lv_item_guid.
    ls_Price_doc-ref_kind = 'A'.
    IF Y EQ 1.
    ls_Price_doc-ref_handle = '000000001'.
    ELSE.
      ls_Price_doc-ref_handle = '000000002'.
    ENDIF.
    *ls_price_doc-PRIC_COND[] = lt_cond[].
    *INSERT ls_con into table ls_price_doc-PRIC_COND.
    INSERT ls_cond into table ls_price_doc-COND_ADD.
    INSERT ls_price_doc INTO TABLE lt_price_doc.
    ls_input_fields-ref_guid    = lv_item_guid.
    ls_input_field_names-fieldname = 'KNUMH'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KPOSN'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KSCHL'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KPEIN'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'STUNR'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'ZAEHK'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'WAERS'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KBETR'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CLEAR ls_input_fields.
    Ls_input_fields-ref_guid    = lv_item_guid.
    ls_input_fields-ref_kind    = 'B'.
    ls_input_fields-objectname  = 'PRIDOC'.
    *ls_input_fields-logical_key = '0001'.
    ls_input_fields-field_names = lt_input_field_names.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CLEAR ls_input_fields.
    CLEAR ls_Price_agreement.
    Clear ls_cond.
    I kept this under code. loop, for item records.....
    Though the internal table lt_price_doc. is holding all the records, it is updating only one record. can you any one pls guide me ,

    This example works fine for me. Modify it according to your needs...
    Price
                  IF it_item-value IS NOT INITIAL.
                    ls_cond-kschl = 'PR00'. " add price
                    ls_cond-kbetr = it_item-value.
                    ls_cond-waers = st_head-currency.
                    INSERT ls_cond INTO TABLE ls_pridoc_com-cond_add.   
                    index_2 = 1.
                    CLEAR: ls_cond.
                  ENDIF.
    Discount
                  IF it_item-discount IS NOT INITIAL.
                    ls_cond-kschl = 'ZPPP'. " add discount
                    wa_procent_calc = it_item-discount * 10.
                    ls_cond-kbetr = wa_procent_calc."it_item-discount.
                    ls_cond-waers = '%'."st_head-currency.
                    INSERT ls_cond INTO TABLE ls_pridoc_com-cond_add.   
                    index_2 = 1.
                    CLEAR: ls_cond, wa_procent_calc.
                  ENDIF.
                  IF index_2 = 1.
                    ls_pridoc_com-ref_handle = counter.
                    ls_pridoc_com-ref_kind = 'B'.
                    INSERT ls_pridoc_com INTO TABLE gt_pridoc_com.
                    CLEAR: index_2,ls_pridoc_com.
                  ENDIF.

  • Price Condition&Price update are disabled in S.O even after partial invoice

    Dear All,
    We are using manual pricing condition in the Sales Order, when we do a partial delivery and billing for a Sales Order line item, the update prices function (button) is inactive and price conditions are greyed out.
    We are using Pricing Type "C" in the VTFL item copy from Delivery to Billing.
    Even after partial quantity invoicing from the Sales Order there will be pricing changes and users will need to enter manual price for the item that is partially invoiced.
    Currently system does not allow any change in the manual price condition as the all the price conditions are greyed out in the S.O even if partial qty of the line item is invoiced.
    Please let me know what needs to be done to enable manual condition entry and Price update functions in the Sales order even after partial invoice quantity of the line item in the Sales Order.
    Regards
    Venkat

    Hai Venkat,
    This is the standard functionality and system treat like
    sales order conditions once invoiced should be freezed.
    As a work around you can do like
    in sales order order
    Go to Item - Shipping
    Part.dlv./item     B      Create only one delivery (also with quantity = 0)
    Max.Part.Deliv.  1     
    This make only one delivery for the line item
    Considering if you have a material Sales order of 2 KG and you added some manual price.
    And you are doing partial delivery of 1 KG and Invoiced.
    Now user can use the same sales order and create a new line item of the same material and can enter the balance qty and change the condition which is not grayed out.
    Regards,
    Mani

  • Import PO Conditions, Update Price tab and price type

    Dear All,
    Creation of Import PO is little bit panic for users as they have to maintain minimum 10/12 condition per
    line item.Also have to maintain the respective vember.My question is
    1) During creation of PO condition value get copied. I want the 7 condition (JCDB,JCV1,JECV,J1CV, JECS,JSDB,JADC)
    to be remain as it is and the balance freight,custom clearance,clearing charges to be wipe
    out.But no such option found in "update prices" tab.Is there any setting to do such activity?
    2) Can i customize "pricing type "as per the requirement?
    3) Is there any way to avoid such tedious creation of Import PO?
    4) There are 22 entries for price type and 12 customer reserve fields.How to use/customize these fields?
    Regards
    Sachin

    Hi Ajit,
    In import PO generally the tax part is always fix.like BCDEcessHEcess,  CVDEcessHEcess, Additional Tax.But the
    Insurance,Freight ,Clearing charges has to maintain as actual.So its maintain after receipt of Air way bill or Bill of Ladding.
    So we want to maintain value of only tax condition at the time of creation of Import PO and balance when we were posting the planned delivery cost.Thats why we can't wipe out that condition from pricing procedure.
    We want the other condition to be wipe out by  customizing in Update Price button...Hope this will u...
    Regards
    Sachin

  • Use of Update Price button  in PO

    Hi Gurus,
    In PO item detal , bottom portion there is a button "Update" by which we can update price. In which case , we can update price can you please explain.
    I had a doubt here...
    The Po was created with old contract validity period now at present by clicking this "Update---- "B" carry out new pricing" can we change the price to new validity price.(The Po is created in old validity period)
    Please explain
    Subbu

    HI,
    "Update---- "B" carry out new pricing" is used for re calculation purpose.
    you can only check the pricing for different Gross Price Conditions
    i.e  you check the pricing process for GP Rs 100 and remaining conditions in Procedure. if you click on  "Update---- "B" carry out new pricing" , you can check for  GP's 200,300 ...
    If the PO is created in old validity period, pricing will be carried out in that period only.
    Thanks

  • Price Condition Update Function Module

    I'm trying to identify the function module that updates the price conditions in a sales document. I know one exists as I used it years ago but can't seem to locate it. It replicates the manual process of clicking the update button on the screen.
    this will be used in visual composer to update pricing prior to further processing of bapi's
    Any help appreciated

    Hi simon,
    Please check the following
    RV_CONDITION_SAVE
    RV_CONDITION_COPY
    SD_SALES_CONDITION_MAINTAIN
    Do you want to add one more pricing condition type to the existing sales order??
    Use BAPI_SALESORDER_CHANGE.
    Hope this help

  • How to update the condition price in the sales order for all the items

    Hi,
    How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
    Thanks,
    Balaram

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

Maybe you are looking for

  • Itunes can't find my iPhone 4 and tells me to restore it?

    First, my iPhone was in WiFi sync mode, but when it was in sync it always stopped because of an error -50. So I plugged my iPhone in my computer so it can sync normally, it worked but I couldn't do it with the WiFi anymore. After reading tips on this

  • Office 2013 Upload Center

    How does one disable the Office 2013 Upload Center? I am not using office 365 and never turned this functionality on. I have no idea where Office is attempting to upload my files to but I do not want it. Is this a part of the Office Update process. P

  • Getting Blue Screen error BCCode: 1a

    Sometimes mi PC with windows VISTA have espontaneus Blue Screen Error.Then after startup I would get this message,can someone tell me what I shshould do? Problem signature: Problem Event Name: BlueScreen OS Version: 6.0.6002.2.2.0.768.3 Locale ID: 11

  • Encrypted Alert (21) - Windows 7 client web page login falure

    Hello community, I have a challenge for you.  This is a very odd issue I am having.  Let me outline my basic environment. I have a Windows 2003 Server which serves as the DHCP with a (2-day lease), Windows 7 Clients (fully patched) running IE 11 (ful

  • TAS not defaulted in sales order

    This is a third-party order. In spro, i haved configured as following: Order type "TA" + item cat Group "BANS" + Usage (blank) + High level (blank) = DfItC "TAS", MItCa "TAN", MItCa "TANN", MtCa "TAW" Questions: 1. TAN iso TAS was defaulted when sale