Determine where badi is called from : webshop, GUI or webUI

Hi Experts,
I am working on BADI com_partner_badi.
I want to determine where this badi is being called from, ie, either from webshop, GUI or webUI in the ABAP debugger.
Which parameter of the badi should i check , which will provide me with the calling application ?
Thanks,
Shantanu.
Edited by: shantanu sardal on Mar 18, 2009 10:15 AM

Hi Shantanu,
Here is the explanation: The purpose of BADI is to enhance the functionality as per the customer needs. SAP has given the envelope in which you can write your own logic to change the SAP's standard behavior. Now the question that from where it gets triggered ?? It is not dependent on the GUI or Web UI etc , It can be triggered from any where as long as the component's code is getting triggered.
For example You create a BP from GUI or from WebUI does not matters as underneath API's remains the same and  if you have a BADI implementation for the BP it will get triggered irrespective of the GUI or UI.
Hope this will clear your doubt.
Thanks,
Vikash.

Similar Messages

  • Where Is MV45AIZZ called from?

    Hello,
    We've been used exit MV45AIZZ to check the consistency of several
    fields of order item(t-cd;VA01,VA02).However after the system
    upgrade(4.6C --> ERP6.0) the exit became invalid.The program
    logic still remains but now it doesn't work.
    This user exit was called from screen painter(program;SAPMV45A,
    Dynpro;8459)and this screen painter was called from some other
    programs.However it seems no programs call this painter in upgraded
    system.(t-cd:SE51,"Where-used list"function)
    Is there anyone knows how can I call MV45AIZZ on ERP6.0?
    Thanks in advance.
    Yuka

    Hi,
    Yes,I've checked SPAU and confirmed all modifications has green checked signs.
    Thanks and regards
    Yuka

  • Determining which method to call from an array of Objects

    Hi All,
    Lets suppose I have an interface, a string method name, and an array of Objects indicating the parameters which should be passed to the method.
    What Im trying to work out is a way to quickly determine which method should be invoked.
    I can see that Class has getDeclaredMethod(String, Class[]), but that wont help me as I dont know the formal class types (the method may take X, but I might get passed Y which extends X in the array of objects).
    Does anyone know of a quick way I can determine this?
    All I can think of at the moment is going thru each method of the class one by one, and seeing if the arg is assignable, then, after getting all my matched methods, determining if there are any more 'specific' matches.
    Any ideas?
    Much appreciated,
    Dave

    you might want to take a look at the dynamic proxy apiCheers for the suggestion, but Im actually already using the dynamic proxy API.
    What I have is a MockObjectValidator which allows mock objects to be configuered with expected calls, exceptions to throw etc etc.
    I thought developers on my project would get tired using an interface like this:
    myValidator.setExpectedCall("someMethod", new Class[] { typeA, typeB }, new Object[] { valueA, valueB} );
    I.e, I wanted to cut out having to pass the class array, so they could just use:
    myValidator.setExpectedCall("someMethod", new Object[] { valueA, valueB} );
    The problem there is that I then need to pick the best Method from the class given the object arguments.
    When the mock object is in use, its no problem as the InvocationHandler interface provides the Method. The problem I have is selecting what method a user is talking about from an array of Objects.
    Ive written a simple one now, it just does primitive type class -> wrapper substitution, and then finds ** A ** match. If there is more than one match (ie, all params are assignable to a class' method params), I dont let that method be used.
    Shortly I'll update it to actually make the correct selection in those cases.
    cheers
    Dave

  • Calling BADI or BAPI from another BADI

    Hi,
    Is it possible to call BADI or BAPI from another BADI.Here is my situation..
    When I am saving the Lead , I would like to create Opportunity based on few lead conditions.Can I use any one of these two for creating opportunity from Lead.
    I have no clue.
    Please help me.
    Thanks,
    Ajay

    Hi Ajay,
       Look at Re: Can BADI be called from ABAP Program ? maybe it helps you.
    Regards.
    Manuel

  • BAdi: Construct ID from Components in Bar Code

    Has anyone used this BAdI in Aii 7.1?  Trying to find where this BAdI is called.  Looking for a method to convert between various barcode data, e.g. (01) (21) (10) (17) (30), and either parse out the AI data not contained in the GS1_SER ID or convert to SGTIN-96 depending on how the object id is stored in Aii.  This BAdI appears to be for this purpose, but when we activate it and create our enhancement spot I am not finding where the BAdI is called from /AIN/CL_CTX_INIT or other class.

    I have never used that BAdi, but regarding to where it is used. The conversion method will called from here:
    /AIN/CL_PML_SENSOR_MAP -> method: PARSE_BARCODE -> line: 102
    CALL BADI lo_badi->constr_id_from_bc_comp
                EXPORTING
                  iv_bc_string    = <fs_bc_data>-fieldvalue
                  iv_devgrp_extid = lv_devgrp_extid
                  it_bc_part      = lt_pub_bc_part
                CHANGING
                  cv_id_type      = lv_pub_id_type
                  cv_id           = lv_pub_id.
    Edited by: Philip Allgaier on Sep 28, 2011 5:32 PM

  • U.S. Citizen making calls from Macedonia

    I am a U.S. citizen who will be living in Macedonia for 2 years. Will I be able to call home with the "unlimited calls to U.S." subcription? Or do I need something else since I'll be calling from abroad (as opposed to making calls from within the U.S.)?
    Help!

    Hi Kelly,
    You will be able to use Unlimited US anywhere in the world. It doesn't matter where you are calling from, you only need to make sure that your subscription covers calling destination.
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • Need FM which tells whether request received(object call) from R3 OR Portal

    Hi All,
    I need to differentiate some logic in a method based on whether it is called from R/3 OR Portal.  I think there is a function module which tells whether the request is from Portal or not.
    Thanks in advance
    Regards,
    Sudhakar.

    Hi Sudhakar,
    Not aware of any such FM. But this is what you can do.
    Any action form portal usually will call an RFC. In that RFC you can use SET parameter (SAP memory). And in your method you can check for that parameter to determine if it was called from portal.
    Regards
    Krishna Kishor Kammaje

  • Uk resident calling from Canada to UK whilst visit...

    Hi
    I live in the UK but will be spending a lot of time between here and Canada. I currently have a suscriprion that allows me to all any Canadian number for unlimited minutes per month, but how does it work if I want to call the UK whilst I'm in Canada?
    Would I need to set up another subscription to call the UK from Canada and is that possible?
    Also, I know that it's probaby a stupid question, but does Skpe know which country I'm in when I make a call?
    Many thanks

    Hi,
    In order to call UK you need a subscription that covers calls to UK. In your case you would need an additional subscription from: http://www.skype.com/go/subscriptions
    Tip: In UK mobile numbers have higher rate, therefore in UK there are 2 types of subscriptions. If you wish to call also mobile numbers then make sure you choose a subscription from: "Landlines and mobiles" tab.
    Regarding second question, it doesn't matter where you are calling from. All you need to do is to make sure your subscription covers calling destination.
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • BADi called from transaction FB60

    Hi all
    I am looking for a BADi called from transaction FB60 in ECC 6.0. This is needed due to the fact we will develope a solution where we transfer the cost from an invoice booked to an intern order and transfer the cost and currency to CRM 7.0. Please if there is anybody who know a Badi that is triggered when the transaction FB60 is Saved, it will be very help full to us.
    Best Regards
    Camilla

    Hi,
    Re: Need user exit or BADI for FB60
    Best regards, Christian

  • I used a third party programme called Mackeeper UGHHH,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??how can i manually put these files back where they belong?SO upset!!

    I used a third party programme called Mackeeper UGHHH SOOO Stupid i know,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??and will not work even when i highlight one by one!!
    how can i manually put these files back where they belong?
    i know i should have used time machine but i have not set it up and its too late for that now
    i have been researching and racking my brain on how to put these folders and contents of them back to where they once were all of the contents of the folder are still in tact AND i have not emptied my trash,my programmes and some of my apps are not working properly now...i use my computer alot for making music and things are jumbled up now...
    is there anyone out there who knows the answer to my prayers on how to go about putting these folders/files back to where they came from to restore functionality to my mac..Yes and thank u if u were going to tell me i HAVE un installed mackeeper...A very sad and upset Mac user!! Cheers Shane

    hello there thank u so much for ur reply!! ok i uninstalled mackeeper now and the put back option is still in grey im so confused...i tried restarting my computer like u said and put back still in grey??!! the files that are in my trash are everything from Accounts,address book plug-ins,address book,adobe,aim.........then stuff like apple,Audio,....to caches color pickers,colors,com.apple.TCC,to DVD player to facebook,google to ilifemedia browser to itunes to keychains to movie effects,preferences printers to skype...my Native instruments files BUT not all of them my garage band but not all of it...it seriously looks like my whole library is in the trash i tried to put things back where i THINK they belong and it just added the item or folder under where i thought it went and didnt restore functionality to for instance google chrome and all my book marks are there....they seem to be only certain things from my library that would have added some functionality to apps and programmes like my garageband is missing stuff photobooth wont work so on.......kinda looks a bit like this thats only the half of it!! Cheers shane!!!

  • Trying to call a method on an RMI server from a GUI

    Hi all, I'm new to the forums and I desperately need some help!
    My question fits into the RMI category but also the database/GUI side so sorry if this is posted in the wrong place.
    My application is a client/server system (programmed in Netbeans 6.8) that also uses GUIs and JDBC-ODBC. Basically, I am trying to call a method that adds an entry to my database from a GUI button.
    Due to the required RMI, I have the ServerInterface that extends Remote and I have a ServerImpl class that implements the Interface, and the RMI works fine so there is no problem there.
    My code for the button is:
    private void addUserActionPerformed(java.awt.event.ActionEvent evt) {                                       
    try{server.addNewUser("new");}
    catch(Exception e){}
    addUser.setText("buttonhaschanged");
    The server variable is declared above as ServerImpl server;
    The actual addNewUser method works fine when it is called explicitly via RMI in my main "Client" class, but this GUI is going to be like an "administrator GUI" that can manipulate the database, so there is no RMI involved here.
    Anyway, my button doesn't have any effect on the database, but the button changes text as desired so the button itself works, but it doesn't do what I want to the database, so I think my problem is the use of my "server" variable. I've tried making it static and I've tried making it of type ServerInterface, but no luck. Would I have to make the GUI class extend the interface too?
    Sorry for rambling on!
    Many thanks in advance
    David
    Edited by: DHD on Feb 26, 2010 6:15 AM

    Would I have to make the GUI class extend the interface too?Your GUI has nothing to do with the RMI. How did you obtaint the "server" ? have you looked in the RMI registry to get the stub object ?
    The second thing to notice is you are invoking a RMI calls on a EDT which you should not do it. Your RMI method calls should be invoked via SwingWorker-->doInBackground(); please take a look at the Java Doc
    [http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html|java Doc SwingWorker sample usage]
    You mentioned that the RMI method invocation works fine from the main class and not from the GUI so what did you do in the main class to get the stub do it in the doInBackground() method
    Regards,
    Alan
    London

  • SAP GUI call from Web Dynpro Abap

    Hi all,
    I heard about the possibility to call the SAP GUI directly from my Web Dynpro Abap Application, so that the GUI is integrated in my web browser. But i could not find any information about that.
    Maybe you can help me.
    Thanks,
    Johannes

    Hi Johannes,
    Its not possible to directly call your R/3 GUI from your WDA. You can try the "Screen Design Time Conversion" tool in SAP. You can go through this [link|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/frameset.htm] for further details regarding it.
    But please also pay heed to Thomas's advise in [here|Is there a converter for classic dynpros?;.
    Regards,
    Uday

  • Where is BADI CRMXIF_PARTNER_MAP called during BP replication via XIF?

    Hi,
    I want to debug my implementation of BADI CRMXIF_PARTNER_MAP which is used in BP replication via XIF adapter. After I set a breakpointer in my program, I tried in Tcode BP to save an updated BP, it didn't goto debugging mode. I can ensure that I have done correct configuration for XIF adapter because I found the generated IDoc by using Tcode BD87. And I also try to send generated IDoc out, it also not goto to debugging mode.
    So where is this BADI called? In which function or class?
    Thanks a lot!
    Edited by: lonny Zheng on Jun 10, 2011 1:49 PM

    Hi konanki63,
    I tried to set external breakpoint in coding, but it didn't work. I tried to use where-used list to find, I can only find that this BADI is called in FM CRMXIF_PARTNER_MAPSEND. But I can't find any other program call that FM again.
    Could you give me more tips?
    Thanks a lot!

  • Determining where a user is coming from

    I was wondering if there is anyway (through a RequestContext maybe?)
    that I can determine where a user is coming from in terms of the
    JSP/ViewBean he/she was at.
    So for example, if I'm on the Login page of my app and there's an
    associated LoginViewBean, when the user clicks 'login', he will go to
    the application's homepage (as long as he's a valid user). What I need
    to do is determine from my homepage ViewBean, where the user just
    came from. In this case I would like to obtain an object representing
    the LoginViewBean. Is there a hook into the S1AF to get this kind of
    information?
    Thanks

    Throwable t = new Throwable()
    t.fillInStackTrace();
    StackTraceElement[]      st = t.getStackTrace();
    System.out.println( st[st.length-1].getMethodName() );??

  • One Method is not getting called from of one BADI Customer_add_data

    Hi,
    I am Implementing one method BUILD_TEXT_FOR_CHANGE_DETAIL
    I have done coding part also and set breakpoint to check the data.
    I went to transaction XD01 and created one customer and check the execution but it didnt reach to the step where i placed the break point.
    I checked the  program    SAPMF02D from transaction x01   and searched for the method where its being called . But search for unsuccessful as no reaults has been found.
    Please help me in rectifing this issue.
    Thanks,
    Izaz.

    if the question is not clear please tell me i ll write it in detail

Maybe you are looking for

  • Return pricing procedure-

    Dear all- After defining separate pricing procedure for return sales . when we are creating return sales with the refference of billing why return pricing procedure is not coming.Coming pricing proceure is previous sales procedure.I want in case of 

  • ******* AnyOne who can answer my question  very very urgent **********

    hi Iam new to swing programming.i have a JTable which has a column for date.i want to validate the date.if the date is invalid it should clear the cell and the focus should remain in the same cell.how to achieve this.any ideas. tks in advance

  • Songs keep repeating, where do i turn this off????

    i always put my ipod on my iphone on shuffle in the car but here lately it keeps playing the same song over and over. and i have gone through every menu and every place on the phone looking for something to turn it off like u would shuffle but i dont

  • Security on the Cisco CSS

    I have a Cisco CSS 11501s attached to a Cisco 6000. I am using the CSS in an on arm design, which is basically a router on a stick. The Cisco 6000 only provides layer 2 switching. It utilizes 1 Ethernet interface on a single vlan. I configure 3 VIPs

  • Konturenführung in InDesign

    Hallo! Wie funktioniert diese Konturenführung in InDesign? Irgendwie versteh ich das nicht! Mal funktioniert es mal nicht. Merkwürdig. Hallo? Kann mir vielleicht jemand helfen? LG