Interfaces in webdynpro java

Hi all,
I have a doubt about the programming in webdynpro java interfaces . what is the main concept underlying in context of a particular view, why to use the follwing code for referring to context attribute
IPrivate<viewname>.I<NodeName> node = wdContext.node<NodeName>();
IPrivate<viewname>.I<NodeName>Element ele = node.create<NodeName>Element();
ele.set<Nodeattribute>("xxxxx");
node.addElement(ele);
Is the context is a Interface ?
please explain me the above code or any relavant documents for Interfaces implementation in webdynpro java
Total no of interfaces in webdynpro java list.
Thanks
prasad

Hi Prasad,
Web Dynpro controller has a data storage area known as the context. This is a hierarchical repository within which all runtime data used by the controller is stored..Context is not an interface in the code you are trying to set some value to the context attribute by getting that particulat context node reference.
Find the below links which explains you clearly about webdynpros and interface concept
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ba2c45-0518-2a10-73be-9b785e10aef1?QuickLink=index&overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a048387a-0901-0010-13ac-87f9eb649381?QuickLink=index&overridelayout=true
Hope it helps.....
Thanks,
Rahul.
Edited by: rahul.girmaji on Dec 12, 2011 6:45 PM

Similar Messages

  • How to add table in SAP Non interactive forms in webdynpro java

    Hi Experts,
    I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
    This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
    Please suggest.
    Thanks,
    Rajani
    Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AM

    Rajani,
    Take a look at below links, it will help you.
    [Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
    [Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
    [How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
    [How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
    Chintan

  • Consuming PI Webservice from Webdynpro Java Not working

    Hello SAP,
    Environment: CE 7.2.
    Resolution expected immediately, Helpful answer is highly appreciated.
    Is the namespace should not exceed 60char for PI Webservice, for executing the webservice from Webdynpro Java.
    I tried with all the options in executing the PI Service from Webdynpro Java, None of the options worked. I am facing the below error while I was calling the PI Webservice.
    I don't see any problem from Webdynpro Java, what ever the procedure I have followed is the standard procedure.
    Fortunately when I execute the service from Webservice Navigator, it is working as expected. The same webservice when I consume it from Webdynpro Java it is not working
    Options tried so far:
    1) Published the Services to Service Registry and there by consuming the PI Service from Service Registry - Not worked
    2) Tweaked the URL with few options - Not worked (Tweaking the URL, ex: portType, Binding)
    3) Changing the Business Systems in PI and there after calling the service - Not worked
    4) Initializing the code, instead of creating Service Controller and calling the PI Service - Not worked.
    5) Created a Provider System and tried to call the PI Webservice from Provider System - Not Worked
    For all the Options, I am facing the same error which is provided in the screenshot.
    Below procedure which I have followed for calling the PI Webservice:
    1) Created Adaptive Webservice Model
    2) Provided PI Webservice URL (It prompts for PI System UserId and Password)
    3) Selected Option - No Service Group Configuration
    4) Provided Logical Destination
    6) Completed creation of Model
    7) Added the model as a UsedModel
    8) Right Click on Comp Contr. and selected Apply Template and Created a ServiceController for the model (Entire mapping to comp contr, Initializing the nodes is taken care by Service Contr.)
    9) Created an Template Action button and there by calling execute method which is auto rendered from CompContr..
    10) Build the project.
    11) Activated the code and Run the Application.
    12) Getting the below error which is showed in the message.
    ERROR MESSAGE:
    Exception on execution of web service on destination 'GetPIHRPeopleData' for operation 'SI_CreateHRPeopleData_OS' in interface 'SI_CreatePeopleCompany_OS'

    Hi Sankar,
    If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
    Please check the code for initialization and execution for the webservice and then test it.
    Best Regards,
    Arun Jaiswal

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • How is the interface between the Java Stack and ABAP stack is achieved?

    How is the interface between the Java Stack and ABAP stack is achieved?..Please send me the answer to [email protected]

    Hi,
    By interface, I assume you mean the connection between the ABAP and the Java stacks in a double stack system.
    The connection from Java to ABAP is through JCo connections defined in the WebDynpro section of the J2EE start page. So Java to ABAP requests are processed through JCo.
    The connection from ABAP to Java is through RFC connections defined in TA SM59. The ABAP to Java requests are processed through RFC.
    Refer https://dsd.esco-salt.com/StartPage/documents/integration/3.html for detailed explanation.
    The UME can be maintained in either ABAP or in JAVA depending on the persistence.
    Refer: http://help.sap.com/saphelp_nw70/helpdata/en/5b/5d2706ebc04e4d98036f2e1dcfd47d/frameset.htm
    Check UME data source configuration.
    Some quick FAQs can be found at:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad47eb90-0201-0010-7cb2-ddfa5ed879ec
    Hope this helps.
    Best Regards,
    Srividya.R

  • Calling RFC with webdynpro java (in NetWaver Dev.Studio)

    Hi,
    I have a RFC like below
    FUNCTION ZSAP_X.
    *""Local interface:*
    *"  IMPORTING
    *"     VALUE(USNAM) TYPE  USERNAME
    *"  EXPORTING
    *"      VALUE(PWD) TYPE  CHAR8
    1-I want to write webdynpro java application to call RFC
    2-Call RFC with USNAM parameter
    3-Get PWD output parameter and write it's value into View TextInput field.
    I wrote application but I did not get PWD (output parameter) value. I checked RFC running poreperly.I did not achieve to get PWD.
    How can I do that?
    Thanks.

    Hi Bala,
    I checked RFC, it is running properly and getting the output value.
    And I used command below, but it produces error
    String X = wdContext.currentPWDElement().getpwd().toString();
    Error:
    java.lang.ArrayIndexOutOfBoundsException: -1
    Thanks.

  • How to transfer parameters to Webdynpro Java application ?

    Hello guys,
    I had developed a Webdynpro Java application "ZWD", it's URL is
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD".
    "ZWD" had 2 input parametere "InputField" and "InputField1" .
    Accroding to SAP Online Help  document, we can transfer parameter Webdynpro application .
    I want to transfer parameters to application "ZWD"  via URL
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD?InputField=Frankfurt" .
    But it failed.
    My questions:
    1. How to transfer parameter to Webdynpro Java application "ZWD" ?
    2. Does it possible that transfer input parameter to Webdynpro application and run the applicaiton via specific URL ?
    BR,
    Louis

    Hi Louis,
    You can refer to the following Bertram's article:
    [Inter-Application-Navigation in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface-technology/wd%20java/wdjava%20archive/inter-application-navigation%20in%20web%20dynpro.pdf]
    The process of accessing the Application URL parameters is explained for Target Component.
    Regards,
    Alka.

  • How to implement paging in webdynpro jave based on search criteria.

    Hi All,
    In a requirement I need to implement paging in webdynpro java development.
    I successfully did it when there is no search criteria is available i.e webdynpro fetched all data from the BO object and I did it using a "indexNO" (unique serial no from 1,2,3,4.....) field available in BO object.
    But when there is search criteria available , i.e the data to be fetched from the BO based on some specific field , at that time the "indexNo"  field of all data fetched based on search criteria are discrete i.e not continious. In that case how to implement the paging concept.
    I am using CE version 7.1 EHP 1.
    Thanks in advance
    Srikanta Satapathy

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • Theme in WebDynpro java callable object

    Hi Experts,
    I have created a portal theme and deployed on the server.
    Now i want to use this portal theme in my WebDynpro java callable object.
    I know how to use themes in WebDynpro application, set the theme in Exit plug of component interface view.
    However in WebDynpro java callable object how do i achieve this?
    here should i use WebDynproCOInterfaceView to set the desired theme to the callable object ?
    or should i set the theme in my Componet's interface view?
    i tried in both but its not working, i can still see the default theme.
    Am i missing anything here?
    Ashish

    Hi Guys,
    Any idea on this one?
    Has anyone done this? are there any SAP Note for this?
    Regards,
    Ashish

  • Webdynpro java and EJB integration

    Hi,
    I am new to Webdynpro Java, would require your help in the following area:
    my requirement is I need to read values from oracle database using EJB/Java Beans and display the same using webdynpro JAVA(as user interface).
    Pls suggest the possible solution with required docs & videos(if possible)
    FYI:
    Tools: NWDS 7.0, SAP portal 7.3
    Thanks
    Nag

    Hello Nag,
    there are two possibilities to use your ejb in WD4J:
    1. Via JNDI Lookup
      try {
            InitialContext ctx = new InitialContext();
            <YourEJBInterface Class> service = (<YourEJBInterface Class>) ctx.lookup(<JNDI-Name>);
      } catch (NamingException e) {
            throw new RuntimeException(e);
    2. Via EJB Model:
    here a guide --> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d2638c-4b04-2d10-d2a3-992fdf1e3d55?quicklink=index&…
    hope this helps.
    Regards
    Tobi

  • Guided Procedures - Integration of Webdynpro Java with Adobe Interactive fo

    Hi All,
    We have created Webdynpro java application with Adobe interactive forms.It works fine in NWDS and also in Webdynpro Content Administrator.
    When we have called this component in Guided Procedures (callable object - Webdynpro (GP Interface)), the form screen has not displayed.
    Plz help us..

    Hi,
    Scenario : User have to log into GP runtime, When he clicks the first action it should display the adobe form. He has to fill the details and submit the form. This form is routed for Approver 1 for review. The first approver will log into portal,view it (UWL),approve it and sent for second approver.The same process happens with the second approver.After both approvals, a BAPI updates the data in the interactive form in R/3
    All the process have to be done in Guided Procedures, then integrated with Portal at the end.
    We have tried creating an Wdynpro Java app with online adobe form and executed successfuly in NWDS and also in Webdynpro content administrator.
    issue:-
    When we create a callable object(webdynpro app(gp interface CO)) in GP and test, we were unable to view the form.
    Now our question is : what are we mising ?
    Is it possible to integrate online interactive adobe form with guided procedures?
    Is our approach to solve the scenario right?
    any links or tutorials will be greatly appreciated
    TIA,

  • UWL application in Webdynpro Java

    Hi
    I have a requirement where I need to replicate the standard SAP UWL feature in a custom Webdynpro Java component.
    The Webdynpro Java component will be a custom screen which will have all the features of the standard UWL.
    When the users launch the Webdynpro application, he should be able to see all the notifications in his inbox and when he clicks on a particular task in his inbox, the task should perform the same things that it does when opened from UWL application. It should be able to trigger webservices or launch UI related to BPM processes.
    Please provide your suggestions on this.
    Thanks and Regards,
    Sayan Ghosh

    Hi Sayan,
    UWL apis will provide you the methods and interfaces to replicate the similar behavior of standard SAP UWL. You can read more about [UWL API|http://help.sap.com/javadocs/NW04S/SPS09/uw/index.html].
    Make sure that UWL services are started in Portal.
    There is a nice tutorial that you can refer for building UWL in webdynpro. Refer - [Accessing UWL Notifications from Web Dynpro Using UWL API|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802bfda2-8a85-2b10-9290-d67da32d0c01?quicklink=index&overridelayout=true]
    Hope it helps.
    Regards
    Abhinav Sharma

  • Folder structure in WebDynpro Java

    Hi Friends,
    An application in STRUTS has a specified folder structure such that all jsp files should be placed in JSP folder,similarly in the case of WEB-INF folder there is a particular format or structure for the same which we follow.
    Similarly in WebDynpro Java,what is the folder structure we follow?
    Whatever we build and compile these meta data is placed at some folder structure,so what is the folder structure we follow.
    Can i get a proper information on this please.
    Thanks and regards,
    Chandrashekar.

    Hi Chandrashekar,
    When you care WD apllication it has default structure, which is
    WD_Application
    WDDynpro
    Models
    Web Dynpro Component Interface
    Web Dynpro Components
    Dictionaries
    Local Dictionary
    Data Types
    SRC
    Configuration
    Mimes
    Pacakges
    PS: this structure created by default.
    Thanks
    Anup

  • Displaying Graphs in WebDynpro Java

    Hello everyone,
    I have an application where I am using WebDynpro Java as an interface. In my application, I have a type heirarchy (XML File) and depending on the the type heirarchy I have to give two input Graphs (graph1 and graph2) to the system. Later, on uploading these three files, we have two Actions (Maximal Join and Projection). Maximal Join is nothing but, generalising the two input graphs and gives an output graph (graph3). For this application I have got Java Classes in an external JAR file. On using those external Java classes and methods I should write the logic in the WebDynpro implementation part.
    So far I have successfully finished upto the design part by importing the external JAR file and also managed to upload the three files (XML file, Graph1 and Graph2) in to the context. Now in the implementation tab of the main View, in the onActionMaximalJoin method I have used the external Java classes of the JAR file and written the logic for the execution of the events. But I am not sure how to catch the output Graph and Display it in webdynpro.
    Can anyone help me out with this. I would be very very thankful for you.
    Thanks a lot,
    Phani.

    Hi Phani,
    If you want to use external jars to display graphs then you should embed that into HTML or JSP and you can display in the IFRAME UI component of WebDynpro.
    But WebDynpro it self supports graphics, you can refer the attached [link|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50c7a90f-21a3-2910-87b5-e1f0e39462ae] for reference. In this case you need not to refer external jars.
    Regards
    Abhilash

  • Xcelsius integration in WebDynpro Java Flash Islands

    Hi,
    We developed a visual composer application with CE 7.20 SPS 03 and we try to integrate a xcelsius gauge in to VC 7.20. It works fine with passing single or multiple parameters to xcelsius with webdynpro java flash islands, but how do we get the value from xcelsius back to webdynpro java.
    How do we have to name the event in webdynpro flash island? Which event is triggered when change a slider or a gauge? Is there any document?
    I need your help.
    Best regards,
    Murat Y.

    Creating Flash Island Events
    To implement the Visual Composer application if data has changed on the Flash island side, we need to define a Flash Island event. In this example, the Web Dynpro application needs to be updated once the user has changed one of the two slider values. The Web Dynpro application will trigger an event that will be handled in Visual Composer. Once you have created a Flash island event entry, you can assign a Web Dynpro action method to be called if the Flash island event is raised.
    1.     Right-click RootElement again and create a SliderCostsEvent and a SliderRevenuesEvent:
    2.     Assign the following attribute values to the Flash island event entries:
    SliderCostsEvent:
    SliderRevenuesEvent:
    Note:
    The Flash island event name must be the same as the name in the corresponding Data Connection Range and Property. For example, in the Xcelsius Data Connection, we defined a Range u201CSliderRevenuesu201D. Once the referring value is changed, the Flash island event SliderRevenues is called (which is bound to a Web Dynpro action method) and also the data is written to the SliderRevenues Flash island property (which is bound to a Web Dynpro context attribute). Once an Action method is called from the Flash island event, the data is transferred to the Web Dynpro context.
    The onAction property points to a method Update(), which you need to create in the FlashIslandView (see implementation following).
    3.     Now we will create the event that will refresh the data in the Visual Composer application. Go to the Events tab of the Component Controller and click New. Enter RefreshData as the event name and click Finish.
    4.     Create the Component Controller method that will be called by the viewu2019s Update method. Go to the Component Controlleru2019s Methods tab and create a new method by clicking New. In the dialog box, select Method and click Next. Enter the name of the method, i.e. updateData and click Finish. Save the application.
    5.     Right-click on this method and select Navigate To  Implementation. This will open the implementation code of this method.
    The method should look like this:
    public void updateData( )  {
        //@@begin updateData()
           wdThis.wdFireEventRefreshData();
        //@@end
    The Update method of the FlashIslandView calls the Update method of the Component Controller; see implementation below:
    public void onActionUpdate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
         //@@begin onActionUpdate(ServerEvent)
           wdThis.wdGetCostRevenueCompController().updateData();
        //@@end
    The Update method of the Component Controller will trigger the event that will refresh the Visual Composer UI with the new data. The reason for the multiple calls is that actions that are defined in the view cannot fire events but they can call a method, so we need to call a Component Controller method that will fire the event.
    6.     Next, you should expose this event in the Interface Controller. Right-click the event and select Copy. Go to the Interface Controller, select the Events tab and paste the event.

Maybe you are looking for

  • Apple Support KB pages open to a white window in Safari, Yosemite

    Cannot view Apple Support KB pages in Safari 8.0 under Yosemite. The URL loads, but displays only a blank white page. Same URL displays fine in Firefox.

  • TS1702 Problem with GameCenter and games?

    So I got a notification to review and update the terms of agreement for the Game Center on my IPhone 4S, when I entered my apple id it told me that no account exists with the Game Center...although I have been using it for months so I dont know how t

  • Java mappings ?

    Hi,       I need some information regarding java mappings in IR. How to Test and Debug Java Mappings? Thanks in advance, siva.

  • Screen no change in BDC call transaction method

    Hi experts Greetings! I have a BDC created in call transaction method for t-code FB01. Data passed successfully to the first screen but when it navigates to the second screen I am not able to pass any data. After debugging I found that the issue was

  • How can I open files in portable disk?

    I am so sorry, but I am very new user of Mac OS. I am trying to open files such as media files and other folders, but I can not see anything when I click my portable disk drive on the screen. How can I open these files and see it?