VA01 user exit to manually insert condition record for sales order

Hello Experts,
I have a req. to find a user exit through which I can insert a new condition record for a sales order everytime a sales order is created.
Whenever a sales order is created I should check whether condition types X and Y are being generated for the particular sales order.If yes I have to insert a new condition record with type Z for that sales order after some calculations.
Does anybody have an idea which user exit should be used so that my new condition comes up in the CONDITIONS tab for the sales order item.
Thanks in anticipation.
Vipul

Hi,
What I suggest is suppose you want condition type say 'XXX' to appear with some calculated value only when condition type 'X' & 'Y' are present, then let the consultant define that condition type in pricing procedure, with 'Manual Entry not allowd flag on, so that nobody can overwrite the value calculated by your routine in condition type 'XXX'  & let him 'attach; a routine say 901 to it. Now via VOFM in routine 901 you can put your logic. In routine 901 you can loop at xkomv & check if both condition types viz. 'X' & 'Y' are present. IF yes then calculate the value of condition type 'XXX' as per the logic required & pass it on to SAP by xkomv-kwert = w_amount, where w_amount is the value calculated by you as per the logic required.
I hope this helps,
Regards
Raju Chitale

Similar Messages

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

  • Sample script to insert  into mtl_transactions_interface for sales order

    Hi,
    can any one provide me the script to insert into mtl_transactions_interface for sales order transactions. actually i have to create the transactions for all the assemblies/components of C* item (configured item). as per the standard functionality it will create only for the C* item.
    Thanks in advance..
    Regards,
    Sreenath

    If I understood your question correctly, your requirement is as follows.
    You have a sales order for a configured item - say C*123.
    The components of C*123 are A and B.
    A and B as well as C*123 appear on the sales order.
    When you ship the sales order, Oracle will create sales order issue transaction for C*123.
    You would like to use the transactions interface to create sales order issue transactions for A & B.
    That is wrong thing to do.
    You should not create a sales order issue for A & B.
    You need to BUILD C*123 by creating a work order. You need to perform WIP component issue transaction for A & B.
    Hope this helps,
    Sandeep Gandhi

  • How to define the detail "Condition" item for  sales order?

    Hi, I checked the condition information of a sales order, the following contents were displayed:
    PR00     Price     230.00
         Gross Value     230.00
         Discount Amount     0.00
         Net Value for Item     230.00
         Net Value 2     230.00
         Net Price     230.00
    I can understand that the price 230.00 can be maintained via tcode: vk11, what I want to know is:
    How to define/control the following items such as:
    Gross Value     230.00
    Discount Amount     0.00
    Net Value for Item     230.00
    Net Value 2     230.00
    Net Price     230.00
    and how to control their currency?
    Thanks.

    Hi, Dear Ferry Lianto,
    Thank you very much.
    Commonly I know the total pricing procedures.
    But, would you please tell me how to control the CURRENCY for the subitem of a condition type as follows?
    For example, I can see the following kind of
    contents in the Tab:condition of a sales order:
    PR00     Price     130.00000      TEST     100
         Gross Value     20.12      USD     100 <-how to
         Discount Amount     0.00      USD     100
         Rebate Basis     20.12      USD     100
         Net Value for Item     20.12      USD     100
         Net Value 2     20.12      USD     100
         Net Value 3     20.12      USD     100
    VPRS     Cost     27.22      HKD
         Profit Margin     16.61      USD
    The currency of PR00:price can be controlled via tcode VK12; but how to control the currency of its subitem such as gross value, discount amountm, net value for item, net value 2, & net calue 3...
    Thanks and regards.

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

  • How to add new condition record to sales order items

    Hello All,
    I have requirement to add to new condition record to get more discount on the item during sales order processing based on some conditions. In user exit SAVE_DOCUMENT_PREPARE , I am populating an internal with items for which additional discounts are required. So want to add condition record to those items to get additional discount.
    I know that in VOFM routines we can modify the existing condition record value but not sure what is the best place to append new condtion record to conditions table.
    Thanks,
    Suman

    Hi suman,
                   As which conditions you want or whatever logic you want for to write for applying the conditions you need to make changes at two includes and one FM by using Implicit Enhancement
    1) MV45AFZZ
    2)RV61AFZB
    3) FM name i am not remembering you can debug and find out.
    Regards,
    Shahezad

  • Condition records in sales orders

    Hi All
    My requirement is when ever  i create a sales order, system should not allow be save the sales order without condition records
    Some times there is not CST or VAT condition records found for the customers, the system is showning the value as ZERO.
    In this case system is allowing me to save,
    I want to make this condition record as mandatory without any values system should not save the document.
    quick reply will be highly appreciated

    Hi
    I have 2 different sales tax condition types both are used in the same pricing procedure, so i cant make both as mandatory depending on the customer region the system pickup the condition records. I need this feature to be based on customer region.
    1.Try to Maintain the Condition record with combination of Customer Region and material ( based on your requirement )
    2. go to T-Code V/08 , select your pricing procedure and click on the control , "UnTick" the manual and Required of those condition Types
    Try to Create sales order and check
    Regards,
    Prasanna

  • User Exit or BADI in APO to change sales order relevant data while CIF

    Hi Everyone,
    I require User exit or BADI at APO side to change customer field kunnr of sales order after it enters APO through CIF.
    My requirement is to replace KUNNR field with KDGRP field of sales order.
    The data will pass through CIF in APO.
    Is there any user exit or BADI for the same?
    Sample code will be of great help.
    Regards,
    Kashyap.

    Hi ,
    Resolved myself.
    customer exit APOCF010
    Regards,
    Kashyap

  • Conditions record for returns order with order type "RE" Modification

    Hi,
    How can I gay out the EDI1 conditons row ( Customer expected price ) for returns order, so that the customer price is not considered.
    Current Scenerion: when we create a returns order "RE" with reference to standard order "OR" it pulls out the price details from the standard order, but then in the conditions tab the EDI1 ( customer expected price ) is still active which allows the user to enter the new price. When the user enters the new price, the price for that line item is getting updated with this new customer expected price.
    Can any one help me out on how to gray put that row, so that the user is not allowed to enter a new price during rreturns.
    Thanks in Advance!!

    Hi
    This will be updated automatically when generate planned orders thru MRP. (MD02)
    regards
    Srinivas

  • What user exit can add / delete lines on a sales order?

    Hi experts -
    We are going to be using a 3rd party to give us pricing, so we need to make a call for each line item to get prices.  This may give us free goods, so we will need to add / remove lines from a sales order.
    Any ideas what exit will allow us to do this?
    Thanks,
    Mark

    Hi,
    Try BAPI:
    BAPI_SALESORDER_CHANGE
    Regards,
    Gilberto Li

  • Conditon value not updating in CONDITION tab for Sales Order

    Hi Experts,
    Can anyone tell me about this ?
    I have created a Z condition type for VA01 and need to place some value (based on some logic  taken from conditon records).
    I am not able to do this.
    Steps already taken care of.
    !) In VOFM >formula section>conditon value = New routine is created.
    2) in V/08, after selecting the Z condition type Routine number is given in front of the Z condition type.
    Waiting....

    Hi Prabhu,
    I didn't understand the meaning of analyzing the Pricing Procedure ?
    In V/08, I have selected the Z condition type created in the system and than selecting that, navigated to CONTROL folder.
    Now in front of the Z condition type in CALCULATION TYPE field the number of the routine is given (Which is created using VOFM).
    Now what else I need to do?
    Repy@Madhu.
    Yes Madhu. Routine is activated and control is stopping if break point given in the routine. In this routine I am trying to populate a value in its XKOMV internal table's KBETR field but when VA01's main CONDITIONS TABS screen comes the value is not appearing.

  • Pricing condition redetermination for sales order created with reference

    Hi,
    Are  there any exit or routines that can be used to redetermine MWST pricing condition alone when creating sales order with reference to another sales order? The pricing from preceeding sales order is copied but we need only MWST to be redetermined after saving the order
    This is because we are making changes so that while saving the sales order the material tax classification is defaulted to M based on some conditions so that MWST picks up the value M
    Regards,
    Vin

    Hello Vinod ,
    did you tried following options :-
    1.Using Exit ( MV45aFzz) and re calculte pricning using FM 'PRICING'.
    2.or Using Copy Control (Tcode : VOFM ) while creating order with Ref.
    regards
    Prabhu

  • New pricing condition update for sales order

    Hi All,
    We need to insert new pricing condition for existing sales order.Could you please sugest any bapi or function module to
    update new pricing condition type.
    Thanks
    Mohit

    One reason to use program is that then the business can be 100% that all the sales orders are "updated"
    (maybe) & if anything goes wrong; The SAP consulting company - who created the program - is to be blamed / is accountable.
    In short business wants to be 100% sure that update has taken place for ALL s orders.
    Is that correct Mohit?
    Edited by: Typewriter on Jun 24, 2011 9:27 AM

  • Pricing condition tables for Sales Order

    Hi experts,
    please can you tell me the code I have to write into a query's field to retrive the value of a specific header pricing condition saved into a Sales Order?
    Thank you very much
    Kind Regards
    Andrea

    1) From sale order header table VBAK fetch the condition number KNUMV for a particular sale order VBELN.
    2) From conditions table KONV fetch the conditions for condition number KNUMV with item number POSNR as 000000.
    This way you can fetch the header conditions. Our ABAPers normally do a loop on the line items and total up the values to arrive at the header condition value. If you use this way then you need to pass another field condition origin KHERK with value D while fetching data from KONV.
    Regards,
    GSL.

Maybe you are looking for