BADI ME_PROCESS_PO_CUST Implementation is not called

Hello,
I have created a test implementation(local object) for BADI ME_PROCESS_PO_CUST and implemented the Process_Item method to compare item price with material master commercial price. I have also activated the implementation.
When I create a PO using ME21N, this implemenation is not getting called. I have put a breakpoint in the implementation but processing doesn't stops here. Also I am not able to find 'Where used' of the BADI name or the interface 'IF_EX_ME_PROCESS_PO_CUST'.
What are the reason for above behaviour? Do we maintain this BADI name in some Customizing Table?
Please help.
Regards,
Shubham

i did the same as you did and the code is clearly getting triggerred.
Samle Code:
  DATA : l_header TYPE REF TO if_purchase_order_mm.
  DATA : l_conditions TYPE mmpur_tkomv.
  DATA : l_item LIKE LINE OF l_conditions.
  DATA : l_data TYPE mepoheader.
  CALL METHOD im_item->get_header
    RECEIVING
      re_header = l_header.
  CALL METHOD l_header->get_data
    RECEIVING
      re_data = l_data.
  CALL METHOD im_item->get_conditions
    IMPORTING
      ex_conditions = l_conditions.
  CALL METHOD im_item->set_conditions
    EXPORTING
      im_conditions = l_conditions.
if i put break-point on any of these methods the implementation is getting trigerred.

