User exit for condition type for redeterming in sales order

Hi SD Experts
One condition type is created With the key combination Order type and Inciters
When the contract is created and on the bases of Inciters given the value is calculating correctly
But when we change the other Inciters in sales Order is not redeterming
since this condition type key fields are added one it may not be  redeterming
is there any user exit ?
Pls help in this regard
jeevan.S

Use the exit USEREXIT_NEW_PRICING_VBAP in program MV45AFZB. This userexit can be used to perform new pricing, depending on the change of datafields.
Regards,
GSL.

Similar Messages

  • Get name of user depending on condition types by changing the sales order

    Hi,
    I need to display the name of the user who made the changes in the condition types
    i.e.. need to get the name of the user , by changing in the condition types through transaction VA02.
    I am having object id and tabkey (of table CDPOS) but in table CDHDR, i am getting only one entry for object Id and there i can not get the user name depending on the different conditions types.
    Please help me to solve this issue.
    Regards,
    Darshana

    Hi,
    Item details are stored under the TABNAME = 'VBAP'.
    For example if you execute the function module 'CHANGEDOCUMENT_READ' for order number 5000000000, item number 10,
    Function module will return an entry with TABNAME = 'VBAP', TABKEY = '5000000000000010', and other details.
    Execute the function module by passing object class = 'VERKBELEG' and object id = <order number>
    Regards
    Vinod

  • User exit or badi to restrict PROO in Sales Order for certain sales organisation

    Hi SAP SD experts,
    I would like to know the User exit or badi to restrict PROO in Sales Order for certain sales organization. This can be done by making condition type as D but will affect all sales org and we to restrict for a certain sales org only.
    thanks,
    SG 

    Kindly  explained  how  you have  solved  others  may benefit..
    regards
    Arunkumar

  • Need a user exit to add custom partner function in sales order @ item level

    Hi,
    Need a user exit to add custom partner function in sales order at item level. Goto --> Item --> Partner.
    Thanks,
    Thiyagi

    HI Leo
      To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
       Naren is right to point out on the same.
      If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same. 
       I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
    Kind Regards
    Eswar

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts,
    I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
    I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
    Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
    Thanks and Regards,
    Vicky.

    Hi Vinod,
    I am sending you my code please check it,
       if TKOMK-SPART = 10.
        if XKOMV is not INITIAL.
          clear v_JEXP.
        READ TABLE XKOMV with key kschl = 'JEXP'.
        if sy-subrc = 0.
          check XKOMV-kwert = 0.
          message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
          v_JEXP = 'X'.
        else.
          message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
          v_JEXP = 'X'.
        endif.
        if v_JEXP = 'X'.
      XVBUV-MANDT = sy-mandt.
      XVBUV-POSNR = '000010'.
      XVBUV-TBNAM = 'VBAP'.
      XVBUV-FDNAM = 'PRSOK'.
      XVBUV-FEHGR = 20.
      XVBUV-STATG = '06'.
      XVBUV-FCODE = 'PKON'.
      XVBUV-SORTF = 9999.
      XVBUV-LFDNR = 0000.
      XVBUV-UPDKZ = 'I'.
      append XVBUV.
        endif.
    endif.
    endif.
    Please suggest something to solve this.
    Thanks and Regards,
    Vicky.

  • Wrong calculation for condition type for misc. provision in service PO

    Hi Gurus,
    In service PO line item, we have maintained customised condition type for misc provision. this is % based on net price. It has been assigned account key and accrual key. It's manual. Logically, it should calculate the value based on the total of the net values of all service lines and post a single entry for all concerned service lines. What system is actually doing, it calculates the value correctly for total of net values of service lines in that PO line item but post it to the account as many number of times as the number of service lines in that line item.
    This is when service based IV is active for the PO line item. If I deactivate this, then it post the account once only which is ok.
    Please explain this behaviour. Also, I want to activate service based IV, what should I do to this condition type. Is there any condtion base formula or condtion value formual to be assigned in the pricing procedure?
    Thanks in advance,
    Sudhir Dahake

    Hi,
    Check if some user exit/ routine is written for the condition type.
    Check user exit RV60AFZZ, RV60AFZA, RV60AFZB,RV60AFZC for some code.
    If it is a manual condition check COPY CONTROLS or if it is automatic check condition records from which it is calculated based on qty, price, material type, etc.
    Regards,
    Amit

  • MM-PUR default scales for condition types for service (ME31K

    Hi,
    We have faced the following problem:
    The business case was, to have default scales for certain condition types for a service for a purchasing contract.
    We didn't find it in SAP, so we wrote an OSS. SAP answered that it's not possible now, nor in the future.
    So we decided to look around in SAP, and found out that it was half possible.
    I've abused the exit USEREXIT_XKOMV_BEWERTEN_INIT of program RV61AFZB.
    In this exit I provide the internal table staffel for program SAPMV13A with the correct information (via ASSIGN ('(SAPMV13A)STAFFEL[]') to <staffel>.)
    In this way, if a user adds a service, this exit will get reached and the scales are filled. If the user then clicks on conditions and then double clicks the condition type with the scales, all the default scales are shown to the user. If you then click on save, the next screen is the service screen, if you then click on save again, all the date is stored in the database. (bit of a work around, but this works)
    However, I can't figure out how to save the scales data, when you only add a service and then push the save button without viewing the conditions. Quite logically actually because I'm skipping two whole screens with pbo and pai modules, in these modules internal converting takes place.
    Has anyone encountered this problem before and how did you solve it then ?
    Alternatively what is the SAP standard way to add pricing condition scales on condition types of a service of a purchasing contract? As you know there is no BAPI yet to change/create a purchasing contract.
    I was thinking, to add the scales by updating the tables directly via ABAP, I know that's not a clean way to do it, although it isn't too risky.
    Kind regards, Rob Dielemans

    Dear Rob,
    Is this solution properly working for you?
    I think my problem is similar: purchasing outline agreement (contract) refuses to apply relevant scale prices in the item line. Always uses the first price - without considering order quantity depencies.
    Regards,
    Tamás
    Edited by: Tamas Szabo on Mar 31, 2009 3:50 PM

  • User exit - VA01 - Adding new line items while Sales Order Creation

    Hi All ,
    I have a requirement where : in VA01 , i have to add new line items using USER EXIT or BADI.
    The scenario is : we maintain Characteristics for Material. When we select a particular characteristics, Factor and length will be displayed in a Popup. we can specify the Factor and lenght.
    Here , if i specify Factor as 10 and lenght as 1000. the Material has to be cut / split into 10 items of 1000 mts each. and the ITEMs table control should get 10 ITEMS .
    How to add new items using User exit or Badi in VA01 while creating a sales order.
    i have identified the user exit . What code should be used to add new line items.
    kindly help me in solvng this.
    Waiting for your replies.
    Thanks in advance.
    Suki.

    hi
    wich user exit do you take for that ???

  • Condition type not coming in sales order

    Hi,
    we have a condition type Z026. The issue is that  it is not set in the order but the condition records exists. The pricing analysis shows that condition reocrd is missing but the fact is the condition record is there. The acess seq is Z026 and there are many tables in the acess sequence.
    The first table in the access seq is 906 and the condition record exists but still the system says that the condition record is not found using  cond preliminary step (header fields like customer/sales org/div). the cond record is maintained for  relevant sales org/dist channel/customer/material. cond preliminary step means that system first looks for the header fields but everything is there.
    The condition is active and the conditon is created on 21.7.10 with validitity from 21.7.10 to 31.1.2010 and the pricing date in sales order is 27.7.10. so everyhting is fine but yet the condition is not coming in sales order
    what could be the issue.
    regds

    Hi,
    Now try creating a sales order with 20.07.2010 as the pricing date. It will work. Create another order with 21.07.2010 and it will not work. If so, it is due to the validity date. When you give 21.07.2010 as validity date and there is already another record which was valid on that date, the gap of one day can happen and we have experienced this. There is even an OSS note explaining this concept, which makes sense business-wise.
    However you check the scenarios I have mentioned. If the behaviour is as I have mentioned, then you have to change the pricing date of your problamatic sales order to one day earlier, or move the validity date one day earlier.
    If the behaviour is different, pls lemme know

  • Condition type not appearing in Sales order

    Hi All,
    Iam using TAXINN, Copied ZINFAC to KINFAC,
    I have created JIVP and JIVC for VAT and CST,
    I have maintained Condition Records for JIVP and JIVC.
    Both these condition records are not reflecting in my sales order, i.e. the records are not coming.
    Please help me in this regard
    Siva Narayana.B

    hi,
    please check if the condition records are mentioned for the key combination matching the sales order. ie if the condition records are maintained for the required combinations. Then check if the correct tax codes are maintained in the condition record and properly determined at FTXP.
    Thanks
    Sadhu Kishore

  • How to give the header condition type in the CRM Sales Order for freight ?

    Hi,
         We are creating Sales Order(SO) using FM 'CRMXIF_ORDER_SAVE'.And we are unable to track the FREIGHT condition type in the above FM to pass value.
         We want to check this value in CRMD_ORDER tcode.
        Pls let us know how to make it possible of the above issue.
    Thanks,
    Siva..

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • Incorrect value for condition type P101 in Stock Transport order

    Hello Friends,
    We have a scenario where in transfering material from one plant to another using the STO way , the excise duty from the sending plant should be loadded on the inventory of the receiving plant.
    In this scenario the excise duty X% is calculated on the condition type P101 (which is the standard price or the moving average price from the material master accounting view)
    Giving below a sample cas e for the error occuring:-
    - Suppose a material M1 has stock of 5,00,000 EA of total value 2,03,707.16 inr , thus the moving average price calculated by the system is 0.41 inr per unit.
    - When i try to create the Stock transport order for this material the P101 condition value now appears as 2,05,000 inr for same 5,00,000 Quantity
    If we check the difference between the material master value and condition value their is a difference of 1292.84
    As mentioned the excise duty(X%)  is now getting calcuated on 2,05,000 . When we do post goods issue against the delivery created for the stock transport order the inventory value posted is from the material master i.e 2,03,707.16 , but the excise value are calculated on 2,05,000 in the Purchase.
    This difference in value between the condition P101 in PO and the actual inventory posting value is resulting in incorrect calcuation of the excise duty.
    can some help me regarding this issue.
    regards,

    Dear Gundam,
    This might accured due to the rounding off problem, so please chek the rounding off condition type is available in the invoice or not.
    If not plaese maintain the rounding off condition type sames as in the sales order then try.
    I hope this will help you,
    Regards,
    Murali.

  • Condition Types display in a Sales Order

    Dear Gurus,
    In our Pricing Procedure we have 2 condition types ZFR1 (Freight) and ZINS (Insurance) which are always Header type and should be entered manually. So according to normal procedure, I inserted them in the pricing procedure and maintained them as 'Manual' and selected them as Header conditions in Details of condition types with no Access Sequence and also selected them as 'No Limitations'.
    Now my requirement is that these condition types ZFR1 & ZINS should be available by default in a Sales Order under 'Conditions' tab and under 'CnTy' column and their values should be in Editable mode under 'Amount' column, when we go to the Header data view, but should be greyed out in Item data view, since they are Header conditions belonging to the whole document.
    Here my problem is that what ever combination I do in V/06 or V/08, system is not displaying the condition types by default. That is, I have to or the end user has to remember to enter the condition types and enter the values. But if I can display them as default when we go the Header view, Conditions tab,. end user will see them and will remember to enter values in them.
    The one problem I have is, I cannot make them as 'Mandatory, as they are not always required in all Sales Orders, so there are times when we dont have to enter any values there.
    I went through the search forum but didnt find any useful material, kindly help me out here.
    Regards
    Venkat - Hyd

    Dear Lakshmipathijee,
    Thanks for your answer, I have indeed maintained both the condition types at Header level. Normally when we do this kind of settings, the conditions screen is like the following:
    10....0....PR00....Basic Price...........1000.....(this 1000 is from condition record)
    Now if the end user needs to add values for ZFR1 or ZINS, he needs to remember the Condition types and enter them to be able to enter values in the document.
    But suppose there is a way of displaying the Condition Types with out values as shown below, then the end user will not have to remember to fill them up, he can simply come to the conditions screen and they are visible there and he will just fill them up with values. The following is how I would like the conditions screen to be seen:
    10....0....PR00....Basic Price...........1000.....(this 1000 is from condition record)
    20....0....ZFR1....Total Freight.........._____...(this should be a blank field)
    30....0....ZINS.....Total Insurance......_____...(this should be a blank field)
    In these editable fields of Freight and Insurance, the end user will enter the values in case they are neccessary or leave them blank.
    If I maintain the condition types as mandatory and manual, header condition screen is not displaying the Condition types??!!!!
    If I maintain the Header conditions as Item conditions also in V/06, then the header conditions screen is displaying the conditions in grey mode, without any value (as they are manual conditions) and in the item screen, they are in editable mode, but system is not allowing me to input any value, saying these condition types are not item level condition types and they are to be maintained at header level, but like I said, at Header level, the fields are greyed out !!!!
    So, any help plz..
    Regards
    Venkat - Hyd

  • Condition type not determine in sales order

    I have condition record maintained for the condition type as per the order reason. When I create the sales order system is not reading the condition record so no condition type is getting determined. Pricing date from the sales order is within the validity period of condition record.Parmeters are also matching but still in the sales order condition type is not getting determine.
    Thanx
    PNU

    In that case, do update of pricing.
    To do that, Sales Order - Item data - Condition Tab - Click Update button and choose option B - Carry out new pricing.
    To know who manually remove this.
    Choose Enviroment from menu bar in sales order - choose Change for display of change in the doc.
    Regards
    JP

  • How to change the manual condition type value in change sales order BAPI

    Hi All,
    My scenario here is, i want to either add/change the manual condition type value during change of SO.
    When i'm trying to pass the  order_conditions_in and  order_conditions_inx tables in  'BAPI_SALESORDER_CHANGE'.
    Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

Maybe you are looking for