Restrict Pricing updates in Sales Order

Hi All,
I have created a pricing conditon formula to get the price for the real time contract price from a third party Contract management system through a RFC call, and assigned the formula to a condition type.
In this formula, if there was an error i am exporting the error message to a memory and importing the value from  that memory to set a billing block in the user exit SAVE_PREPARE_DOCUMENT (MV45AFZZ).
The problem i am facing is that the formula is getting called many times uncessarily for eg. when you click pricing etc
and not necessarily updates the price all times. Actually the price is not updated when called from the following routine and is basically because of the following code.
Form: xkomv_bewerten.
  IF xkomv-kofrm NE 0 AND wertformel EQ space AND komp-kposn NE 0.* rettkomv = xkomv*.   
  xkwert   = xkomv-kwert.      frm_kondi_wert-nr = xkomv-kofrm. PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND. xkomv    = rettkomv.
    ENDIF.
During Change Sales Order,  because of this even a billing block is set before, it is getting cleared without updating the price.
Can somone help me with this?
Thanks.
Martin

Hi,
Do one thing you could ask your functional consultant to restrict pricing update into IMG Guide. There is pricing where SD consultant restrict the Pricing Updates. If they have problem then let me i will tell you how and where you can do the pricing restriction.
Regds,
Rakesh
Edited by: Rakesh Kumar on Aug 8, 2009 1:35 PM

