BAdI for Account Search

Hi All,
I need a BADI in CRM 5.0 version for Account Search using EEWB fields.
I found a BADi CRM_ACC_SEARCH and have created a implementation, but the badis is not getting triggered during the search...
Let me know is there any other way to trigger the BADI or is there any means for using EEWB fields in Acc search.
Thanx,
Sivasankar

Hi Sivasankar,
There is a generic approach to identify all -classic- BAdIs called during program execution. You may use that approach to search for appropriate BAdI around Account Search:
trx SE24
CL_EXITHANDLER=>GET_INSTANCE method
  call method cl_exithandler=>get_class_name_by_interface
    exporting
      instance                      = instance
    importing
      class_name                    = class_name
    changing
      exit_name                     = exit_name
    exceptions
      no_reference                  = 1
      no_interface_reference        = 2
      no_exit_interface             = 3
      data_incons_in_exit_managem   = 4
      class_not_implement_interface = 5
      others                        = 6.
  case sy-subrc.
    when 1.                                "<<<<<<<<<<<<<<<<< your external break-point here: then check EXIT_NAME variable
      raise no_reference.
Setting a break-point in this method will have program stop each time system checks if an BAdI implementation exists.
Hope this will help you
Best regards
Walter

Similar Messages

  • Exit/Badi for Accounting Document

    Dear Friends
    Is there any user exit/BADI for accounting document. My requirement is quite simple which you would also faced in many implimentation. Client wants number ranges business area/plantwise. I was just thinking as plant/business area is a line item field it may be little difficult to have different number range controll at that level, so I thought we could use user id as the import parameter. But these is possible once I get any user exit/badi for number range change. We dont want to create so many document type also.
    Thanks and Regards
    Pankaj Gupta

    Hi Marta,
    Check these notes
    SAP Note 1259505 - FAQ: New cancellation procedure in SD,
    SAP Note 400000 - FAQ: Transaction VF11: Cancellation of SD billing documents
    See with attention note 1259505 question 4. It says
    Most of the userexits in the SD-FI interface (see note 301077) will not be
    performed.
    So, try to do it with BTE's
    Sorry, try with USEREXIT_PRICING_COPY in program RV61AFZA.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Nov 21, 2011 9:15 AM

  • BADI for Claims search in trade promotion management

    Hi Experts,
    I am enhancing the Claims search in trade promotion management with a custom field. I added a custom field in the search screen of claims.
    I want to filter the records based on that custom field. The component is BT311S_CSR and the search query is BTQCSR.
    Is there any BADI for claims so that I can filter the records.
    I tried to put a breakpoint in the badi CRM_BADI_RF_Q1O_SEARCH and searched but it is not stopping.
    Does this badi works for claims? Or first do i have to create a implementation with the filter object as BTQCSR then try to check whether it will stop in the badi while searching the claims.
    Please suggest me.
    Regards,
    Dinesh.

    Hi Dinesh,
    Now this becomes tricky. Since your requirement is very specific there is no way that standard sap can help. You may end up in enhancing n number of classes.
    I can propose a solution though Please put of in front of your business/ functional team and then go ahead..
    Now we will change our approach...Please follow below steps:
    1. Add a altogether new field to your claim transaction using AET for sales office (description as 'Sales Office').
    2. Make this field search and result relevant.
    3. Whenever a sold to party is selected for claim transaction, based on the sold to party you would set value of this field.
    4. Since your field is search relevant it will automatically appear in your search query (control this in view configuration.)
    5. You may or may not display this field to end user in claim detail screen, You can control this by configuration.
    6. Depending on your requirement you can show/hide standard sales office field in search query.
    If you follow this approach then it will serve the purpose.
    Trust this solves your issue. Give points if it helps.
    Regards,
    Bhushan

  • Badi For Account Assignment Category in me21n

    Hi All,
    I am trying to implemnt badi for me21n for assigning default account assignment category as  E.
    i got the badi for  ME_PROCESS_PO_CUST .
    But the the problem is i dont find account assignment category field(KNTTP) in trhe metyhods tab.
    No othe badi is getting triggered.
    Please help me out in  this regard.
    Thanks and regards
    Ibrahim

    hi,
    i hope this will help you.
    DATA:
             ls_acc TYPE REF TO if_purchase_order_account_mm,
             ls_item     TYPE REF TO if_purchase_order_item_mm   ,
             ls_hdata    TYPE mepoheader                            ,
             ls_header   TYPE REF TO if_purchase_order_mm           ,
             ls_idata    TYPE mepoaccounting,
             ls_data     TYPE mepoitem_data    .
      DATA : lv_werks TYPE wrf1-locnr .
      DATA : vlfkz  TYPE wrf1-vlfkz.
      DATA : matkl  TYPE mara-matkl.
      DATA : ls_ana   TYPE zmm_ana_hesap.
      DATA : lv_okset TYPE c.
      ls_acc = im_account .
    *get item from account
      CALL METHOD ls_acc->get_item
        RECEIVING
          re_item = ls_item.
    *get item header
      CALL METHOD ls_item->get_header
        RECEIVING
          re_header = ls_header.
    *- Get item header data
      CALL METHOD ls_header->get_data
        RECEIVING
          re_data = ls_hdata.
    *- Get item data
      CALL METHOD ls_item->get_data
        RECEIVING
          re_data = ls_data.
    *- Get account data
      CALL METHOD ls_acc->get_data
        RECEIVING
          re_data = ls_idata.
      lv_werks = ls_data-werks.
    ***Conversion Exitler
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = lv_werks
        IMPORTING
          output = lv_werks.
      SELECT SINGLE vlfkz FROM wrf1 INTO
         vlfkz
        WHERE locnr EQ lv_werks.
      SELECT SINGLE matkl FROM mara INTO
         matkl
        WHERE matnr = ls_data-matnr.
      SELECT SINGLE sakto INTO ls_ana-sakto FROM zmm_ana_hesap
        WHERE matkl = matkl
        AND vlfkz = vlfkz
        AND bsart = ls_hdata-bsart
    AND knttp = ls_data-knttp
      IF sy-subrc EQ 0 .
        ls_idata-sakto = ls_ana-sakto.
        lv_okset = 'X' .
      ENDIF .
    * buraya lv_check ya da sakto bou015F ise için kosul gelecek
    IF lv_okset IS NOT INITIAL .
    *- Set item
        MOVE-CORRESPONDING ls_data TO ls_idata .
        CALL METHOD ls_item->set_data
          EXPORTING
            im_data = ls_idata.
      ENDIF.
    ENDMETHOD.

  • Badi for account details not triggering twice

    Hi ,
    I m creating a BADI for duplicate check in account details.My requirement is in the account details
    it should check for the account details like first name , last name , email id if it exists it should throw an error message if not it should save ....
    Im implementing a BADI for this req  BUPA_ADDR_CHECK  but the particular BADI is triggering only once ....So the logic for duplicate check   is failing....
    Any methods by which the BADI can be triggered every  time
    Any suggestions .......
    Regards,
    Sijo...

    Hi Sijo,
    The fields that are available for duplicate checks need to be decided by you. There is no fixed interface.
    You need to mark in the duplicate check customizng, which fields you want, and they will automatically be taken up by this BADI ADDRESS_SEARCH. You can have a look at the function module ADDR_DUPLICATE_CHECK_FOR_BAPI that makes use of the duplicate check. The parameter T_SEARCH_FIELDS contains fields -
    TABLENAME
    FIELDNAME
    CONTENT
    These can hold any table, any field. Yuor implementation would need to use the content and then check it.
    Hope this helps.
    Cheers,
    Rishu.

  • BADI for Activity Search Results

    Hi,
    I am in position to restrict the Activity search results. Please let me know the BADI does this job. I have tried already with BADI
    CRM_BADI_RF_Q1O_SEARCH and didn't work.
    Thanks,
    Bobby

    Hi Bobby,
    Need to implement the badi CRM_BADI_RF_Q1O_SEARCH and assign the filter BTQACT for activity search.
    You need to implement the note 1232008 to get the parameters for FM CRM_BSP_OIC_1O_SEARCH_FROM_RF.
    Inside the BADI implementation use this FM CRM_BSP_OIC_1O_SEARCH_FROM_RF to get all the activities and then restrict it.
    Thanx,
    Siva.

  • Badi For Case Search

    Hi ,
    I am adding an additional search  for Case search in CASEWORKER Business Role .
    Do any one has any idea for which Badi is used ? If yes please do share with me .
    Regards
    Vinayak

    Arun,
    Thanx for the reply.
    But in CRM 5.0 the structure is not available, we have a methoth Query which has the structure BUS000_EEW it contains all the EEWB fields.
    My problem is the BADI is not getting triggered..
    Siv...!

  • User exit / Badi for Account Assigned Sales Order billing

    We are planning to collect the royalty in the condition type.We want to accumulate the condition  in the Internal Order.After certain period we want to close the orders .Can any one suggest the Userexit / Badi for this type of Billing / Pricing
    Thanks
    Jeevan

    Hello,
    please have a look in the customizing transaction SPRO:
    >  SPRO
        > Sales and Distribution
           > System Modifications
              > User Exits
    Here you can find the documentation of all Userexits for SD.
    I hope that the information are helpful.
    Regards
    Claudia
    If you are satisfied with the answer, please give Reward Points

  • BADI for HR search help PREM

    Hello folks,
    I have a requirement here. I have appended a search help ZIPPREM to the standard HR search help <b>PREM</b>.
    And I had implemented  BADI <b>HRPAD00_PREM</b> in order to get values based on the custom search help.
    Here is the code for the same.
    METHOD if_ex_hrpad00_prem~get_shlps.
    *=======================================================================
    * data declaration
    *=======================================================================
      DATA: ls_sel_shlp LIKE LINE OF sel_shlp.
    *=======================================================================
    * set attributes for selection table
    *=======================================================================
      ls_sel_shlp-sign   = 'I'.
      ls_sel_shlp-opti   = 'EQ'.
    *=======================================================================
    * assign search helps dependent on the relevant transaction
    *=======================================================================
      CASE sy-tcode.
        WHEN '/IRM/IPSICIP'.
          ls_sel_shlp-low = 'ZIPPREM'.
          APPEND ls_sel_shlp TO sel_shlp.
        WHEN '/IRM/IPSICCP'.
          ls_sel_shlp-low = 'ZIPPREM'.
          APPEND ls_sel_shlp TO sel_shlp.
        WHEN '/IRM/IPSIPA'.
          ls_sel_shlp-low = 'ZIPPREM'.
          APPEND ls_sel_shlp TO sel_shlp.
        WHEN ', /IRM/IPSICPP '.
          ls_sel_shlp-low = 'ZIPPREM'.
          APPEND ls_sel_shlp TO sel_shlp.
      ENDCASE.
    *=======================================================================
    * run standard coding in addition
    *=======================================================================
      standard = 'X'.
    ENDMETHOD.
    But my requirement is I want to hide or deny access to all other tabs (search helps) except the custom one for PREM.
    How can I do that?? Please help.
    Thanks

    Hi Naren,
    It think You can get rid of the unwanted tabs by implementing the BAdI 'HRPAD00_PREM' itself.
    Regards,
    Suresh Datti

  • BADI for BP Search

    hi experts,
    we are implementing CRM 2007, we have already implemented CRM 4.0, Winclient, in CRM 4.0 the BADI - CRM_IC_BP_SEARCH, is triggered for duplicacy check in winclient when agent tries to check for BP existing or not.
    as CRM 2007 is having Web interface and runs on BSP applications, in this case how Logic of Duplicate check will happen.

    Hi,
    Are you implementing Interaction Center in CRM2007 ?
    In that case the duplicate check functionality can be activated in the Account Identification Profile: IMG - CRM - Interaction Center Webclient - Master Data - Define Account Identification Profile.
    The BADI's ADDRESS_SEARCH and ADDRESS_UPDATE need to be implemented.
    Regards,
    Gert

  • BAdi for Search Criteria in IC

    Hi Experts,
    I am working on the UI of the IC, i have to implement a BAdi for the search criteria in the Account Identification -> ERP Sales Document , I am trying this badi "CRM_BUPA_IL_SEARCH" but this is not getting triggered.
    Can anyone suggest any name of the BAdi for the same ?
    Thanks in advance,
    regards,
    sharad,

    Hi sharad,,
    if you want to use your badi to search a object you have to use as a search bol object BuilHeaderSearchNew. If you are using BuilHeaderSearch(sap standard) it's not working.
    You can define to use the BuilHeaderSearchNew in spro->CRM->INDUSTRY-SPECIFIC Solution->Utility Industries->Setting for User Interfaces->Identification->Define Identification Profiles. Choose your z-profile and in the row Search By BP select the value BuilHeaderSearch. Check if it saves your value, becouse we had a problem with this.
    Or you can use table crmc_iu_md_prof to enter the value BuilHeaderSearchNew directly for your z-profile.

  • User Exit/Badi for G/L account assignment in ME21n/ME22n

    Hi All,
    I need user exit/badi for account assignment in item details for following requirement.
    If user changes G/L account of the first line item then I have to copy same G/L account to all line items.
    Please suggest me suitable user exit for this.

    hello,
    follow the steps.......
    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    u can check the table MODSAP
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u,
    santhosh

  • GL Account Search Help Issue

    We want to change the standard search help of GL Account in the Shopping Cart line item.
    Currently it fetches the value from ECC backend but we need to utilise a custom search help from SRM system.
    Pease let me know how do we do this.
    Thanks.

    Hi,
      You can do this with WD dynamic programming.
      You can do with domodifyview badi for accounting component /SAPSRM/WDC_UI_DO_ACC.
      You need to handle both views 'V_DO_ACCOUNTING' and  'V_DO_ACCOUNT_DETAIL' in the domodifyview badi implementation.
    I am sending the sample  code. How to attach the custom search help dynamically.
      DATA lo_nd_comp_context    TYPE REF TO if_wd_context_node.
      DATA lo_nd_acc_context     TYPE REF TO if_wd_context_node.
      DATA lo_nd_info_acc        TYPE REF TO if_wd_context_node_info.
      DATA lv_value_help_mode    TYPE i.
      DATA lv_value_help         TYPE string.
      " Read Context
      lo_nd_comp_context = wd_context->get_child_node( name = 'COMP_CONTEXT' ).
      " get node info object of accounting node
      IF lo_nd_acc_context IS BOUND.
        lo_nd_info_acc = lo_nd_acc_context->get_node_info( ).
      ENDIF.
      " continue only if node info is supplied
      IF lo_nd_info_acc IS BOUND.
        " get current search help info
        lo_nd_info_acc->get_attribute_value_help(
          EXPORTING
            name            = 'G_L_ACCT'
          IMPORTING
            value_help_mode = lv_value_help_mode
            value_help      = lv_value_help
    " Below this will add the custom search help from SRM .
             lo_nd_info_acc->set_attribute_value_help(
            EXPORTING
              name            = 'G_L_ACCT'
              value_help_mode = 'BUS2121'
              value_help      = 'Z_F4-Your search help'   " you own search help.
      endif.
    Regards,
    Devi prasad

  • IPad clipboard - one reason, why it is so bad for me

    iPad clipboard - one reason, why it is so bad for me
    search for adresses on an app for that and export the found adresses per email;
    THe first task goes well; further adresses (say, I need today three adresses from acertain village) are going wrong. Can anyone consider, why?

    Fourth time, because my first three answers were blowing in the wind, gefressen guzzled by the clipboard or reloading safaripage, the third by notes, never I have seen there have been  hundred of chars eaten by notes.
    1) I have an application (“app”) to search addresses in austria as there is a phone-number connected.
    2) I can generate a contact entry with the result or export it in various channels, say I send it per e-mail to me (for using it on an other device outside iOS or send it to a collegue.)
    3) If there are more than one wanted results, I have to send them one by one.
    4) Looking for the e-mails, they may have a totally senseless content (an earlier clipboard-content) or
    every e-mail has the same content: the first address in the results-list.
    5) Please do not ask me, why this is. I would be glad to hear from you how to stop this behavior of
    iPad (with wich I was really happy for years and which is since month not helpful but the source of nuisance friendly said on every use
    daily, hourly, eight times or so every hour)
    {see https://discussions.apple.com/message/26921591?ac_cid=op123456#26921591}
    And yes I have tried all resettings though not the one to delete all content, perhaps Apple can find a better solution for me (so I thought weeks before).

  • Account search functinality is not working for one user in portal

    Hi friends,
    We have configured E.P 7.0 with CRM 5.0 and configured CRM PCUI business package.
    We have a role called <b>accounts and products</b> in portal. So accounts can be searched in this role.
    Now our severity issue is for one of the super user,for ex su1, accounts search is not working in portal but the same is working in CRM GUI.
    for example if we search for an account 233445(or any other account) in portal its showing no data found but if we search with the same criteria data is displaying CRM GUI.
    We have checked with other 2 super ids. Both ends portal and gui search is working fine.
    Am unable to figure out whats the cause of the issue as search is not working only for one user su1 .
    we have checked by restarting the server also to clear the memory cache.But still search is not working in portal.
    Could anyone of u please advice ASAP as this is severity issue.
    Thanks & Regards
    Sireesha.

    Hi srinivas,
      I have checked both the users credentials,permissions,groups in the GUI and also in the portal.
      Both of the users profiles are assigned as same.
       Could you please advice is there any other way to check it out?
      Regards
      Sireesha.

Maybe you are looking for