Add an interface Method/Event via enhancement??

Hi expert.
I want to pass additional data between two standard webdynpro components. As for as I know, I can use infterface method/event in custom webdynpro component and click check box 'Interface' of method/event.
However I can add new method/event in standard webdynpro via enhancement,  the check box 'Interface' is dispear.
So is it possibe to add an interface method/event via enhancement? or pass additional data between standard webdynpro component?

Hi,
First you need to understood the standard webdynpro component which you are looking for.
If the standard component is providing interface methods/events then you can call from your custom  webdynpro component  re-using the standard component in your custom component.
If you provide mroe information about which standard component and which event/method you are looking for, so that I will provide more info.
Best of luck..
Regards,
Naresh

Similar Messages

  • Interface method in enhancement mode

    Hello Experts,
    I need to enhance a standard web dynpro component. I have created a new method in the component controller using enhancement implementation. This method has to be called from another component. Therefore I need to make this as an interface method. But in enhancement mode I do not see an option to make this method as an interface mathod. Kindly let me know if this is poosible.
    Thanks,
    Pooja

    Hi Pooja,
    Please check this threads.. Hope you understand.
    Add an interface Method/Event via enhancement??
    How to make Interface node in an Enhancement Implementation
    Cheers,
    Kris.

  • Overriding Interface methods via JNI

    Hello,
    How we can override Interface methods via JNI?
    For example:
    At HelloWorldSwing example:
    http://download.oracle.com/javase/tutorial/uiswing/examples/start/HelloWorldSwingProject/src/start/HelloWorldSwing.java
    I've written anonymous Interface as:
    import javax.swing.*;       
    public class HelloWorldSwing1 {
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("HelloWorldSwing");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Add the ubiquitous "Hello World" label.
            JLabel label = new JLabel("Hello World");
            frame.getContentPane().add(label);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        static Runnable runnableObject = new Runnable() {
             public void run() {
                  createAndShowGUI();              
       public static void main(String[] args) {
             //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            SwingUtilities.invokeLater(runnableObject);
    }via JNI functions(http://download.oracle.com/javase/1.4.2/docs/guide/jni/spec/functions.html) we cannot override Runnable Interface's run method? Can we?
    Only:
    RunnableClass's value isn't null with given example at below. FindClass finds the Runnable Interface.
    jclass RunnableClass;
    RunnableClass = (*env)->FindClass(env,"java/lang/Runnable");
      if( RunnableClass == NULL ) {
        printf("can't find class Runnable\n");
        exit (-1);
      }But How can we override Runnable class's run method?
    Thanks in Advance

    The only way you can override a method in Java is by defining a class that does so, either statically or as an anonymous inner class. You can't do either of those things in JNI. Ergo you cannot do what you are asking about.

  • Creating a new method in an enhanced component class implemetation

    Hello Experts,
    I am trying to create a new method in the enhanced component(BT115IT_SLSO) implementation class ( ZL_BT115IT__ITEMS_IMPL)to run our custom functionality. But somehow when I put a breakpoint and debug while I add a product to the sales order the method doesnt get trigerred.
    Is there some thing which I have to do  get this trigerred ? I just added a ned method and placed some custom code in it. Do I have to invoke it anywhere ?
    Pls help me out. I am new to Web UI.
    Thanks

    Hi Mavrick,
    As you are performing some action like item addition , there you need a method called as " event handler " to handle the event and perform the required actions.
    Place a break point in DO_HANDLE_EVENT method , and you will know the exact event handler method which is getting triggered . or if you are defining a new event ( by adding any new button) you should create a event handler method using wizard giving the same name which is defined on_click field of the button as it is case sensitive.
    Regards,
    Nithish

  • Question when i am in web dynpro interface method trying to find code

    Hello guys,
    I am in an event handler and i see this logic wd_this->mo_dodm_srchbidder_c->add_selected_bidder().  When i double click on the add selected bidder it takes me to the method inside interface /sapsrm/IF_CLL_DODM_BIDDER.   So when i double click on the method it takes me nowhere.
    My question is what do i have to do or where do i go to see the code for add_selected_bidder?   thank you.

    I think, you have visited to the definition of the interface method and not the implementation of the method.
    You have instantiated the wd_this->mo_dodm_srchbidder_c some where, may be in the wd domodifyview. Find that out where the implementation happens.
    I believe when you double click the method in  editor ask for to go to definition or implementation.

  • Steps for using interface IF_FPM_CNR_GAF for SRM enhancement

    Dear forum members,
    I am an SRM consultant and want to change the toolbar labels for some buttons in the FPM.
    SRM uses a GAF FPM and I need to know how to implement a supported enhancement to change the label of the 'Save' button to 'Hold' for some applications only.
    Can someone please provide detailed steps for me to be able to achieve this?
    I have found the following, but it is not detailed enough for me:
    "IF_FPM_CNR_GAF Interface
    This interface provides you with methods to dynamically change the FPM toolbar of
    an initial screen or main screen.
    The interface is accessed via the CL_FPM_SERVICE_MANAGER, as the code below
    shows:
    Accessing the API for a GAF application:
    Syntax
    1. DATA: lo_cnr_gaf TYPE REF TO if_fpm_cnr_gaf,
    2. lo_fpm TYPE REF TO if_fpm.
    3. lo_fpm = cl_fpm_factory=>get_instance( ).
    4. lo_cnr_gaf ?= lo_fpm->get_service(
    cl_fpm_service_manager=>gc_key_cnr_gaf )."
    Can someone please help me to set this up?
    Many thanks in advance,
    Best regards,
    Nick

    >
    Nick McFetrich wrote:
    > Hi Baskaran,
    > I don't think you need to be an SRM expert for this - the documantation on the interface and class I found was in the 'Floorplan Manager for ABAP - Developer's Guide' document, so the enhancement I need to do should appy to any SAP system which uses FPM.
    >
    > Thank you for your help anyway, but hopefully someone else with this experience can help.
    > Best regards,
    > Nick
    Hallo Nick,
    In webdynpro i would have done this with out any problem. For example
    -FPM_TEST_NAVIGATION component.
    -Select this component->controller->enhance
    -fill in the enhancement details in a popup -> i use the ZZSBN_TEST_IMPL3 as enhancement implementation , fill in short text and press enter.
    -Fill in the transport data (i choose local object ).
    -close (f3) , go back to the package/local user->local object in object naviagtor->select enhancement-> choose enhancement implementation(i slect ZZSBN_TEST_IMPL3)
    -travel through the node until you reach the a method where you want to enhance.(i choose COMPONENTCONTROLLER)
    -Choose controller(top left)->enhance->popup->choose ZZSBN_TEST_IMPL3(select this line).
    -You see the right side pane status "Enhanc.inactive" ,pre exit,post exit,overwite buttons with delete icon (ignore this part )
    - select a method (PROCESS_BEFORE_OUTPUT)->use bottom scroll bar to traverse right side until you see enahncement buttons like pre,post,overwrite buttons in every cell.
    - i choose a post-exit, method opens and the name is like this PSTD9IMD481CRS9OXKK1AZJR917J
    - Here i write my logic to get the reference to the cnr_gaf and get_buttons.

  • How to add a finder method in the container manager Bean in the weblogic6.1

    in the environment jbuilder6 andweblogic6.1,use container manager entity Bean,it can automatic generate the findAll() method,I want to add a new method to find an element in the home interface,such as findByName(),name is a element of a table of the database.in the weblogic-cmp-rdbms-jar.xml,this is part of the fiile:
    <finder>
    <finder-name>findAll</finder-name>
    <finder-query><![CDATA[ (= 1 1) ]]></finder-query>
    </finder>
    <finder>
    <finder-name>findByName</finder-name>
    <finder-param>java.lang.String</finder-param>
    <finder-query><![CDATA[ (=name $name) ]]></finder-query>
    </finder>
    It can successfully compile the findAll(),but it is wrong when compile the findByName(),as follows
    "www.ejbgrpx": Method Name: findByName
    "www.ejbgrpx": Invalid specifications for a WebLogic RDBMS CMP EJB.
    "www.ejbgrpx": ERROR: Error from ejbc: weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    "www.ejbgrpx": While trying to process Finder
    "www.ejbgrpx": Parameter Types: (java.lang.String)
    "www.ejbgrpx": WebLogic Query: (= name $name)
    "www.ejbgrpx": Finder Expressions: ()
    "www.ejbgrpx": Could not parse WLQL expression: (= name $name) null
    "www.ejbgrpx": ERROR: ejbc found errors
    thank you

    The finder methods that you are referring to are only simple finder methods. If you would like to add specialized finder methods, you can make your entity bean with bean managed persistence and not container managed. If you are using EJB 2.0, your entity bean with container managed persistence can use EJB QL for finder methods. You can search for this topic and/or download the EJB 2.0 specifications
    Hope this helps

  • INTERFACE AND EVENTS IN ABAP OO

    Can some one explain me the real time need with example for use of interfaces and events in abap objects
    (asking interface and events along doesnt mean that i am relating them).
    <removed_by_moderator>
    Pankaj Giri
    Edited by: Julius Bussche on Jul 14, 2008 1:36 PM

    Events :
    Technically speaking :
    " Events are notifications an object receives from, or transmits to, other objects or applications. Events allow objects to perform actions whenever a specific occurrence takes place. Microsoft Windows is an event-driven operating system, events can come from other objects, applications, or user input such as mouse clicks or key presses. "
    Lets say you have an ALV - An editable one ...
    Lats say - Once you press some button  you want some kind of validation to be done.
    How to do this ?
    Raise an Event - Which is handled by a method and write the validation code.
    Now you might argue, that I can do it in this way : Capture the function code - and call the validate method.
    Yes, in this case it can be done.. But lets say .. you change a field in the ALV and you want the validation to be done as soon as he is done with typing.
    Where is the function code here ? No function code... But there is an event here - The data changed event.
    So you can raise a data changed event that can be handled and will do the validation.
    It is not user friendly that you ask the user to press a button (to get the function code) for validation each time he enters a data.
    The events can be raised by a system, or by a program also. So in this case the data changed event is raised by a system that you can handle.
    Also, Lets say on a particular action you want some code to trigger. (You can take the same example of validation code). In this case the code to trigger is in a separate class. The object of which is not available here at this moment. (This case happens very frequently).
    Advantage with events : Event handlers can be in a separate class also.
    e.g : In the middle of some business logic .. you encounter a error. You want to send this information to the UI (to user - in form of a pop up) and then continue with some processing.
    In many cases - A direct method call to trigger the pop up is not done. Because (in ideal cases) the engine must not interact with UI directly - Because the UI could be some other application - like a windows UI but the error comes from some SAP program.
    So - A event is raised from the engine that is handled in the UI and a pop up is triggered.
    Here -- I would have different classes (lets say for different Operating Systems). And all these classes must register to the event ERROR raised in application.
    And these different classes for different Operation systems will have different code to raise a pop-up.
    Now you can imagine : If you coded a pop-up for Windows (in your application logic) .. it will not work for Mac or Linux. But of you raise a event.. that is handled separately by a different UI classes for Win, Linux or Mac  they will catch this event and process accordingly.
    May be I complicated this explanation .... but I couldn't think of a simpler and concrete example.
    Cheers.
    Varun.

  • How do I add place names to events in iPhoto 11

    How do I add place names to events iPhoto 11 version 9.2.1, I can do a single picture at a time but when you have a 100 or so it's going to get tedius.
    I have found messages  via google that tell me how to do it but it dos'nt work.
    I select the event I want to locate. then I  click "cmd i" to get the info screen up. Then at the bottom of the screen is a picture of the world and a box next to it where I think you should type in your location, but that just takes me to a map of the USA and I can't do anything.
    Help please, what am I doing wrong.

    Same problem here. Cannot understand why it is soooo difficult...

  • How to add Two Interface Mappings to One Receiver(BPM) Help needed urgently

    I have a requirement where i get a flat file and split into multiple files and send to BPM.
    For each split file I created Interface Mapping using Java Mapping Program.
    In the Configuration how to add more Interface Mappings?
    Thanks for your help in advance.
    Regards
    Sudha

    You can use Enhanced Interface Determination to split one message to Multiple hence to multiple Interfaces.
    You have to change the Occurance of Messages in Message Mapping and their Corresponding Interfaces in Interface Mapping. That would create Multiple Files with Multiple Interfaces to Receiver (BPM)
    1) You need not to use Multilpe Interface Mapping
    2) You will use Extended Interface Determination for this.
    regards.
    Jeet.

  • Access specifiers for interface methods

    When we implement the interface ,we have to specify the implementing method access specifier to be "PUBLIC" ,but not "PROTECTED" or "PRIVATE".
    Compiler is giving an error -- attempting to assign weaker access privileges ,when we specify protected.
    what is the internal reason for this?Why we shouldnt make the access weaker in the implementing class.
    Can any one help me on this.Your help is highly appreciated.

    When we implement the interface ,we have to specify
    the implementing method access specifier to be
    "PUBLIC" ,but not "PROTECTED" or "PRIVATE".
    Compiler is giving an error -- attempting to assign
    weaker access privileges ,when we specify protected.
    what is the internal reason for this?There is absolutely no point in having a private interface method. The interface represents a visible abstraction and private methods are never visible so it is a contradiction in terms.
    An interface is intended to represent an abstraction that a user (software) uses. Protected via child/parent represents a usage that is restricted to a child from a parent. The child can already see the parent so there is no point in having an abstraction for the child. And it would probably be unwise to limit a child by such an abstraction.
    Protected via the package and interfaces is more contentious as to why it is not allowed. There are those that argue that this should be allowed so that a package can use interfaces but restrict them to the package. To me this seems like a minor point given that most interfaces will probably represent an abstraction to other packages and not within a single package. This applies specifically to default access as well.

  • Why are interface methods public?

    I want to define a package interface that will be implemented only by package classes which will be used only by other package classes. Why do the methods have to be public?

    In java you don't have multiple inheritance. To
    circumvent that it is said to extend the most
    important class and implement the others with
    interfaces. No. Java does not support multiple inheritance. Interfaces do not exist to supply that functionality. Interfaces can be used to simulate some of the patterns that multiple inheritence represents.
    (You can have skeleton implementations to
    help you implement those interfaces in other
    classes).
    But the interface methods are public. So all the
    classes you 'extend' via this trick have all methods
    public.
    This is a bad thing. All of you who have used RMI (or
    J2EE) know that you can serialize objects between two
    networked machines. ValueObjects pattern from J2EE
    toolbox is a good example of this. Now, if you happen
    to have several quite similar objects, you obviously
    would like them to inherit those common traits from
    some base class. If you would also like them to have
    some other common functionality (for example server
    side 'maintenance' methods, state monitoring, checking
    and clearing, you would have to make those methods
    public 'cos you only have interface implementation
    left - after spending that single credit to actual
    inheritance.No. Convienence ("common functionality") should not be used in most cases when designing hierarchies. Inheritence should only be used to represent 'is a' relationships.

  • Interface method  not implemented by class :(

    I'm getting an error for interface method
    Interface method handleLogout in namespace  views.interfaces:IWiseMediator not implemented by class  views.mediators:RatingViewMediator.    RatingViewMediator.as 
    package views.interfaces
        import flash.events.Event;
        public interface IWiseMediator
            function handleLogout(event:Event):void;
    but I done this in RatingViewMediator
    private function handleLogout(event:Event):void
                viewObject.clearFields();

    interfaces are used to enforce a public 'interface' to the class. as a private method can only be accessed by the class itself, it doesn't make sense to include private methods in an interface.

  • Create interface method in standard component.

    Hi Experts,i want to enhance standard component.in that i created one attribute and i used in my component.For that attribute the value is passing from some other component.i try to create interface method in standard component.but it is not possible.so please help me out this issue.
    Regards
    prasad

    Hi,
    No, You cannot create Interface Methods/Nodes in Standard Component by Enhancing. I would suggest to create a Singleton class and create your method in that class and can access across components.
    Regards,
    Kiran

  • Create BO Event via Change Document

    Hello gurus
    I'm having some trouble creating an event via a change document for a custom Z table.  I've already followed the steps outlined in help.sap.com:
    1. Created the change document for the z table and generated the program.
    2. Made the Z table and its data elements relevant for change documents.  Did this through the Technical Settings for table (Log changes checkbox) and data element characteristics.
    3. Made an entry under "CREATE" in SWED for my new change document object, with the z table as the leading table and change document key with structure.
    4. Made an entry for my event in SWEC and linked it for a create of the change document.
    However, the event is not being fired when a new entry is made in the z table.  I set a breakpoint in the funcion module generated for the change document but it's not being detected apparently.
    Are there any further settings I need to look at/change for the change document to activate the event?  Thanks in advance
    Regards,
    Juan Ramos

    Hi Ramki
    Indeed, I consider using SAP_WAPI_CREATE_EVENT much, much simpler, but unfortunately it was another consultant, not me, who built the table, its code, and the code behind the z transaction where the table is used (and he's based offshore).  It was only just now that I also found the code he wrote for the txn. 
    If I would have to add code anyway to make the change document work, I'll just talk to the consultant to have him add the SAP_WAPI_CREATE_EVENT, or I'll just add it myself if I get permission from our development manager.
    Thanks for your help as always!
    Regards,
    Juan Ramos

Maybe you are looking for

  • Creating a VPN from my remote powerbook to a stand-alone network Hard drive

    I would like to set up a VPN or V secure access from my powerbook to a Network Hard drive so when I travel I can securely access my data over the internet on my hard drive at home, when I have my powerbook with me. I dont want to have to buy another

  • Satellite Pro A200 (PSAF4A) - HDD stops and computer crashes

    Hello This is my first post in this forum but definitely not my first issue I recently had to re-install Windows Vista on my Laptop because I had an undetectable virus that attacked Windows and rendered it useless. Before then I had many, many start-

  • Please help me in KeyTyped Event in Swing

    hi, goodmorning In my project I have a Frame.on that Frame I put a JDesktopPane which contains one JInternalFrame.I wrote coding in KeyTyped event and mouse clicked event of all i,e in my JFrame,JDeskotpPane and JInternalFrame. No problem in all my m

  • 3D Print Resolution on MakerBot Replicator 2

    HI All, Is a week that i'm printing with Photoshop on my Replicator 2... but i found some resolution problems. as you can see in this detail the  model printed at 0.07 mm resolution is almost alf respect the same model printed on makerware at 0.1mm.

  • Partitioned & Replicated configuration

    Hi, I need to build a configuration with 6 dedicated cache nodes (ie. cache servers). Each of these node obviously need to be outside the application environment (ie. outside the weblogic/websphere box). Components deployed on weblogic / websphere wo