Similar Messages

  • Update Pricing elements for sales order item

    Hello All,
    I want to add few manual pricing elements to a sales order item through code (the pricing elements to be added will be determined dynamically). Is there any BAPI  or user exit to update the same?
    Regards,

    Hi
    You can use the BAPI_SALESORDER_CREATEFROMDAT2 for creating  the sales order.Using this you can populate the pricing conditions for sales order. To pass the Pricing conditions use the str ORDER_CONDITIONS_IN & ORDER_CONDITIONS_INX in BAPI.
    Regards,
    Raghu.

  • Different  Pricing Procedure for Sale order and Billing Document

    Hello Experts
    As per scenario,we create Excise Invoice (T-Code J1IIN) on Basis of Proforma Invoice.Proforma Invoice and Excise Invoice follow Pricing from Sale Order.AS per pricing Some excise condition types are get update in Proforma and excise Invoice.
    AS Per Customer Payment Confirmation we Create Export Billing Invoice (T-code VF01) on basis of Outbound delivery.
    Issue -: AS per export Billing Rule we don't want to update Excise Condition type in Export Billing Document,and at same time it should not create any accounting entries for same condition type. we Dont want excise Duity in Export Billing Document as Export Billing Doccumnet aslo Follow Pricing procedure of Sale order
    Should i create new Pricing procedure or what other things to solve above issue.
    Please help me out
    Thanks and Regards
    Pash@SD

    Hello,
    The key to your requirement can be maintenance of Excise condition type with proper access sequence and accordingly maintain condition record for them.
    You create an access sequence with following access:
    - Country / Plant / PlntRegion / Region / Price grp / Mat.pr.grp / Materia
    - Country / Plant / PlntRegion / Region / Price grp / Mat.pr.grp
    - Country / Plant / PlntRegion / Region / TaxCl1Cust / Mat.pr.grp
    - Country / Plant / PlntRegion / TaxCl1Cust / Mat.pr.grp
    For export maintain condition record based on any key combination, say for
    Country / Plant / PlntRegion / TaxCl1Cust / Mat.pr.grp - Tax % - Tax Code
    FR / 1000 / KR / 03 (EXPORT) / 04 / 0% / V1
    I hope this can assist you.
    Thanks & Regards
    JP

  • Pricing ERROR in SALES ORDER

    HI Guys,
      I am Using BAPI BUS2032 to migrate all the Sales Order from Legacy to SAP through LSMW.
       When I process the Idocs I get Error. Processing Terminated. Pricing Error.
    (KOMP-FXMSG = 801). The status is 51.
       But the Pricing Procedure is maintained in OVKK for the corresponding Sales Organisation combination and the record is maintained in VK11 too.
        I have also checked the A900 table where the material also exists.
        Can you sort me out what the problem is. Client is very specific in doing things through LSMW.
    Regards,
    Jack.

    Hi Jack!
    Did u get any solution to it? Because even I am facing similar problem while updating a sales order through BAPI - BAPI_SALESORDER_CHANGE.

  • Revised Price Updation in Sales Order

    Hi Gurus,
    I have 1000 Open Sales order to update revised price (Sales Orders created with backdated ).
    I have updated all Sales Orders pricing date with revised pricing date(using MASS tcode MASSSDHEAD_S-PRSDT) and all Sales orders revised pricing date is updated.
    After i ran the VA05 and selected my desired Sales Orders and EDIT->Mass Change->New Pricing.
    After this activity, system deleted old basic price in Sales order and nothing is updated.
    Can you please suggest me how to update.
    Regards
    SK

    In program MV75AF01_OKCODE_MPRF, field SY-UCOMM must be saved.
    Please refer following SAP Note for further details:
    - Note 189121 - Mass change new pricing does not function
    Regards
    JP

  • Statistic condition values not updated during Sales order Settlement

    Hi,
    In our client we have different Price condition types for based on scenario wise. Ex: Domestic Sales (ZPR1) and Export Sales ZPR2. I have maintained separately value fields for each price condition types.
    We are booking some financial charges, and interest on working capital etc., this cost we need to transfer to COPA each Material wise based on sales revenue.
    For this purpose we have created one COPA Assessment Cycle.  Tracing factor is Sales Revenue and receiver is Materials.
    In COPA Assessment cycle we can give only one base means ZPR1 related value field or ZPR2 related value field.
    For this reason we have created one new statistic condition type,  what is amount there in ZPR1 that amount will updated automatically in statistic condition place and so that we can give once one trance factor in COPA Assessment Cycle. We have assign this statistic condition all pricing procedure
    Now my problem is in MTS scenario statistic condition values updated correctly. But in MTO scenario sales order settlement time statistic condition values not updated.
    So is it possible update during sales order settlement time statistic condition values.
    Please give me suggestion.
    Regards,
    Thiru

    Hi Ajay Sir,
    As you said is correct.
    But in our client we have around 9 Plants and each plant manufacturing product are different. Client Requirement is in COPA Report they need see each product wise sales revenue. In this way we mapped product wise value field.  System already mapped one guy in this way earlier. Now I am doing some changes for relevant to month end activities.
    Some financial changes transfer to COPA each plant wise on Material. Here sender is cost center and receiver is Material. Base is Sales Revenue.
    Please suggest me is there any alternative.
    Regards,
    Thirumalesh .

  • Condition type value not update in sales order

    Hello Guru's
    As per the  sales order in VA01 the condition type value i.e surcharge value is not updating in sales order.
    But I have maintain the condition record(Surcharge)also and in Condition technique I have checked every thing is correct .
    please find below I have attached the Screen short .
    Please give me solution Asap.

    Hi Sukdev,
    Have you checked the respective pricing procedure for From and To reference step maintained against the condition type ZSUR?
    Regards,
    T.R.S.Praveen

  • No revenue update from sales order

    Hi
    I have created SO with account assignment for a WBS billing element. In config I have make the indicator on for revenue value should automatically  update from sales order.
    But neither the revenue from sales order is updating in any of my PS report nor the actual revenue too after billing cycle.
    Does it need some more customisation checking.Cannot find any solution from earlier similar threads.
    Zinni

    To analyze the error, proceed as follows:
    1. Is an account displayed in the sales and distribution document in the condition detail screen (for example, condition PR00) ? Is there a cost element in this account and are you allowed to post sales revenue to it? (cost element category) If the answer is yes, then proceed to 5. If no, then proceed to 2.
    2. Check the relevancy for billing of the sales and distribution document item in Customizing (-> Sales and distribution -> Sales -> Sales documents -> Sales document item -> Define item types).  If 'Not relevant for billing' is entered, correct this.  This will probably clear the error. If 'I' (according to billing plan) is entered, the system only updates sales revenues if billing plan dates exist in the sales document.
    3. Check in Customizing that a billing type is assigned to your sales document type (-> Sales and distribution -> Sales -> Sales documents -> Sales document header -> Define sales document types). The billing type can be found in the 'Billing document' block. The relevant billing type depends on the defined relevancy for billing (see point 2). If no billing type is entered, enter one.  This will probably clear the error.
    4. Check in Customizing that an account determination procedure is assigned to the billing type determined in step 3 (-> Sales and distribution -> Billing -> Billing documents -> Define billing types). If no account determination procedure is entered, enter one. This will probably clear the error. If an account determination procedure has already been assigned, the error is probably caused by an incorrect structure of this plan. Check the plan.
    5. You will probably not be able to correct this error yourself. However, you can provide some information beforehand. Enter parameter MCL in your user master record and valuate it with 'X' (upper case) (-> System -> User profile -> User parameters). You activate an user-specific TRACE function this way.
    6. Change, for example, the pricing date or item value in the quotation or sales order and save the change.
    7. Execute Transaction MC30 for your user ID (/NMC30). You now see a list of all data structures that were set up for the Logistics Information System (LIS) in step 6. Check whether structure S008 is contained in this list. This information is required to further analyze the error.
    8. If structure S008 is contained in the MC30 log, call Transaction SA38, program name RKPSSHOW, -> Execute (F8), enter the number of the affected sales and distribution document and press -> Execute (F8) again. The output list (or the fact that no list is generated) is also needed for analysing the error further.

  • Problen in price updating in sale order

    Dear All,
    I have maintained pricing condition based on customer Price list (KNVV-PLTYP)
    and price list type assigned in customer master.But I am facing two problems during
    updating sale order.
    1.If I assign the price list in customer master(KNVV-PLTYP) and then use carry out new
      pricing in sale order, New Prices are not updating in the sale order mainatined on price list.
    2.If I change the price list type in customer master (XD02) from X to Y and then
      using the carry out new pricing in sale order, prices are not updating in sale order
      as per price list Y.
    Plz suggest how I can resolve this.
    regards,
    sps

    Hi,
    In the sale order item level condition tab,goto analysis and check the combination in which  system is capturing the price.
    Then you will be knowing the root cause.
    Regards,
    Phani Prasad.

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • How to read pricing conditions on sales order

    Hi
    i need to retrive pricing conditions of sales order but before posting sales order
    any user exit avialable ...?
    also i hv found one user exit in that there is FM EXIT_SAPMV45A_003
    But i am not able to read pricing conditions values
    also no data is there in konv table coz sales order has yet not been post
    so before sales order can i read the pricing conditions values ...
    pls guide
    if possiple pls provide example also
    thanks
    Taran

    Hi
    The problem is you can't use the KNUMV, because u make sure to get the princing active in the document at run time.
    If you want to know the old data you can read the table KONV using field KNUMV, but here you can't know if some modification is done.
    U can try to know the field-symbols:
    DATA: XKOMV LIKE KOMV.
    DATA: FIELDNAME(30) VALUE '(SAPMV45A)XKOMV[]'.
    FIELD-SYMBOLS: <TKOMV> TYPE TABLE.
    ASSIGN (FIELDNAME) TO <TKOMV>.
    LOOP <TKOMV> INTO XKOMV.
    ENDLOOP.
    Max

  • Reg : NO UPDATE OF SALES ORDER FROM PO erroer I0 114

    hi experts,
    while creation of PO with reference to PR,user gets error " NO UPDATE OF SALES ORDER FROM PO erroer I0 114 ".
    What could be the reason for this error?any idea...
    rgrds...

    Hello Jurgen,
    here the error message is " NO UPDATE OF SALES ORDER FROM PURCHASE ORDER  error I0 114 " .
    is there any solution for this issue.user looks frustrated because its working for one PO and the next PO its showing error.
    Rgrds.....

  • No update of sales order from purchase order

    Hi,
    When I am trying to change the delivery date of a purchase order line item, I get the error
    "No update of sales order xxxxx from purchase order (error V1 348)" How can I resolve this?
    Sincerely,
    Ketan

    Hi,
    Check whether this PO is created w.r.t. PR and PR is created automatically during Sales order creation.
    If it is so then need no to change the delivery date in PO, it will always get updated as per the Schedule Line date of sales order.
    You can go for GR w.r.t. PO directly.

  • Pricing problem in sales order creation

    Hi friends,
             My requirement is to create sales order with ref to contract i am using 'BAPI_SALESORDER_CREATEFROMDAT2' , and I am extracting data from konv table to get price through condition record , but i am getting 4  messages
    (S)    SALES_HEADER_IN has been processed successfully
    (E)   Condition PR00 is not allowed as header condition
    (W)  The sales document is not yet complete: Edit data
    (E)   Sales document  was not changed
    and i am not getting pricing for created sales order document.
    please help.
    regards,
    Sravani.

    hi
    ZK01 Company Selling Price - 21.86 INR 1 BT - 2360.41 INR for 108 BT( your statement)
    This is wrong 21.86 x 108 = 2360.88 and not 2360.41 as written by you
    so the calculation of the system is correct
    21.86 x 108 =2360.88
    1.41 x 108 =153.28
    So total  23.27 x 108 = 2513.16 (also 2360.88 +152.28 also is equal to 2513.16 )
    you can check in calculator
    If ZK01 is showing a wrong vaule 2360.41 instead of correct 2360.88 in your case then you need to check the configuration of that condition type
    The subtoatal valuew hich you have written is also wrong because of ZK01 
    Problem lies in ZK01 check the  other controls and rounding profile etc of ZK01 in V/06
    Regards
    Raja

  • Pricing, Modifiers in Sales Order Form

    Hi Gurus,
    Please help me to resolve the issue with Pricing, Modifier to Sales Order:
    I have created Master price List for Item A - $40
    Modifer 1 - Dealer Discount Price is 20% (Created Modifier as Dealer Discount - 20%)
    Modifer 2 - Order Header discount is 10% on total Order Value (Created Modifer with Discount : Level - Order; Modifer Type - Discount; Pricing Phase - Header Level Adjustments, Application Method - Percentage; Value - 10%
    Assgined to respective Qualifers (Customers), set as Automatic
    Ran Build Attribute mapping values concurrent program in Pricing Module. Status : sucess
    After doing All above steps created Sales order for respective Customer, system is applying Modifer 1 Automatically but MODIFIER 2 not able to apply at order header leverl, Not able to see this Modifier list under SO form
    Action->View Adjustment.
    Can you please check and let me know the problem to achieve this issue.
    Highly appreciate your response.
    Regards
    AK

    Check below options in sequence
    1) Is your order qualifies for both the modifiers ?
    2) If you need to apply both modifiers put them in different incompatibility level.