Similar Messages

  • BADI - "REDUCT_TRIP_AMOUNT" implementation is not working

    Dear all,
    While creating or changing trip data i got one badi "REDUCT_TRIP_AMOUNT".  i was implemented badi.
    Badi implementation is not working. There was hard code break point "BREAK-POINT." i was writen in badi , But is not comes in way of execution.
    Since BADI name i am getting, BADI implementation is not working..
    Let me know any config required or what...
    Regards,
    Vipul

    Hello Vipul,
    I am having the same problem, I am trying to implement the BADI ''REDUCT_TRIP_AMOUNT'' for deducting the TRIP Amount for leave days , but when I put the hardcode breakpoint , it is not stopping anywhere.
    Kindly help .
    Regards,
    Vishal Chauhan

  • PROCESS_HEADER not fired in BADI ME_PROCESS_PO_CUST

    Dear experts,
    I face the problem, that the method PROCESS_HEADER of BADI ME_PROCESS_PO_CUST is not fired, when I am changing po header text. My requirement is to set a customer po header field, whenever a po header text is existent.
    Does anybody know, if this is the standard behaviour and how I can work around it?
    Thanxs

    Hi Aparna,
    actually I tried this, too.
    In the methods Check and Post (which both are fired normally) I coded my requirements, but in this methods I faced the problem that I was not able to save my programatic header field changes. (Even with the trick to cast the IM_HEADER to CL_PO_HEADER_HANDLE_MM to allow changes of internal attributes, used in method set_data(), any changes of po header fields were not saved.) But maybe I am wrong with my implementation? You may have a look:
      DATA: lv_val_id TYPE thead-tdid.
      DATA: lv_val_name TYPE thead-tdname.
      DATA: lv_val_object TYPE thead-tdobject.
      DATA: p_mepo_header TYPE MEPOHEADER.
      DATA: it_tline TYPE TABLE OF TLINE.
      DATA: lv_cl_po_header_handle_mm TYPE REF TO CL_PO_HEADER_HANDLE_MM.
    check existents of po header text
      lv_val_id = 'F09'.
      p_mepo_header = im_header->get_Data( ).
      lv_val_name = p_mepo_header-ebeln.
      lv_val_object = 'EKKO'.
      CALL FUNCTION 'READ_TEXT'
      EXPORTING
          client = sy-mandt
          id = lv_val_id
          language = sy-langu
          name = lv_val_name
          object = lv_val_object
        TABLES
          lines = it_tline
        EXCEPTIONS
          ID = 1
          LANGUAGE = 2
          NAME = 3
          NOT_FOUND = 4
          OBJECT = 5
          REFERENCE_CHECK = 6
          WRONG_ACCESS_TO_ARCHIVE = 7.
    any text there, then update customer po header field
      IF sy-subrc = 0.
        p_mepo_header-zzfield = 'X'.
      else.
        p_mepo_header-zzfield = ' '.
      endif.
    QD
      lv_cl_po_header_handle_mm ?= im_header.
      lv_cl_po_header_handle_mm->my_cust_firewall_on = 'X'.
      im_header->set_Data( p_mepo_header ).
      im_header->set_changed( ).
    po is still same as before and field zzfield was not updated.

  • Custom tab data not saving in ME22N w/ BAdI ME_PROCESS_PO_CUST

    Hello all,
    I have implemented BAdis ME_PROCESS_PO_CUST & ME_GUI_PO_CUST and created a custom tab at the header level in ME21N/ME22N. I have fields such as Delivery Date and Ex Factory Date in my tab.
    We are able to put data in these fields and have that data populate their respective fields in the Purchase Order.
    Our users would like to be able to run ME22N and select certain line items and have only those items changed with the data from the custom fields. 
    So, my question is how do I handle line selection in the context of these BAdIs?  Is there a way to know which lines have been selected and then only change the data in those items?
    I have looked in Class CL_PO_ITEM_HANDLE_MM for an attribute or method that might help but I haven't found anything as of yet. 
    I have found that the field MEPO1211-TCSELFLAG is set when a line is selected in ME22N.  However, I haven't found a way to work with it.  It doesn't get passed to any of the methods in the BAdIs, as far as I know. 
    January 27, 2012  **************
    We were able to capture the lines selected by using code from method mass_change in Include LMEGUICJK, Function Group MEGUI.  The lines are in the lt_models table. 
    So, now my issue is getting data to save in ME22N.  When I put data in my custom tabs and select a line, the data gets changed on the screen but does not save.  It does work when I make a change in another field, like changing the description for instance.  I'm using the set_changed method in Process_Header from ME_PROCESS_PO_CUST but it doesn't work. 
    I'm getting the idea that I'm the first ABAP developer to try this...
    Thanks for any help.
    Kind Regards,
    Chris
    Edited by: Chris  Mowl on Jan 11, 2012 10:33 AM
    Edited by: Chris  Mowl on Jan 11, 2012 4:24 PM
    Edited by: Chris  Mowl on Jan 27, 2012 10:57 AM
    Edited by: Chris  Mowl on Jan 27, 2012 2:00 PM

    Hi,
    Checkout the below link :
    <link to blacklisted site removed by moderator>
    Shailaja Ainala.
    Edited by: Thomas Zloch on Jan 28, 2012 9:06 PM

  • BADI ME_PROCESS_PO_CUST - DOES NOT CLEAR OUT ERROR

    In ME21N I want to validate the field Commodity Code - STAWN. I have used the BADI ME_PROCESS_PO_CUST*
    . Have used get_foreign_trade() in the PROCESS_ITEM method . I am able to throw an error . It is doing it but*
    after throwing error then when we give a valid Commoditycode too it is still showing the error and not clearing the error  .*
    As suggested by Dean Q I used   INCLUDE mm_messages_mac,
    tried im_item->set_foreign_trade( ls_mepo_eipo)  still when a valid Commodity code is entered after an invalid one  it does not clear out the error. In fact on checking using break-point I found that the second time it does not enter into the method  PROCESS_ITEM.    Any help is welcome
    Nivedita

    Hi,
    In SE18 give ME_PROCESS_PO_CUST as the enhancement spot and display. At the left side of the screen you can see the badi definition ME_PROCESS_PO_CUST. Expand the tree and double click on implementations. You can see the enhance implementations created. Double click on the enhancement implementation and in that screen there is a check box 'Implementation is active' and field 'Effect in current client'.
    If you know the enhancement implementation name(not the badi implementation name), you can check it directly from se19.
    Regards,
    Poornima

  • BADI ME_PROCESS_PO_CUST is not triggering while creating/changing PO

    Hi,
    I am new to BADIs,
    I am trying to implement BADI ME_PROCESS_PO_CUST in ECC 6.0. I have done the implementation and activated. I kept a break point in PROCESS_ITEM method, but the BADI is not triggering while creating or changing the PO. Please advice me what could be the reason behind this?
    I used the SQL trace but i couldn't get the BADI ME_PROCESS_PO_CUST in the list.
    thanks in advance
    Regards
    Jagadish

    hello jagdish,
    implement   this user exit.....
    MM06E005...
    go to     EXIT_SAPMM06E_017   in that   then you can put a break point in the user defined function module.....
    or use
    BREAK  'C5133392'  (use your user in place of C5133392)....it will stop here while creating PO or changing PO...
    now you can do whatever you want to do in create or change PO using this function exit......
    perform the validations on import parameters.....to create  or change ....and activate the project....
    hope this will give you some idea and help

  • Implementing Badi ME_PROCESS_PO_CUST

    Hi all,
    I'm trying to implement the BADI ME_PROCESS_PO_CUST, the method PROCESS_ITEM, and I'm trying to change the field ls_positem-lebre, but it doesn't works. I've seen that this field is in the mepoitem_tech structure in the method set_data and it restores this value to his old value, anyone knows how to change this field?
    ..and another question...
    In the same BADI, I'm trying to change the sale's area in the shipping data, but when I call the method set_shipping_data there is a firewall that only allows me to change the fields vstel, lprio, vsbed, route and ablad. Is there any way to change the other fields?
    Thanks,
    Xavi

    Hi,
    By implementing the above badi you can change limited fields at item level.
    I am using this to change the following and it is working fine for me.
    a) Chaning field -- PLIFZ and RESWK and NETPR based on some header conditions
      DATA  : LS_MEPOITEM TYPE MEPOITEM.
      DATA  : ZZPLIFZ TYPE EKPO-PLIFZ.
    Get the Item data
        LS_MEPOITEM = IM_ITEM->GET_DATA( ).
         LS_MEPOITEM-PLIFZ = ZZPLIFZ.
         LS_MEPOITEM-NETPR = V_NETPR.
    Set the Item data
        CALL METHOD IM_ITEM->SET_DATA
          EXPORTING
            IM_DATA = LS_MEPOITEM.
    Try this.
    I hope this will help.
    Message was edited by: Lanka Murthy

  • Issues while creating implementation for BADI  "ME_PROCESS_PO_CUST"

    Hi Group,
    I have issues while creating implementation for  BADI "ME_PROCESS_PO_CUST".
    I tried to create implementation for the above mentioned BADI but, I was getting an error like this:
    "Interface implementation IF_EX_ME_PROCESS_PO_CUST does not exist".
    I want to implement this BADI and so, ideas/views at the earliest will be appreciated.
    Please let me know how to overcome this error.
    Thanks,
    Vishnu.

    Hi,
    Have you activated the class which is implementing the interface? (in transaction SE19 you should see class name)
    Best regards,
    Wojciech

  • HR_IN_LOANS_VALIDATE badi is not called while infotype 45 is changed

    Hi all,
    I have activated badi:HR_IN_LOANS_VALIDATE implementation: ZHR_VALIDATE and its is working fine for creating Infotype 45 (INS) but when i change(MOD) it is not called. ie it does not enter the badi implementation code.
    please see if you can help me.
    thanks
    Ujjaval

    hi IA,
    I have tried different combination in SWEHR3
    E     Business event     1001     Relationships     A025     Is attended by     INS          0     PDOTYPE_E     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     BOKF     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     BOKP     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     BOKW     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     CNOW     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     CPRB     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     BOKF     0     PDRELA_025     MODIFIED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     BOKP     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     BOKW     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     CNOW     0     PDRELA_025     CREATED
    i did same thing in SWEHR2....still no luck...
    please guide me if have any alternative options

  • BAdI HRPAD00INFTYDB is not called

    Hi there!
    I encountered the problem that the BAdI HRPAD00INFTYDB is not called on any update of infotype 2002. The mentioned infotype is updated by the report RPTARQPOST, after this update I want to have some code executed in th method UPDATE_DB. We are using ERP2005 an EP7.
    In addition I implemented my code in BAdI HRPAD00INFTY, too. But this one is not called either.
    Maybe somebody could tell me if one of the BAdI are called at all!?
    Thanks and best regards,
    Michael

    Hi,
    Have u activated your BADI?
    Go to se19 n create implementation for the concerned badi there.
    Click on the method in which u want to add ur code..save code and check it.
    Go back and then activate the BADI.
    Regards,
    Manoj.

  • BADI ME_PROCESS_PO_CUST not getting triggered

    Hello Experts,
    i implemeted BADI ME_PROCESS_PO_CUST to ZME_PROCESS_PO_CUST.
    there is only one badi implemented for this.
    And it is working fine in development and transported to Quality system.
    in Quality system this badi itself is not getting triggered.
    Please help me any body have any idea about this.
    Thanks in advance
    Mahammad Farooq

    Hi,
      check the below thread:
    LINK[BAdi - ME_PROCESS_PO_CUST  not trigger.;
    if every thing is active then the only issue could be multiple implementatins
    check in table SXC_EXIT to check the status .
    if there are any inactive implementations delete all and put in a request and transport to you QA system.
    Regards,
    Himanshu

  • BADI FI_INT_CUS01 method INT_PRINT_OPTIONS not getting called in RFINTITAR

    Hi,
    I have implemented the BADI FI_INT_CUS01 to set the Print archive mode (Storage mode) to '3' (print & archive) for the FINT transaction (program name: RFINTITAR), using the method INT_PRINT_OPTIONS. But the method INT_PRINT_OPTIONS is not being called in  the program RFINTITAR anywhere. So the BADI implementation is not being called up, so not able to change the Print archive mode to '3'. Please let me know if I'm missing anything.
    Thank you..
    Lakshmi

    Carin,
    Using the method INT_ADD_ITEMS is possible to filter, displaying only the items required.
    See also SAP note 736223 .
    Regards,
    Fabrício Fernandes Aguiar

  • BADI implementation is not working in background for MRRL

    Hai frnds,
    BADI: MRM_WT_SPLIT_UPDATE is used for deducting withholding tax in MRRL(Invoice verification). This BADI was implemented and working fine in foreground, but not working in background.
    After implementing the BADI, the standard method of calculating TDS(from vendor master) is over written by BADI implementation.Now standard deduction is also not workijng in background.Plz help me to solve it.
    Bala.V

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • BADIs are not calling in BUPA_MAIN

    Hello Friends,
    I need to populate some Z fields when BDOc is flowing. I thought of writing this logic in BADIs (CRMXIF_PARTNER_MAP & CRM_DATAEXCHG_BADI ) . But these BADIs are not calling in debugging to check the data.
    Please let me know do i need to do any settings to trigger these BADIs
    Thanks & Regards
    Dinesh

    Hi,
    CRMXIF_PARTNER_MAP is good for IDoc fields to be filled in (in or outgoing message).
    Instead of thist try maybe with BUPA_GENERAL_UPDATE.
    Regards, Robert

  • Badi implementation error after implementing oss note 745168

    Hi All,
    i implemented oss note 745168 to fix badi ME_PROCESS_REQ_CUST by doing step 1 & 2 manually..
    during the implementation of step 3, there was error but we just proceeded..now my whole badi consists error and can't be activated but the definition works just fine..
    can anybody pls help

    Hello Babita,
    For which version are u applying this note?? Is it for 4.7??
    I checked the note  and for r/3 release 4.7 there are two correction instructions.
    Implement them in the following order
    1. Correction instruction 434275
    2. Correction instruction 434276
    Please make sure you have implemented both corrections.
    In code comparison editor you can check the code difference by clicking the "next code difference" tab in toolbar. It will tell you which code changes are missing.(You can see the required code changes just by clicking the correction instructions 434275 and 434276).
    Hope this will helpful.
    Regards,
    Bhavana

Maybe you are looking for

  • Gen 2 I pod touch is not recognized by windows 8 computer

    Ever since the Apple I tunes upgrade my Gen 2 I pod wont sync with my windows 8 computer. The computer recognizes the device but I tunes does not recognize the device.

  • Oracle 11g client / oracle 10g express edition in one computer

    Hi All, I already have Oracle 11g Client installed in my computer. I wanted to Install Oracle 10g Express Edition in the same computer. So that I shall work with that even when I am not in the network. My Question is : Will installing both of 11g Cli

  • Error in XPRA_EXECUTION phase in instalation BI_CONT 3.53

    Hello, After installing SAP Netweaver 04 as ABAP i am Installing Add-on BI_CONT Rel.353 : Import of the queue - via SAINT Tcode. Now it is in error in XPRA_EXECUTION Phase of pkg SAPKIBIFQ4 BI_CONT 353: patch 0014. Error is in Method Execution step:

  • Is there a way to bump up the format?

    Hi. I'm making particles for a standard def movie that will eventually get bumped up to high def. Is there a way to output my standard motion quicktimes, onto which I've attached particles, at 1080i without losing resolution? Is there any degree of r

  • Officejet 8600 Plus "scanner reported error" Mac scanning

    I recently purchased the Officejet 8600 Plus and have run into problems scanning. When scanning using the ADF, I frequently get a message saying, "Scanner reported an error. The scan was not completed because the operation was cancelled while scannin