BADI ME_PO_PRICING_CUST or  VOFM Pricing Rouitnes

Hi All,
I need to replace distribution chain in the price determination for stock trasnport order.
It can be done either thorugh BADI ME_PO_PRICING_CUST or  VOFM Pricing Rouitnes.
Could you please let me know which is best way to do this.
I should go ahead with BADI or VOFM Routine.
Best Regards,
Pramod Upadhyay

hello,
To imorove the perfomence you have to check which option will have better perfromance. one way is to check 'which option will tirgger multiple times. VoFM routince tiggers mutilple times so please check if the badi tringgers less number of time by setting break point..
Then you have the answer!!...
Regards
Naresh

Similar Messages

  • 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

  • User Exit / BAdI to update the pricing conditions of the Purchase Order

    Hello SAPients,
    This is my requirement:
    "Copy the Pricing Conditions from the Shipment Cost Document (VI01 / VI02) to the automatically generated Purchase Order".
    I'm using the enhancement V54U0002 (Function Module EXIT_SAPLV54U_002) to EXPORT  the values of the Pricing Conditions to memory and I have used the enhancement MM06E005 ( FM EXIT_SAPMM06E_006, 007, 012, 013, 014, 016, and 017) to IMPORT the values from memory and store them in TKOMV. But, when the PO is generated the values don't stay, they are always changed with the standard PBXX pricing conditions.
    My question is: Does anyone know the User Exit / BAdI that I can use to change the Pricing Conditions of the Purchase Order?
    <<removed_by_moderator>>
    Thanks!
    Edited by: Vijay Babu Dudla on Jan 14, 2009 11:08 PM

    >
    kartik tarla wrote:
    > check this badi
    > ME_PROCESS_PO_CUST
    >
    > and the following user exit
    > Goto-> include RV61AFZA then search for
    > USEREXIT_PRICING_RULE see if its helpful to u.
    Hello Kartik / SAPients,
    I tried with ME_PROCESS_PO_CUST but didn't work. The system doesn't execute that code. Any other idea would be greatly appreciated.
    Thanks.

  • BAdI for replacing CRM Pricing

    Hi Experts,
    I have a requirement to make a RFC call to retrieve the pricing from ECC/Vistex in CRMD_ORDER transaction after hit enter key with product/qty entry. I'm searching a BAdI for CRMD_ORDER (so many BAdIs for this TC) that can RFC by customer/material to retrieve the pricing from ECC then overwrite CRM's pricing with it (at least has customer/material as importing and subtotals as export/changing). Can anyone please advise if there is a BAdI for this purpose?
    Thanks in advance, Jin

    In CRM_PRICING_I_BADI-MERGE: there are netvalue/price and subtotals in Importing IU/S_PRICING_I_WRK, but not in Changing CS_PRICING_I_BADI. 
    In CRM_PRICING_BADI-MERGE: there are none of them. 
    Why PRICING BADIs have no Pricing fields that can be changed? I think I'm missing something here.  Any advise / documentation?
    Thanks, Jin

  • VOFM Pricing Requirement - Condition type at header

    Hi Experts,
    We have a new condition type, we want to use it in all our new invoices and has been made mandatory in the pricing procedure. Both the sales order and invoice have the same pricing procedure. I am using a requirement routine.
    The code has to execute some logic for line items and pass the value to the new condition at the line item level. For new sales orders this is working absolutely fine as we have maintained a condition record and the condition exists. While creating any invoice from open sales orders which do not have this condition type, we are entering it at the header level.
    I perform my logic and pass the value for the line items in TKOMV. These values do not get saved. Whereas, the values get saved when we have other condition types that are at the line item level.
    The questions I would like to ask is:
    1. Is requirement routine correct for this scenario? Or should I use condition value/condition base value routines to pass new values?
    2. Is the method of changing the values in internal table TKOMV correct?
    3. The value from this condition type has no financial impact on the FI documents, but it is mapped to COPA. Is there a way to write code to directly update the COPA value field in the COPA side without having to create a routine?
    Thanks,
    Abdullah Ismail.

    You should not be facing this problem as system adjusts the difference in value for the last item. Try to update the prices in the doucment and check.
    Regards,
    GSL.

  • VOFM pricing routine

    I have a requirement where I need to check pricing condition for BOM material.The requirement is that,if the material is a BOM in a sales order,then the pricing routine should trigger for its sub material. The problem we are facing is that the pricing routine is not getting triggered for the sub material. If anybody have worked on such requirement ,please give some input.I want the pricing routine to be triggered for the submaterial.

    Hi ,
          Whatever logic u write in ur routine .The final value which will go out from the routine is xkwert which is condition value .so in ur logic you will have to populate a value to the field xkwert .

  • 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

  • Me_po_pricing_cust badi

    Hi
    iam using BADI 'me_po_pricing_cust' in me21n.
    I wanted to sum all the net price in the item data and have to chk the table...
    But iam getting sinble line item wsie data . so the previous value is gone..
    How to get that
    Cheers
    Christina...

    Hi Christina,
    create an internal table and work area of the same type of import parameter table and loop the internal table to work area table to do ur calculation with variables.
    it_mseg
    wa_mseg.
    v_var.
    it_mseg[] = i_mseg[] (this is the import parameter table available in ur me_po_pricing _badi method funtion parameters)
    loop at it_mseg into wa_mseg.
    v_var = v_var + it_mseg-wrbtr.
    endlloop.
    Like above, u do changes based on ur requirements.
    regards
    sankar.

  • PRICING ISSUE BADI ME_DEFINE_CALCTYPE- URGENT

    Hi Guys,
    My requirement was to trigger new pricing on change of Delivery Date. I have to retrigger pricing only if there is any change in fields EKKO-INCO1, EKKO-INCO2, EKPO-MATNR and EKPO-ADRNR.
    For the same I have implemented three badi's and one pricing routine.
    BADI's are -
    <b>ME_DEFINE_CALCTYPE</b> - <b><u>Method DEFINE_CALCTYPE</u></b> : Setting the Flag CH_X_LF_CALCTYPE If there is difference between the old value and new value of Fields mentioned above.
    <b>ME_CHECK_ALL_ITEMS</b> - <b><u>Method RECALCULATE_ITEMS</u></b> Setting the Flag CH_X_RECALCULATE.  If there is change in the Incoterms field at PO Header.
    In these BADI's I am checking if there is any change in the above mentioned fields. It retrigger the Pricing.
    I have implemented one more <b>BADI (ME_PROCESS_PO_CUST-Method PROCESS_SCHEDULE)</b> which will trigger the pricing process, If we change the delivery date. This will pick the current delivery date and EXPORT it to memory ID which will be later IMPORTED to pass on this date to pricing header based on which the Pricing will be done on the changed delivery date. ( I hope I am correct here )
    I have a pricing routine for one of the condition type in pricing. I am exporting the changed delivery date to the routine and replacing the value of KOMK-PRSDT with this new delivery date.
    The issue is, When I do changes for the first time the pricing is working correctly. And I am able to see the PO field values for which the condition record is matched in the pricing analysis .But when I am saving the PO and again changing the values of Delivery date and any one of the fields mentioned. Pricing Analysis shows the same old values of PO fields for which the condition records were matched on last pricing cycle.
    Please let me know where I am wrong or where I can correct to display the current values of PO fields for which the condition records matched in the Pricing Analysis.
    Regards,
    Mayank
    PS : Points will be rewarded for all the helpful posts.
    Message was edited by:
            Har Mayank Sahai
    Message was edited by:
            Har Mayank Sahai
    Message was edited by:
            Har Mayank Sahai

    Try this...
    After importing the memory fields use FREE to free the memory....
    That will solve your priblem...
    Reward if helpful...

  • Pricing Issue Pricing Analysis - BADI ME_DEFINE_CALCTYPE

    Hi Guys,
    My requirement was to trigger new pricing on change of Delivery Date. I have to retrigger pricing only if there is any change in fields EKKO-INCO1, EKKO-INCO2,EKET-EINDT, EKPO-MATNR and EKPO-ADRNR.
    For the same I have implemented three badi's and one pricing routine.
    BADI's are -
    ME_DEFINE_CALCTYPE - Method DEFINE_CALCTYPE : Setting the Flag CH_X_LF_CALCTYPE If there is difference between the old value and new value of Fields mentioned above.
    ME_CHECK_ALL_ITEMS - Method RECALCULATE_ITEMS Setting the Flag CH_X_RECALCULATE. If there is change in the Incoterms field at PO Header.
    In these BADI's I am checking if there is any change in the above mentioned fields. It retrigger the Pricing.
    I have implemented one more BADI (ME_PROCESS_PO_CUST-Method PROCESS_SCHEDULE) which will trigger the pricing process, If we change the delivery date. This will pick the current delivery date and EXPORT it to memory ID which will be later IMPORTED to pass on this date to pricing header based on which the Pricing will be done on the changed delivery date. ( I hope I am correct here )
    I have a pricing routine for one of the condition type in pricing. I am exporting the changed delivery date to the routine and changing the value of KOMK-PRSDT with this new delivery date value.
    The issue is, When I do changes for the first time the pricing is working correctly. And I am able to see the PO field values for which the condition record is matched in the pricing analysis .But when I am saving the PO and again changing the values of Delivery date and any one of the fields mentioned. Pricing Analysis shows the same old values of PO fields for which the condition records were matched on last pricing cycle.
    Please let me know where I am wrong or where I can correct to display the current values of PO fields for which the condition records matched in the Pricing Analysis.
    Regards,
    Mayank
    PS : Points will be rewarded for all the helpful posts.

    hi this is the code:
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
      DATA:   RE_DATA TYPE MEPOITEM,
              IM_DATA TYPE MEPOITEM.
         CALL METHOD IM_ITEM->get_data
         RECEIVING
            RE_DATA = RE_DATA.
    MOVE 'B' TO RE_DATA-calctype.
    CALL METHOD IM_ITEM->set_data
             EXPORTING
                IM_DATA  = RE_DATA.
    endmethod.
    Upon creation of PO error message prompt
    'Data from Business Add-In ME_PROCESS_PO_CUST not adopted'

  • Pricing Routine for Purchase Order (VOFM)

    Hi,
    I just create a price routine (VOFM->Pricing) for purchase order in order to clear some condition types (for example ZR97) in item conditions. In the routine, I just check the xkomv-kschl, if it's ZR97, clear xkomv, it works in routine itself, but after back the main program(ME21N), it's been reset as before, so there is still condition type 'ZR97' in the current purchase item.
    Any idea?!
    Thanks in advance

    Hi,
    Keep a debug point check if the routine is getting called or not and also check whether the values is actually clearing the value xkomv.
    Sometimes xkomv may get cleared but actually the value may be getting reset at the PO level. Check which variable is the one that is actually getting filled in the PO
    Regards,
    Narayani

  • Pricing Routine - unable to enter new net price in sales order

    Hi all,
      I have a routine 993 in sales order which is in Column 'Bas Type' in pricing procedure .  The routine has statement like this that calculate the unit price:
      If xkomv-kbetr is initial.
            xkomv-kbetr =  komp-netwr /  kmeng  
    Endif.
    This calculate the net price which appear in the column 'Amount/Net Price.   In the order, the user can change the net price in column 'amount'.  However, if i remove the line  "If xkomv-kbetr is initial",   the user can change the amount, but the amount value will stay as the original amount.  I don;t understand why this happen.   I have been debugging saplv61A (FM Pricing) but unable to get the flow.   Can anyone pls provide guidance ?
    Thanks
    Joyce

    Hi Joyce,
    I'm just wondering how you solved this issue - would it be possible to post a solution please?
    I have a similar issue (KBETR field is overwritten, after I change it in my VOFM routine)
    I posted my question here:
    VOFM (Pricing Condition) FREIGHT - unable to edit Amount value (KOMV-KBETR)
    but haven't received any replies!
    Would appreciated any help you can offer.
    Thanks.

  • BADI for Purchase  Order

    Hi,Friends
    I Want to Implement BADI , Which is already available in SAP.
    The Path for BADI is given below.
    SPRO->SAP Reference IMG->Materials Management->Purchasing->Business Add-Ins for Purchasing
    Name of BADI
    1 Control of Pricing Type: Additional Fields : ME_DEFINE_CALCTYPE
    2.Run Through Items Again in the Event of Changes in EKKO : ME_CHECK_ALL_ITEMS
    This enhancement is about Transaction Code ME23N for creating Purchase Order.
    I am not getting what exactly this BADI does?
    while creating purchase order and Price determination process ,When i define Incoterms at Header level i want to change condition type for Item Level according to our requirement.
    my problem is that , i don't have parameters to pass condition types.
    can anybody tell me the solution?

    Hi archana,
    actually i want to use the same BAdi and method (PROCESS_ITEM).
    Question: did you use parameter GET_HEADER of method PROCESS_ITEM ?
    my problem: i want to read BSART from MEPOHEADER-data and according to result i want check MEPOITEM-data (here: WEPOS)
    ls_mepoitem = im_item->get_data( )
    works, but i did not find out how to use
    ...->get_header( )
    If you used it, can you paste© your source code ???
    Thanx a lot !
    Jörg
    P.S. it's my first BAdI
    -- no more help needed ! Problem solved by adding own post!!! ---
    Message was edited by: Jörg Sauterleute

  • Pricing condition,automatic display without doing VK11 firstly, how ?

    Hi all, another question.
    I have a pricing condition in my sale order. and its value is determined by Pricing Conditions Routines with Conditions Value.
    How can it automatic display in the condition of my sale order, without doing VK11 firstly.
    My english is poor, so I hope u can understand these.

    Hi
    As I said in my previous thread , go to VOFM->Pricing, and check in the requirements if any standard requirements are meeting your requirement or not .If it is not meeting then create a new requirement with the help of  technical consultant.  and assign the requirement  in the Pricing  procedure requirement feild for the condition type and then check wheather it is capturing the price or not in the sales order and billing documents.
    Regards
    Srinath

  • Import purchase-EXIT /BADI

    Dear All,
    Scenario:
    In import PO you are well aware that CVD condition types are used...now against these condition types we can maintain Custom vendor code (directly in PO or can flow from any condition record)...now we have four custom vendor codes in our system...user wants that in header level in PO they will enter a certain data in a customized field...based on that entered data system will automatically determine the custom code against the custom condition types i.e. lets say if user enter A at that customized field then system will automatically determine the custom code for Kolkata against the custom condition types or if user enter B at that customized field then system will automatically determine the custom code for Mumbai against the custom condition types.
    Questions:
    Whether any Exit / BAdI present in the system to solve this scenario?What will be the logic?
    Regards,
    Indranil

    Hi Indranil,
    Try these exits:
    Enhancement     LMEKO001     Extend communications structure KOMK for pricing                    
    Enhancement     LMEKO002     Extend communications structure KOMP for pricing     
    Badi:                
    ME_DEFINE_CALCTYPE                         Control of Pricing Type: Additional Fields
    Thank you,
    Thanks,
    AMS

