Adding routine in MM- Pricing Requirement

Hi,
I have to write a routine which will be called by customizing procedure through transaction VOFM. I am wandering from where to start in this process. I have consulted an SAP note 156230 but it does not explain things in more detail.
Regards,
Shabbar

Hi Ali,
Routines are just as a Programs , where u put ur logic while doing /calc.the pricing .So no need to worry abt what to do ? just understand the process and do the same way what u do in normal programs.
how to call / what to check will be done by ur Functional Consultants.
Regards
Prabhu

Similar Messages

  • Adding custom field in pricing condition structure (BADI CRM_COND_COM_BADI)

    Hi,
    I need to add a custom field (ZCITY) to the structure : CRMT_ACS_H_COM and I need to populate this field in the BADI: CRM_COND_COM_BADI in the method : HEADER_COMMUNICATION_STRUCTURE.
    However, my concerns are:
    1. How to add the new field to this pricing structure? Is there any specific procedure to do that?
    2. And once the field is added and populated with the value in BADI, where the pricing calculation takes place based on this custom field?  Do we need to to implement any other BADI's or any pricing routines? I am little confused here.
    Could you please help me on this?
    Bottom line is : A custom field calles ZCITY needs to be added to the pricing structure and freight cost determination should take place based on this new field ZCITY.
    Thanks,
    Sandeep

    Hi Sandeep,
    if the field is used in the condition download from ECC please also check SAP note 514952.
    1. The field is added via the field catalogue maintenance at IMG: Customer Relationship Management -> Basic Functions -> Pricing -> Define Settings for Pricing -> Maintain Field Catalog. As you save or generate the field catalogue the structure will be updated with your field.
    2. Whether you need to implement a JAVA routine for the pricing of this particular condition is defined in the corresponding pricing procedure.
    Best Regards,
    Michael

  • Problem for Pricing Requirement

    Hi All,
    i have one pricing condition type ZFDS. This ZFDS having 5.50USD.
    Additional item categories ZLCN need to be excluded from this fee also in this pricing requirement.
    For Ex 1. : In one sales order my item category is ZLCN. For this item category i have ZFDS condition type. i want to exclude from this pricing requirement.
    Ex 2. In the same sales order my item category is ZTAN. For this item category i have ZFDS condition type. i want to include from this pricing requirement.
    Please guide me how to do the coding for this pricing requirement.
    Thanks,
    Raghuveera Kumar B.

    In transaction VOFM, create a new pricing requirement (your routine number must be between 601 and 999). You will be asked for an access key for object R3TR PROG RV6***601 (the last 3 chars corrsponds to the requriement routine you are trying to generate). Your BASIS team should be able to generate one for you.
    Next, go to SE38> RV6***601 program, there will be 2 subroutines. One FORM is called for Header level pricing condition checks and the other is for item level, use whatever is appropriate in your case. If you are not sure, it doesn't hurt if you put the sample code below in both FORMS.
    SY-SUBRC = 0.
    CHECK KOMP-KSCHL = ZFDS.
    CASE KOMP-PSTYV.
    WHEN 'ZLCN '.
    SY-SUBRC = 4. " Exclude ZFDS from pricing.
    WHEN 'ZTAN'.
    SY-SUBRC = 0. " Include ZFDS from Pricing.
    ENDCASE.

  • VOFM - pricing requirements ( abaper require some functional assistance)

    HI,
    I had written the required code in one of the customer routines in the transaction: vofm.
    to change the tax code according to the country of destination.
    I was given information that this will be triggered during the sales order change..(va02)..
    When i put a break point in that include it is not triggering..
    Can anyone tell me how to trigger (either std include or customerized include) of transaction: vofm (pricing requirements) in the sales order change tranx (VA02).
    thanx

    Hi there,
    Once the routine is configured in VOFM, it has to be activated for eg using RV80HGEN. Only then you can apply that routine.
    Also when the logic is not getting triggered in debug, then it means that either the logic is wrong, code has been put in a wrong location or tables / fields are called wrongly.
    Ask the ABAPer to check points & then try.
    Also changes in VA02 is captured by function V & new entry by H.
    Regards,
    Sivanand

  • Can pricing requirement be used for manual header condition

    I have a manual header condition ZCR1 which will be entered in a sales document with doc type ZAB1. When this sales document is copied into another sales document ZAB2, I want that the manual header condition ZCR1 is not determined. Can I do this via pricing requirement? Or should I use alternation formula for condition base value and make the value of condition ZCR1 to zero when the document is copied into ZAB2.
    Both the document types are using the same pricing procedure. In copy control for all item categories from ZAB1 to ZAB2, pricing type G (Copy pricing elements unchanged and re-determine taxes). ZCR1 is a manual condition in the pricing procedure used.
    Regards
    Javed

    Hi javed
    If you want the ZCR1 manual header condition should not be determined then you need to change the pricing type in the copy control but if you assign a requirement in the pricing procedure for ZCR1 condition type  then you cant enter the ZCR1 condition type manually also as you are not meeting your requirement.
    Another option is you have to create a new requirement with the help of Technical consultant ans assign it to the  header condition type in the pricing procedure requirement feild . giving inputs to your Technical consultant that The condition type  should not be determined
    Regards
    Srinath

  • Pricing - Requirment / calculation type / base value

    Dear Friends,
    Thnaks for the support and guidance provided by you for my previous posts
    In Pricing Procedure we give Requirment, Calculation type and Alternative formula for condition base value, I would like to know where do we exctly define all this?
    Or are they standard? If standards where we can see how they works?
    Regards
    Vishal

    Hi,
    go through the below Examples for better understanding ..
    Example: 1
    Condition Type: PR00
    Requirement 2 Item with Pricing
    Purpose:
    This is an example of a pricing requirement.  This requirement is met if the document item category is relevant for pricing and no previous condition in the pricing procedure has set the condition exclusion flag. This requirement can be assigned to condition types in the pricing procedure to avoid unnecessary accesses to the database when an item is not relevant for pricing or a condition exclusion indicator has been set.
    Example: 2
    Condition Type:  Net value
    Calculation Type: 2 Net value
    Purpose:
    This is an example of a condition value formula.  This type of formula can be used to influence the value shown for the condition in pricing.  A condition value formula is assigned to a condition type or value line in the pricing procedure.
    Formula '2' sets the value equal to net value that has been calculated so far for the item in the pricing procedure.  It contains the amount excluding taxes.
    Example: 3
    Condition Type: R100
        Alt.Condition Base Value: 28 (100% Discount)
    Purpose:
    This is an example of a condition base value formula.  A condition base value formula can be used to influence the basis the system uses when computing a pricing value.  A condition base formula is assigned to a condition type in the pricing procedure.
    Formula '28' sets the rate of the condition to a 100% discount.  This formula was delivered with condition type R100 to support free goods functionality.
    Reward if it is useful,
    Chandramohan

  • How can we create new pricing requirement for a condition type

    Hi All,
    I am in urgent need of creating new pricing requirements for a condition type.
    Or if there is already a conditin type existing and we want to make changes in the pricing requirements of that condition type, How can we do so ?
    In short if you can let me know how does pricing get impacted by the condition types.
    Thanks
    Mark

    Hi!
    The common transactions for condition mantaining are VK11, VK12, VK13.
    In SPRO - Sales and distributoin - Basic function - Pricing - Pricing control - *.
    Is this what you want?
    Regards
    Tamá

  • Testing Pricing Requirements

    Hy Guys,
    how do you test the pricing requirements (ex. manual conditions, manual deposit condition, free of charge deposit cond, mixed palled surcharge etc) ??? So you create sales orders, credit memos and so on, and then..?
    Thank you !
    Cris

    You can do it yourself in transaction VOFM, Requirements>Pricing. Then highlight the requirement number and and click the "source text" button.
    Click on the first statement (probably a statement like "sy-subrc = 4"), and then click the "stop" button to set the break point. You can then process an order and it should break in that bit of code. Keep on hitting F5 and watch the sy-subrc value - if it is 0 at the last line of code, then the requirement has been met. If not zero, then it has not been met and that price will not be determined.
    Don't forget to remove your breakpoint in VOFM afterwards.
    Hope this helps.
    Jon

  • SD Pricing requirement

    Hello Gurus,
    In sales pricing requirement there are 2 forms.
    1) KOBED
    2) KOBEV
    Somebody knows the execution sequence of the 2 form. Is first KOBED and then KOBEV or there is some rules that drive the execution of one or the other?
    Thanks.
    Josy
    Edited by: Lakshmipathi on Aug 8, 2011 8:46 PM
    Thread Locked - Reason - Duplicate Post

    Hi,
    The precondition (FORM name KOBEV)
                        This is checked on header level and therefore is only a necessary requirement that the condition type or the access is taken intoaccount at all.
    And the actual requirement (FORM name KOBED)
                        This is checked during processing on item level and it finally determines whether condition type or access is taken into account.
    Best Regards
    Amjathpasha

  • Pricing requirement with three requirements

    Hi,
    I'm no developer, but have to create a pricing requirement. I created the one below, but it doesn't work.
    I want some conditions only to be used if komk-vkorg = 1111 + komp-zzmtpos = DIEN + any of the defined item categories are used.
    FORM KOBED_998.
    sy-subrc = 4.
    if ( komk-vkorg = '1111' ).
      if ( komp-zzmtpos = 'DIEN' ).
       if ( komp-pstyv = 'ZSQ1' ) or
          ( komp-pstyv = 'ZSQA' ) or
          ( komp-pstyv = 'ZSQC' ) or
          ( komp-pstyv = 'ZSQE' ) or
          ( komp-pstyv = 'ZSQF' ) or
          ( komp-pstyv = 'ZSM'  ) or
          ( komp-pstyv = 'ZS1'  ) or
          ( komp-pstyv = 'ZSA'  ) or
          ( komp-pstyv = 'ZSC'  ) or
          ( komp-pstyv = 'ZSE'  ) or
          ( komp-pstyv = 'ZSF'  ) or
          ( komp-pstyv = 'ZG2N' ) .
         sy-subrc = 0.
       endif.
      sy-subrc = 0.
      endif.
    sy-subrc = 0.
    endif.
    ENDFORM.
    FORM KOBEV_998.
    ENDFORM.
    Thank you for help!

    i agree with Wolfgang Valtin
    here is  piece of code that works for u ..
    FORM KOBED_998.
    sy-subrc = 4.
    if ( ( komk-vkorg = '1111' ) and ( komp-zzmtpos = 'DIEN' ) )
    and ( ( komp-pstyv = 'ZSQ1' ) or
    ( komp-pstyv = 'ZSQA' ) or
    ( komp-pstyv = 'ZSQC' ) or
    ( komp-pstyv = 'ZSQE' ) or
    ( komp-pstyv = 'ZSQF' ) or
    ( komp-pstyv = 'ZSM' ) or
    ( komp-pstyv = 'ZS1' ) or
    ( komp-pstyv = 'ZSA' ) or
    ( komp-pstyv = 'ZSC' ) or
    ( komp-pstyv = 'ZSE' ) or
    ( komp-pstyv = 'ZSF' ) or
    ( komp-pstyv = 'ZG2N' ) ) .
    sy-subrc = 0.
    endif.
    ENDFORM.
    FORM KOBEV_998.
    ENDFORM.

  • Copy pricing unchanged and pricing requirements

    When we create a Return in reference to an invoice we have configured copy control to copy pricing unchanged. Even though the pricing gets copied into the return, it appears requirements in the pricing procedure are still getting executed. This results in the original active condition to get de-activated because it failed the pricing requirement on the return. Is this normal behavior of SAP to execute pricing requirements on the target document when we have configuration to copy pricing unchanged?

    Hi,
    check this thread,May be useful to you.
    [New Pricing procedure for credit memo|New Pricing Procedure in Credit Memo;
    thanks,
    Vrajesh

  • If anyone worked on the sales pricing requirements(vofm)

    If anyone worked on the sales pricing requirements(vofm), can u tell what happens in the sapcode, if create the requirements in vofm tcode

    Hi Rama,
    Pricing Requirement is  basically a check before a condition type populates with its value.
    we define the requirement and assign this to condition type as required.
    for example, you have a discount condition ZABC which should only populate when the material is delivered from Chennai plant.
    If this check ( certain requiremnt which we want to get satisfied before a particular condition type populates) becomes true during sales doc. processing, then
    condition type is given a Go-Ahead by the system that it can populate.
    we acheive this by using parameter SY-SUBRC and set this system variable to 0 if condition is true
    basic outline of the  code will be like following ( one of the ways) :
    IF <Condition > = TRUE
    SY-SUBRC = 0
    ELSE
    SY-SUBRC = 4
    we can also utilize the CHECK statement to acheive this.
    Hope it gives an idea to understand pricing requirement.
    Please let me know if you have any doubt.
    Best Regards,
    Gaurav Raghav

  • Pricing requirements - VOFM tranx (standard include)

    Hi,
    I want some information about the pricing requirements in the tranx code: VOFM.. For each standard include of the parent include: LV61ANNN, there are two forms: kobed_xxx and kobev_xxx.
    1) What is the different between these two forms and what is their effect..
    2) in my requirement, it was not mentioned as to in which form do i need to write the required code. (Though it was said that i need to copy one of stnd include)..

    hi Rohith
    just go to this thread link
    Re: VOFM - Requirements
    this must answer your queries
    hope this helps
    regards
    Aakash Banga

  • Adding New fields in Pricing

    Hi,
    I have to add new fields in price catalog (i.E MaterialGroup1 to Material group5 
    MVGR1 .. MVGR5 ) .Althought the fields has been hadded in catalog and access sequence , pricing procedure is not picking up data from sales order to determin the price component
    Please suggest what user exit /enhancement required .

    Hi
      please check out  this
    The routines for assigning values to the new fields in order processing are found in member MV45AFZZ. Use the following user exits:
    USEREXIT_PRICING_PREPARE_TKOMK (header fields)
    USEREXIT_PRICING_PREPARE_TKOMP (item fields)
    The routines for assigning values to the new fields in billing are found in member RV60AFZZ. Use the following user exits:
    USEREXIT_PRICING_PREPARE_TKOMK (header fields)
    USEREXIT_PRICING_PREPARE_TKOMP (item fields
    If useful reward points
    MBS

  • Pricing requirement: condition to be in(active) linked to another condition

    Hi,
    I have created 2 new conditions type YR05 and YR06 in pricing procedure.
    I would like that the second one (YR06) is considered as active only if amount of condition type YR05 is different from 0. (KOMV-KEBTR and KOMV-KWERT different from 0)
    Could you please advise how I should handle it as I am not so familiar with requirements and Condition base value.
    In addition, I created an additional line in pricing procedure to sum the amount (condition value) of these 2 conditions (to be printed on the billing document).
    Any idea of the code to put in requirement and calculation type ?
    Thanks for help,
    Brgds,
    VM

    Hi,
    In pricing procedure, you can put a subtotal for YPR5 (like D for XWORKD).
    Then, in new routine (basis or formula), you can check if XWORKD <> ' '.
    If yes, xkomv-kinak = ' ', if no, xkomv-kinak = 'X'.
    This is just an idea.
    Regards,
    Lionel

Maybe you are looking for

  • Can I add a lossless file to my itunes library?

    Can i add a lossless music file to my itunes library? Usually what i do is drag the file or folder into music/itunes/itunes media/automatically add to itunes and it works fine, everything shows in my library and plays perfectly. But with this lossles

  • How do I get my pics off iPad to free up memory

    I have an IPad with (16 gig) with wifi. I have a lot of pics on my iPad and need to get them off to free up memory to upgrade to the ios7. I have a windows pc. I down loaded ITunes app on the pc, but can not figure how to get them onto the pc. Would

  • Application should start automatically as soon the user logs into windows.

    Hello All, I have a requirement. I am developed a time sheet application using web dynpro. This application is configured on the portal & is working fine. Now, I want to make some changes, may be at Portal Content side or Application side, but want t

  • Notification type

    What are the notification types? and wat is the main role of notifications in QM? Please answer with gud examples. Thanks in advance! Nilesh Ithape

  • Contact persons of a bidder in a bid invitation

    Hi all, If I pass the bid invitation guid or bid invitation number to the function module BBP_PD_BID_GETDETAIL, the business partners are obtained in th table E_PARTNER table. In this table I am not able to recognise which are the bidders added to th