Maybe you are looking for

  • Sorting report columns for PL/SQL report

    I have created a report of type "Pl/Sql function body returning Sql query" in which I am generating the column names within the query. I would now like to make the first three of these columns sortable. But when I click on the "sort" box for the firs

  • Remove adjustment from multiple images?

    I have multiple images where I used Sharpen instead of Edge Sharpen. I know I can Lift & Stamp the Edge Sharpen adjustment to multiple images but I can't seem to find a way to remove the Sharpen adjustment from all of them first. Is there a way to ac

  • Procedure with out parameter in if-then-else condition

    Hi, I want to fetch the out parameter of a procedure inside another procedure that has if-then-else condition. <<Proc1_start>> if .. then <<proc2_>> --- with out parameter end if; <<proc1_end>> How to do this... Thanks.

  • Clickable pie chart in sapui5

    Hi, how to display clickable pie chart in sapui5? when i click on particular area on the pie chart it need to give a popup showing all the information about that. Thanks & Regards Chitti Babu

  • I upgraded to snow leopard 10.6.3 but it is not showing up...?

    So I upgraded to Snow Leopard 10.6.3 with the install disc and I'm pretty sure it installed properly since nothing came back about a failed installation but when I go to look at "about my mac" window it still says I'm running 10.5.8. I don't know if