How to create a method in Interface Controller

Hi Guys,
        I am working with webdynpro ABAP sample application "Component usage" . There i got a issue like i am not able to create a method in Interface controller. There i am not able to edit anything. Can anybody please let me know how to do that.
            Thanks In Advance
Regards
Ravikumar

Hi Ravi,
          Check This
If one Web Dynpro component (parent component) needs access to another Web
Dynpro component (child component) the parent component can declare the use
of the child component. A specific component usage instance is then created and
the parent component accesses the functionality of the child component via its
component interface controller.
The only parts of a Web Dynpro component that are visible to the user, are the
interface controller and the interface view(s).
All Web Dynpro components have only one interface controller. Via the
interface controller, data, methods, and event handlers can be exposed to
other components.
Interface views represent the visual interface of a Web Dynpro component.
There is a one-to-one relationship between a Window and an interface view.
Each time a window is defined, a related interface view is automatically
generated, which makes the window accessible from outside the component.
The interface view only exposes those inbound and outbound plugs to the
component user that have the interface property checked. Methods and
context data of the window are not accessible via the related interface view.
If the component has no views, there is no need to have Windows. In this
case, the component will not implement an interface view. Such components
having no visual interface are known as faceless components.
Regards
Sarath

Similar Messages

  • IN R12 -- HOW TO CREATE RECEIPT METHOD IN RECEIVABLES

    IN R12 --> HOW TO CREATE RECEIPT METHOD IN RECEIVABLES
    SET UP
    RECEIPTS-------> RECEIPT CLASSES
    I CREATED NEW RECEIPT CLASS AND NEW RECEIPT METHOD
    WHEN CREATING NEW RECEIPT METHOD
    BANK ACCOUNTS---------->
    I AM ABLE TO SELECT THE DETAILS FOR THE FOLLOWING
    1. OPERATING UNIT
    2. BANK NAME
    3. BRANCH NAME
    4. EFFECTIVE DATES
    5. CASH ACCOUNT
    6. UNAPPLIED RECEIPTS
    7. UNIDENTIFIED RECEIPTS
    8. ON ACCOUNT RECEIPTS
    BUT WHEN COMES TO THE
    UNEARNED DISCOUNTS AND
    EARNED DISCOUNTS I AM UNABLE TO GET LOV FOR THAT
    IN THE SET UP----> SYSTEM OPTIONS ----> MISCELLANEOUS
    I CHECKED THE CHECK BOX TO YES FOR
    ALLOW UNEARNED DISCOUNTS
    PLEASE GIVE SOLUTIONS FOR THIS
    THANKS IN ADVANCE
    PRINCE

    Hi
    Thank You Ketter Ohnes for Reply,
    AR: Setup: Receipts: Receivable Activities
    When i am doing above set up it is giving the following error.
    PLEASE DEFINE A PARTY TAX PROFILE FOR OPERATING UNIT & ORG_ID
    Thanks and Regards
    Prince

  • How to create a method with an interface parameter?

    Hi there.
    I would create a method with an interface parameter. I mean this:
    public interface MyInt {
        public void method(int i);
    public class SubClass implements MyInt {
        public void method(int i) {
            System.out.println("The number is: " + i);
    public class MainClass {
        public MainClass(MyInt inter) {
            inter.method(10);
        public static void main(String[] args) {
    (*)     new MainClass(new SubClass());
    }I tried to compile this but do not work (incompatible types on (*)) . Is it possible to do something like that or not?

    I compiled and runned this code on my machine and it works fine.
    How did you did to compile and run this code ?
    Did you put each code on its own file or all codes in the same file ?
    I did like this:
    I put each code in its own file and put all in the same dir, after I did:
    javac -classpath . MainClass.java
    After that, I did:
    java -classpath . MainClass
    I hope this help you
    Lucas

  • Call method of interface controller from component controller

    hi,
    I have created one method in the interface controller of a component. Now i have this method along with attributes to the component controller. Now from the component controller i want to call the method of the interface controller. How do i do it???

    Hi,
    You dont need to call the method from the interface controller when you are in the same component.
    You can call the method which is in the component controller.
    Interface controller is used to expose some methods to a different component.
    Ex Comp a want to expose a method which will be used by comp b then  you need the interface controller in comp a.
    Comp b will use comp a as used component
    then it will invoke the methods.
    Regards
    Ayyapparaj

  • How to create object for a interface (or) how to use ITextModel Interface

    Hi,
    I am new to vc++ and indesign, i am using windows xp as OS and Indesign CS3 as version, now i want to know how to create an object for the ITextModel Interface (or) how to use the ITextModel interface, for getting the selected text and to manipulate the content, for this i tried myself to the best for more than a week,
    but i not get any solution or any idea to do it, so i post this scrap, if any one knows kindly help me immediately, if u want any more details kindly reply me i am ready to give..
    Regards,
    ram

    Hi, Ram,
    as Jongware already has explained in a previous thread, this is the scripting forum, the SDK forum is next door.
    Besides, your question has already been answered over there in SDK forum - with a reference to an existing example, including documented source. There is also plenty more documentation (780 pages alone in the programming guide) and other working examples.
    The brief response was a perfect match to the vague, general scope of the question. If you want more details, be more specific yourself. Do not just touch such major topics as selection, text, object architecture in one sentence to expect a silver bullet. Instead, stick to one detail, find and read the relevant examples and documentation (did I mention the programming guide?) yourself e.g. using keyword search. Quote your code where you're stuck.
    Being new to both VC++ and InDesign is an explanation but no excuse. IMO, same goes for "using windows xp as OS". All together are bad starting conditions if you intend to write a plugin. Even a seasoned C++ programmer with some years of experience in publishing quirks will easily require months, so don't become impatient after just a week.
    If you need quick results and have a programming background such as a recent Java101, reconsider scripting (this forum). It can bring you amazingly far and you'll learn InDesign through a simplified object model. Same principles apply - there is plenty documentation and a good choice of examples.
    Regards,
    Dirk

  • Object created dynamically. how to call a method or interface from it

    Hi Experts,
    I've just created an abap proxy dynamically
       FIELD-SYMBOLS <ref> TYPE any.
        CREATE DATA dref TYPE REF TO
                   (ld_class).
        ASSIGN dref->* TO <ref>.
        CREATE OBJECT <ref>
          TYPE
            (ld_class)
          EXPORTING
            logical_port_name =logicalport.
    This runs OK
    But I  can't call an Interface of the object proxy that belongs to ld_class
      ld_prot ?=   <ref>->if_proxy_basis~get_protocol( if_wsprotocol=>sequence ).
    because the object <ref> is type any, it doesen't runs
    This work' s fine
        MOVE  <ref> ?TO proxy1.
        ld_prot ?= proxy->if_proxy_basis~get_protocol( if_wsprotocol=>sequence )
    if proxy is explicity declarated like class proxy
    But I don't want do it. I want do it dynamically to avoid write data declaration explicity
    I think this is a problem for every data that must be declarated by the form TYPE REF TO
    What must I do ?
    thanks in advance.

    Hi.,
    Check this help Document : [Dynamic Method Call in ABAP Objects|http://help.sap.com/abapdocu_70/en/ABENNEWS-46-OBJECTS-DYNAMIC.htm]
    aslo  [Dynamic method call|Type conflict during dynamic method call.;
    hope this helps u.,
    Thanks & Regards
    Kiran

  • How to create a sophisticated modal interface returning a value?

    Hi,
    I am trying to create an interface in Java with sophisticated features to allow a user to select a date value. It has to be modal, that is, when the user clicks on a button, the frame opens, the user selects a value and the value must be retrieved by the calling frame.
    JDialog is not OK, because it does not allow to design a sophisticated interface. The customization possibilities of JDialog are not enough for my needs. I need to design a full screen with several tables, combox boxes, etc...
    How should I proceed? What type of object should I use / inherit of? What mechanism should I use to retrieve the value selected by the user? I can see (in http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html) that JOptionPane allows to retrieve a value from a modal box. That is exactly what I need, but for a much more sophisticated interface.
    Any ideas? Thanks !

    I had a serious look at the source of JDialog once,
    with a view to doing my own modal stuff. Too much
    like hard work.It's really not that hard, as long as you realize that calling setVisible(true) on a modal dialog suspends the current event pump and starts a new one. Once the dialog is set invisible or disposed, the original pump resumes.
    So, assuming that you've created a class to manage the dialog, you'd implement a show() method like the following (hasn't been compiled, may contain syntax errors):
    // note: this class is responsible for building and displaying
    //       a dialog; it doesn't need to inherit from JDialog, and
    //       becomes a lot cleaner if you don't inherit
    public class MyDialogManager
        private JDialog _myDialog;
        private JTextField _field;
        public MyDialogManager(JFrame owner, String title)
            _myDialog = new JDialog(owner, true, title);
            // build out the dialog here, including text field
        public String showMyDialog()
            _myDialog.setVisible(true);
            // this thread is suspended until the dialog is closed
            return _field.getText();
    }

  • How to access AppModule methods into View Controller project

    Hi,
    I've created AppModule in model project and now I want to use that AppModule methods into viewcontroller project without creating the webservice proxy.
    Thanks in advance,
    Rohit

    Hi,
    I am using Jdeveloper 11.1.1.4.0.
    To use the appModules methods, I am creating the service interface and then I am creating the webservice proxy into another view controller project and access the appModule methods.
    Now, I don't want to create the webservice proxy. I want to directly access the appModule methods.
    Thanks,
    Rohit.

  • How to create a virtual ethernet interface in arch ?

    I have subscribed to a distant VPN service. My computer acts as a VPN client and creates a new interface tun0 each time the VPN is active.
    I want to only route the ip traffic from Transmission through VPN
    I tried to follow the tutorial from here (sorry it's in french) but this tutorial is for debian-based distribs.
    Since the VPN may have a dynamic IP, this tutorial proposes to create a 2nd virtual ethernet interface with a fixed IP adress. iptable is then used to perform NAT translation between the IP of this 2nd virtual ethernet interface and tun0.
    With debian-based distributions, the creation the this new virtual ethernet interface is managed by adding the following lines to the file /etc/network/interfaces :
    # The secondary loopback network interface
    auto lo:1
    iface lo:1 inet static
    address 192.168.0.1
    netmask 255.255.255.255
    I'm not sure how to perform this in arch. I read a lot about the ip command and I think that the solution may be something like that :
    ip tuntap add dev lo1 mode tap
    but I'm not sure and moreover, I don't know how to give a fixed IP adress (i.e. 192.168.0.1) to this new interface
    Any help would be really appreciated.

    It's just a wild guess, but maybe https://wiki.archlinux.org/index.php/Systemd-networkd would help?

  • How to create a method for reading a file

    i tried to make it as static method for reading a file and
    then to return string
    is this code correct?
              public static String fileMaterial(String fileName)
                   fileReader = new BufferedReader(new FileReader(fileName));
                   info = fileReader.readLine();
                   while(school != null)     {                    
                        return info;
                        info = fileReader.readLine();

    I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
    BuffIO new = BuffIO.fopen("fiilename", "r");
    String s;
    if((s = new.fgets()) == null)
    System.err.println("error reading file: " + new.ferror());
    That would be waht the calling program does

  • How to create a WAP/HDML interface to Calendar Server?

    I am charged with creating a WAP/WML/HDML interface to an installation of the latest version of iPlanet Calendar Server.
    I need all the information I can get on going about this. To my understanding, I'll need to use WCAP to effect conversions of Calendar's XML via XSLT.
    I'm completely unfamiliar with WCAP.
    Could somebody point me in the right direction?
    Thanks and forum karma,
    FZ

    Sort of. I found this article below that helped me to connect to the remote CF server using MXML. It seems that you have to create a regular project in Flex with Aplication Server Type set to None and connect to CF using the endpoint attribute of the RemoteObject MXML tag or via AS.
    http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/200
    However I found out after getting error using the AS3 code to use the endpoint property that
    mx.rpc.remoting.RemoteObject does not support  the "endpoint" property
    whereas mx.rpc.remoting.mxml.RemoteObject does. See link below
    http://www.mail-archive.com/[email protected]/msg101439.html//www.mail-archive.com/[email protected]/msg101439.html
    So I had to change my AS3 code by adding a new channel to my RemoteObject using a code similar to the one on the link below (Note that this code uses PHP, when I instantiate myRemoteObject, I do so informing that the destination is "ColdFusion" [new RemoteObject("ColdFusion")], so no need to set destination as in the code on the link below
    http://tech.groups.yahoo.com/group/flexcoders/message/120115
    I hope that helps you.

  • How to Create A Method that reads out JAVADOC form JAVASRC

    Hey everyone!
    I need to develop a Method that reads out the JavaDoc from A certain Javasrc-File.
    That method should look like this :
    String readJavaDoc(String MethodName, String src)
    So the first Parameter is the Name of the Method to witch the JavaDoc should be retrived.
    E.g. :
    String s = test.readJavaDoc("getName", "Foo.java");
    -> read out JavaDoc from Foo.java and retrive only Documentation to the Mehtod "getName()".
    Is this possible or somithing like this??
    Thanks for any help!
    P.S. Sorry for my bad english.

    I have a feeling that you didn't fully think this through. What do you do in case of overloaded methods? Which Javadoc do you return?
    Apart from that, it'd require either some text parsing, or you could try to find a library that can deal with Javadocs. I'm sure some like those exist. Google a little. You'll find stuff like this:
    http://java.sun.com/j2se/javadoc/faq/index.html

  • How to create  in the Interface controller of a component

    Hi  Gurus............
    Could any one tel  How to create a method  in the interface controller of component
    and  use that componet  into other  comoponent as  Used Contoller .
    I  Found  following  Tutorial  but it was not cleared  Description.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f
    Thanks in Advance.

    Hi all,
    My actual requirement is as follows..
    I have implemented some functionality in One component .
    Here I  want to create a new method in the interface controller, so that I should be able to access this method in another component by declaring this component as used component in another one.
    My problem is, I am unable to create new method in interface controller of my component,
    It is appearing i n 'disabled' mode.
    Can any one please suggest me the appropriate solution?
    Thanks in advance
    SivaKumar

  • How can we call the method of used controller?

    Hi All,
       i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
    I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view  WDA1
    Please help me to resolve this....
    Regards,
    Ravi

    You can not directly call view's event handler from other component.
    create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
    Now, you can call the interfacecontroller's method
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
      l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_<comp usage name>( ).
      l_ref_INTERFACECONTROLLER->Save_Rr(
        STATUS = '01'                       " Zvstxrrstatus
    save_rr is the method of second component controller

  • How to call a method of a view in popup view

    Hi Experts,
    I have created WDJ program. It has  3 views - view1, view 2 and 1 pop up view. view1 and view2 are in window1. popup view is in window2.
    There are input and output plugs in view1 and view2. view1 and view2 are connected by navigation links and input / output plugs. I have created fire plug methods for link between view1 and view2. These fire plug methods are part of view1 and view2.
    How we can access this method from component controller?
    In fact I want to access the methods from popup view. I have created some method in component controller. I can access component controller methods from popup view.
    My question is how we can access the fire plug methods of view1 and view2 in component controller.
    Regards,
    Gary

    Hi Jeetendra,
    I have created event in component controller.
    I have also created event in pop up view. How I can subscribe the event of component controller in pop up view.
    I have written following code in pop up view
    public void onActionevent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionevent(ServerEvent)
        wdThis.wdGetTest1Controller().WD_EVENT_NEWEVENT();
    However it is not getting complied. I am getting message
    The method WD_EVENT_NEWEVENT() is undefined for the type IPublicTest1     
    Popup.java     test1/gen_wdp/packages/test1     line 168
    Regards,
    Gary

Maybe you are looking for