Maybe you are looking for

  • Macbook Pro issues, Randomly logs me out, takes several attempts to boot from sleep

    Hi there, I bought my macbook pro (2013, I5) about 9 months ago. Recently I've been having issues where start-ups will take several attempts before I can finally load my desktop. Coming out of sleep, oftne times I can't move my mouse or type into the

  • Comments Posting w/o scripting - Lost control over my JSP flow

    Hi all, Imagine you have a page where users can view comments from other users. And imagine that members can also post comments, but non-member guests can not. You want everyone to get the same page, but you want members to see more things on the pag

  • Oracle 9i Lite Installation

    Hi All, I am trying to install 9iLite on windows 2000, can any one help out with the installation process, I have installed 8iLite on 2000 but had some problems while running it, then I came to know that 8iLite is not certified on 2000 so had to shif

  • Can not burn to dvd or blue ray disk

    I've attempted to share a 35 minutters video to use with a blue ray disk, but I continue to get the following message: The operation couldn't be completed. (com.apple.Compressor.CompressorKit.ErrorDomain error -1.) I have OS 10.10.2 and FCPX version

  • IDT High-Definition Audio Driver Update Failed

    HP Pavilion p6-2378 PC - Windows 8.1 Updated recommended audio driver on May 12, 2014, and it failed to install. SoftPaq number: SP66216 Version: 6.10.6491.0Dp1 Tried many times again, failed each time.  Rebooted three times - nope.   Checked cables.