How to know if implementation with a filter value exist for a BAdI in code?

Hi all,
Scenario:
I created a BAdI. There will be a button on the UI to call its implementation(s); while if there is no implementation with specified filter value, this button needs to be hidden. Thus I need to know if the implementation exist before calling it.
Question:
In the ABAP code, how to get whether implementation with specified filter value exists for a BAdI?
If it's possible, please help provide code.
Thanks and regards,
Said

Problem solved:
data: r_badi type ref to YOUR_BADI,
          badi_impl_num type i.
  get badi r_badi
    filters
      flt_name = fit_val.
  badi_impl_num = cl_badi_query=>number_of_implementations( badi = r_badi ).
  if badi_impl_num > 0.
    "there are badi implementation(s)
  endif.

Similar Messages

  • ES_CRM_PARTNER_REDETERMIN* with the filter value *BUS2000223

    Hi,
    I have a requirement in which i have to create a Service Request and enter some particular Account ID for it through which any particular Account is assigned to the partner function "Account owner " automatically.
    Then again before saving the user changes the Account ID entered before to some other.As for this Partner Determination settings has been done in the spro.But now the partner function "Account Owner" is not changed accordingly.
    To make this happen i implented an Enahncement Spot ES_CRM_PARTNER_REDETERMIN with the filter value BUS2000223.
    But this implementation is not getting triggered, it triggers only once the first time when we try to create a Service request.And teh partner determination is not working.
    Please, suggest regarding the same.
    Cheers,
    Sharad

    Hello,
    partner re-determination is only available since crm 6.0.
    Please see the online documentation which explains this at:
    http://help.sap.com/saphelp_crm60/helpdata/en/d4/a8f6967c4b46b2bc2c20283a245199/frameset.htm
    Normally it works only for BUS - types which are maintained in table (these entries are also supported)
    COMS_PARTNER_DET:
    BUS2000108
    BUS2000111
    BUS2000230
    BUS2000231
    BUS2000311
    BUS2000312
    Hence at least you have to maintain the BUS2000223 in the table, but I am not sure if it will work.
    Regards
    Rene

  • I already have a new book that is ready to publish as an iBook. In addition I also have an app prepared for this book. Please tell me how to upload this book (title is: "How To Cope...with life") and the app for it into your iBook Authors app so I can hav

    I already have a new book that is ready to publish as an iBook. In addition I also have an app prepared for this book.
    Please tell me how to upload this book (title is: "How To Cope...with life") and the app for it into your iBook Authors app so I can have it offered for sale @$0.99, in your app store?
    FROM: Terry Weber, Email: [email protected]

    https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/bookSignup

  • How to find String associated with some long value.

    My requirement is to know the String associated with the long value, for ex 23423423 is having some value like 'skljflsjf'. Can any body findout soln for the same.
    Thanks
    ~ Chethangowda.

    My requirement is to know the String associatedwith
    the long value, for ex 23423423 is having somevalue
    like 'skljflsjf'. Can any body findout soln forthe
    same.
    Hum... I'm not 100% sure, but it seems the answeris:
    dgjldkgjfkljg
    Please, don't thank me before you confirm thething.
    Regards.Oooohhhh! That explains it! I guess I must've missed
    the part where he said he wants it translated to
    trollish. How stupid of me.You're absolutely not to blame... to be honest, if I had not read the OP 3-4 times carefully, I would not have found the solution.

  • How to capture the entries based on filter values in oo alv..

    Hi all,
    I have a scenario in my oo alv report, when the user select the any column on report and selects the filter option. In that the user can enters required values. Based on filter values the output will be displayed. Now how can i capture currently displaying entries on report.
    Thanks,
    Ashok

    Hi Jozef,
    Is that GET_FILTERED_ENTRIES( ) reads the indexes or values from the entries..?
    Thanks,
    Ashok

  • How to populate 2 screen-fields with one [ON VALUE-REQUEST FOR input] evnt?

    I have a selection screen with 2 text inputs - input1, input2.
    For the first one I have an "AT SELECTION-SCREEN ON VALUE-REQUEST FOR input1" event.
    I successfully get a value there and that is set to the screen field. But I also want input2 to be automatically populated with a value corresponding to the selected input1 (eg. input1=ID, input2=Name).
    I'm able to set input2 ABAP variable but not the screen-element.
    (I guess that ON VALUE-REQUEST doesn't fire any events for screen fields update, because if I press ENTER after using my search-help, then input2 is set with the right value)
    How to solve the problem?

    Hi Ramchander,
    Actually I used FM F4IF_FIELD_VALUE_REQUEST which doesn't have mapping parameters.
    But after your advice I looked through F4IF_INT_TABLE_VALUES_REQUEST and found that it's
    DYNP_VALUES_UPDATE FM that solves my task.
    Thanks!

  • Two tables with different filter values base on a analysis

    Hi guys,
    let assume that I have a analysis with columns : group_id and sales.
    Based on it I would like to create two tables : table1 where group_id =1 and table2 where group_id = 2.
    Is OBIEE capable of doing it?
    Regards,
    Slavi

    Hi Slavi,
    You can do that in single analysis, but you need to have the group_id column two times.
    That is, bring group_id_1, group_id_2 (same column), sales
    Now in table 1,
    bring group_id_1, sales
    Then in selection steps for group_id_1 -> Select Members -> Action choose keep only -> choose the filter value 1
    This will filter the table 1 with group_id 1
    In table2 bring group_id_2, sales
    Then do the same step for group_id_2 with value 2.
    now in same report you have two reports with different filter.
    If you want you can keep the same column name for both group_id columns, I just kept group_id_1, group_id_2 for easy reference.

  • How do I write harmonies with different note values?

    I'm new to GarageBand and have been working with the score on the software grand piano.  At first, I'll write a melody line and then go back to add harmony.  When I try to add a harmony that has a different rhythm, GarageBand automatically changes the melody to match the rhythm of the harmony.  I'm trying to write the parts in the same staff so that the piano part can all be printed on the same page.  Any thoughts/help on how to write the piece with different rhythms in one measure?

    Have you tried to click the clef to get two lines of notation? I enter the chords in the bass clef line, if I need a different rhythm, for example: Or make the edits in piano roll.

  • Problem with Select Filter value.......

    HI all
    We have created a report on Sales cube,and Inserted the Report into work book.
    In the report we have 2 Commission codes 1.Customer,2.material.
       when we are trying to select filter values for customer Commission code,we are Gatting the Pop-up window but the system is Getting hanged, it is not showing any values also.
       We thought it is a Bex problem, but when tried other reports it is working fine.
       Suggest me any possible solution to resolve the issue
    Thanks in advance

    Little more improvement
      After deleting and re creating the indexes, the Filter values are comming but it is taking almost 10-12 min to display the values.

  • Implementing a varchar multi-valued attribute for my customer table

    I usually used to implement numerical multiple value attributes for my customers, such as phone number by having a separate table, as below:-
    •     >>Desc customer (PK)
    Customer_ID
    Customer_Fname
    •     >>Desc Customer_Phone
    Customer_ID
    Phone_number
    Phone_Type
    Where both PK (Customer_ID & Phone_number)
    But now i want to have a varchar multiple value attribute called preferences (such as reading, shopping, swimming, etc)
    So here should i design my Customer_Favorite as
    Desc customer_favourite Favourite_desc
    Cusomet_ID (FK)
    Having PK (Favourite_desc & Cusomet_ID)
    Or
    Desc customer_favourite
    Favorite_ID
    Favourite_desc
    Cusomet_ID
    Having Favourite_ID as PK, TO AVOID HAVING A VARCHAR FIELD IN MY pk as in the first approach.
    Thanks

    user11120147 wrote:
    I usually used to implement numerical multiple value attributes for my customers, such as phone number by having a separate table, as below:-
    •     >>Desc customer (PK)
    Customer_ID
    Customer_Fname
    •     >>Desc Customer_Phone
    Customer_ID
    Phone_number
    Phone_Type
    Where both PK (Customer_ID & Phone_number)
    But now i want to have a varchar multiple value attribute called preferences (such as reading, shopping, swimming, etc)
    So here should i design my Customer_Favorite as
    Desc customer_favourite Favourite_desc
    Cusomet_ID (FK)
    Having PK (Favourite_desc & Cusomet_ID)
    Or
    Desc customer_favourite
    Favorite_ID
    Favourite_desc
    Cusomet_ID
    Having Favourite_ID as PK, TO AVOID HAVING A VARCHAR FIELD IN MY pk as in the first approach.What's wrong with having a varchar as the PK???
    ThanksDesign to Third Normal Form.
    Edited by: EdStevens on Jul 9, 2011 2:45 PM

  • Mac os 10.5.8: how to know if infected with backdoor.flashback.39

    I am running Mac OS X 10.5.8 and not tech savy.  How do I know if I'm infected with backdoor.flashback.39?

    Flashback Trojan User Tip
    Malware Checker Dowload Link
    Additionally you can Google search as there is plenty out there to find.

  • How to know tablespaces, related with one user

    hi experts,
    please tell me how can i know the name of tablespaces, who are related with one user.
    thanx and regards

    I wish more people would use quota instead of the resource role and unlimited tablespace.UNLIMITED TABLESPACE is a particularly noisome privilege, because it grants quota on all tablespaces, including SYSTEM. The fact that RESOURCE used to include this privilege in its portfolio was the main reason not to grant it willynilly.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • HOW TO KNOW VALID XML WITH DTD ? WITHOUT PARSING  ?

    i am creating the xml file
    i need to validate the xml with DTD to confirm is it valid or not ?
    with out parsing...
    could you tell me how ?
    Durga

    without parsing u cant do it..

  • How to know drop location with a transfer handler?

    Using the Swing TransferHandler, there doesn't seem to be a way to figure out the location of the drop!
    Does this mean I must use the older mechanism instead of this new one, my situation here requires that I know where the object is being dropped so that I can add it in the right location.
    Help!

    Hey, anybody using drag & drop at all?!?!
    It's funny, you search around the web and the new features of 1.4 drag & drop are nowhere to be found/discussed!
    :-(

  • How to format the report with the aggregated value

    Hi,
    I have 2 characteristics and 3 KFs in the infocube.
    First field is Cost Center
    Second field is creation Date
    3rd field is KF1
    4th field is KF2
    5th field is KF3
    I have put the date field( in the row) as this is required for calculating formula for KFs. But I have set that as No display.
    The date in the info cube is as follows.
    Cost Ceneter  Date( no Display)   KF1     KF2      KF3
    CC1           01/01/2006          100     150      200
    CC1           02/02/2006          75      100      95
    CC1           05/02/2006          125      95      125
    CC2           01/02/2006          75       25      85
    CC2           02/02/2006          85       65      10
    As the Date field is in query set to No display so the date appearing in the report is as follows
    CC1       100        150        200
              75         100        95
              125          95        125
    CC2       75           25        85
              85           65        10
    But I want the aggregated value at cost senter level i.e.
    CC1       300         245       420
    CC2       160         90         95
    I can not remove the Date frield from query as there is a formula variable defined on the date field.
    Please let me know how to bring the report to the required format.
    Bill
    Message was edited by:
            Bill Bryan

    If you are in new Bex, you can do it.
    You will have to create another (set of) CKF on top of the current ones (which do exception aggregation on DOCNUM) and set the exception aggregation on date.
    Say you have
    CH1--CH2CH3--CKF1
    To have a 'before aggregation' behavior for CKF1 when CH3 is not present, you will create a CKF2 = CKF1 with exception aggregation on CH3.
    Now, if you want to remove CH2 and have the 'before aggregation' behavior you will need to create another CKF3 = CKF2 with exception aggregation on CH2.
    ie for each level of aggregation, you will have to define a new CKF/Formula with corresponding exception aggregation - this is what will be needed to get you your output.
    Message was edited by:
            Ajay Das

Maybe you are looking for

  • SSRS filter a dataset if parameter is "Yes"

    hello i have a report  as below with date Parameters this all works fine!  date from                date too  01/01/2011   21/02/2013  name        amount      date  test1 100           01/01/2012 test2        200             01/02/2013  but what i wa

  • The server {4D8E7D87-0103-42F6-BE82-598C7E90A42C} did not register with DCOM within the required tim

    hello all..... when i try to convert .indd file to PDF file in C# , i got the following error The server {4D8E7D87-0103-42F6-BE82-598C7E90A42C} did not register with DCOM within the required timeout. just 1 day ago i installed adobe indesign cs4 in m

  • FI - BTE events for transaction F110

    Hi all, I'm quite new to the FI module and have a question regarding Business Transaction Events. I tried by searching the forum but haven't found exactly what I was looking for, so if someone could help me out I'll be forever thankful! The problem i

  • Close a transaction through ABAP program without user log off.

    Hi, I have to write an ABAP program that will check if a particular transaction (for example tcode VA01) is running than it must close the transaction. Please give me your inputs or sample code if possible. Thanks for your suggestions. --Sanjay

  • BI Publisher License

    Hi Friends I know this might be wrong forum for this question. I want to know for making customized e-biz reports in BI Publisher do we need extra license. and what about reports outside e-biz suite. Can we make reports for non-ebiz suite in BI Publi