Regarding methods in webdynpro

Hi,
   I am new to webdynpro.I am familiar with creating view,attributes etc.
  Can any one give an idea on wat these wd_context->get_child_node( name = `DATA` ).
elem_data = node_data->get_element(  ).
OR
node_ui = wd_context->get_child_node( name = `UI` ).
  elem_ui = node_ui->get_element(  ). etc  do.
What does these mean or can any one provide documentation on wat these do.

hi ,
Go through this link.
node_ui = wd_context->get_child_node( name = `UI` ). is creating the reference to the root node.
elem_ui = node_ui->get_element( ). etc do. creating the reference to the node which is next to the rootnode.
Web Dynpro ABAP Demonstration Videos
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm

Similar Messages

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Calling a potal application method in webdynpro component(class)

    Hi All,
    I have a requirement where i need to call a method created in a portal application(.par) in a webdynpro component.
    Any Pointers??
    Regards
    Radhika Kuthiala

    hi radhika,
    You need to create a portal service to call that method from webdynpro.
    I am providing u a url, hope it will help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9
    Regards,
    Ravi Shankar

  • Calling custom Infotype method from Webdynpro Abap

    Hi Experts,
    I am working on an application where i need to call a method of a custom defined infotype.
    I have done this -->
    1. Create a custom infotype 9111
    2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
    3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
    i want to call methods IF_HRPA_INFTY_BL~MODIFY,
    IF_HRPA_INFTY_BL~INSERT
    However when i call these method from webdynpro abap this method does not work.
    where as when i try to insert an entry using PA30 transaction it works.
    Does anyone know why does this happen and what is the solution?
    Regards,
    Ashish Shah

    Hi Ashish,
    You need to create method inside your assistance class, the class your webdynpro component talks to.
    Within the methods of Assistance class you will have to create instance of ZCL_HRPA_INFOTYPE_9111 and call its  method IF_HRPA_INFTY_BL~INSERT  passing the data.
    Cheers
    Prashant

  • Accesing method of WebDynpro DC through JAVA DC

    Hi,
    I have a requirement where a JAVA DC needs to use a WebDynpro DC as a Used DC. WebDynpro DC has a public part and its interface controller has method (eg: addmethod(int a, int b) )defined to access the business logic
    I know how to add a WebDynpro DC to another WebDynpro DC as a Used DC and use it.
    The question i am asking is:
    There is a JAVA DC A which needs to use a WebDynpro DC B as its used DC. I have added the DC B as a used DC in DC A.
    Now, In the JAVA DC A's class, what is the coding that I have to do to access the method in WebDynpro DC B.
    Imagine there is a method in WebDynpro DC B called addmethod(int a, int b). And, any DC using this DC B can access this method through its interface controller.
    What is the code that I have to write in the JAVA DC A so that I can access the method addmethod(int a, int b) in the interface controller of WebDynpro DC B ?
    Tx in advance
    Cheers,

    Hi Navneet,
    you know the references in EAR project. ?
    it is in application-j2ee-engine.xml file.
    add reference for your web dynpro project there

  • Regarding get_parameter_field method in webdynpro abap

    Hello Gurus,
    We have a requirement in to prepare selection screen.we are implimenting selection screen with two select options and one parameter using add_selection_field and add_parameter_field methods respectively.now i need these values at runtime.so,ihave used two methods for this are get_range_table_of_sel_field and get_parameter_field .but the method get_parameter_field is not working properly.how can i get parameter value at runtime.this is the correct metod or not to get the parameter value at runtime.
    Could anyone  suggest me solutions?
    could anyone  send me sample code or reference links if possible.
    Thanks in Advance for your replies.
    Regards,
    babu

    Hi Rajasekhar,
    Please go through below wiki. It uses another way to get data from all selection-screen items.
    [Complex Select Option USage|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages]
    I hope it helps.
    Regards,
    Sumit

  • How to add set attribute method in webdynpro abap using code wizard.

    Hi developer,
    I am new to webdynpro abap , i have developed a small component from sap technical abap but i am not able to add the set attribute method using read context node /attribute in wizard code ,pleae guide me in solution.
    thanks,
    ravi.

    Hi,
    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !
    regards
    Fred

  • How to see VIEW and METHODS in webdynpro applications ?

    Hi ,
        I am New to WEBDYNPRO applictions , How can i see
    ABAP Webdynpro Application ZAPPROV View V_GETLIST Method VALI_APP....and  BOR Object ZBUS2081 get_property approverlist changing container.....Can any one kindly let me know .
    Regards,
    Veera

    open transaction SE80
    in the repository browser, select Webdynpro component/interface in the dropdown.
    type the name of your webdynpro component and press enter.
    The component will open up, it will have the views, applications that you have created in this component....you can see them as it is required.
    On the left tree, there will be a node for VIEWS, open it and find your view V_GETLIST in it. The view wil open up on the right....there you can find the tab methods in the end (right most)....a list of methods will be displayed....double click on the method name and you will see the code

  • Regarding graph in webdynpro

    Dear Frds
      i am getting  x and y values from db
    i want to draw graph based on the above x and y values..
    Is it possible to draw graph in webdynpro...
    like we normally draw graph in barcharts.......
    Thanks in advance
    Kumar

    Hi Shravan,
                     You can draw Barchart & other graphs too. But you need to configure IGS server.
    Check this [tutorial|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#60]
    regards,
    Siva

  • To access context values in java util methods in webdynpro java

    My requirement is to access the wdcontext values in the my util classes.
    kindly  suggest how to access the context value in my util class
    Regards
    Priya

    The context reference must be passed to the .java class in order to access same in the .java
    for example,
    Change MyUtil.java - get the reference to this file.
    public class MyUtil {
    //make a local variable of context element type.
    private IPrivateCompView.IHashContextElement local_context;
    //add context type in Constructor
    public MyUtil (IPrivateCompView.IHashContextElement local_context, /*rest of params*/){
            this.local_context = local_context;
            //.... rest of initialization
    In Webdynpro, initialize the call by passing the context reference.
    IPrivateCompView.IHashContextElement hashmap = wdContext.currentHashContextElement();
    //initialize my class
    new MyUtil( hashmap, /*rest of params*/);
    regards,
    Nikhil

  • Regarding Events in webdynpro

    Hi all,
    I understood the concept of action,it is if we create action and assign it to any UI element ,then in "onactionmethod",we will write the required code.....,
    but I am not able to understand the concept of event.
    what is event?how does it work?how to handle it?
    wdThis.wdFireEvent<eventname>;
    if we write this piece of code ,where the control goes and what happens?
    Thanks in advance.

    Hi,
    the Events are neccessary for example calling a method of a View from the Component Controller.
    You can do that by creating an Event on the Controller, and creating an Event Handler
    int the Method Tab of the view. In the Eventhandler you can select the Event that should
    be listened to.
    Now if you fire th event on the controller like this: wdThis.wdFireEvent<eventname>;
    The according eventhandler will be executed in the view.
    Hope this helps,
    Regards,
    Dennis

  • Regarding method used in alv

    hi,
    i am new to this forum,can anybody tell mme which method is more efficient in ALV REPORT:-
    1.)  DECLARING TYPES AND WORK AREAS
                     OR
    2.)  DECLARING INTERNAL TABLE AND PASSING IT IN FUNCTIONS.
    PLZZZ ANY BODY GIVE EXAMPLE OF 2 ND OPTION AS I  HAD MADE REPORT  BUT D OUTLOOK SEEMS TO BE OUTDATED AS COMPARE TO 1ST METHOD.

    Hello and Welcome,
    As far as i have worked...there is no such categorisation as using
    1.) DECLARING TYPES AND WORK AREAS
    OR
    2.) DECLARING INTERNAL TABLE AND PASSING IT IN FUNCTIONS.
    Each has there own set of plus and minus points..we do a mix of all the above to suit the requirements given..sort of (1) AND (2)
    eg:
    Declaring types:The main advantage is that unless you do a 'data' initialisation no memory is used and you can create multiple objects of the same structure if we are using types..so in short with types we can also create a work area as well as an internal table
    Types : Begin of demo_types,
                date type sy-datum,
                screen type sy-dynnr,
               end of demo_types.
    data : Internal_table1 type table of demo_types with header line.
    data : Internal_table2 type table of demo_types.
    data : work_area     type demo_types.
    we can declare internal table with header line if the choice is not to use a separate work area for instance while looping which can be done as
    loop at internal table ....endloop...."with headerline
    loop at internal table into workarea...endloop...."without/with header line
    <u><i><b>so ---> if you have large data with complex calculations we need all of what you have mentioned in points 1 and 2....If there is a specifIC doubt ..please revert back..and reward if helpful..to encourage more healthy answers to the query
    the query is very general and the more and more you work on a report...the choice will come naturally...just in case you need more examples in ALV please refer the following programs(go to se38 -> BCALV* -> F4 --> you have list of ALV programs</b></i></u>
    ]BCALV_EDIT_01        Switch on and off the ready-for-input status of the entire grid
    BCALV_EDIT_02                  Define ready-for-input status at cell level
    BCALV_EDIT_03                  Verification of modified cells
    BCALV_EDIT_04                  Delete and append rows
    BCALV_EDIT_05                  Checkboxes
    BCALV_EDIT_06                  Dropdown Listbox at Column Level
    BCALV_EDIT_07                  Dropdown Listbox at Cell Level
    BCALV_EDIT_08                  Integrate Non-Standard F4 Help
    BCALV_GRID_01                  Processing Print Events
    BCALV_GRID_02                  Display Detail List in Dialog Box Container
    BCALV_GRID_03                  Detail List in Dialog Window
    BCALV_GRID_04                  Display Exceptions (LEDs or Traffic Lights)
    BCALV_GRID_05                  Add a Self-Defined Button to the Toolbar
    BCALV_GRID_06                  Define Self-Defined Context Menu
    BCALV_GRID_07                  Define a Menu in the Toolbar
    BCALV_GRID_08                  Define a Menu with Default Pushbutton
    BCALV_GRID_09                  Saving Options for Layouts
    BCALV_GRID_10                  Load a layout before list display
    BCALV_GRID_11                  Test for new layout function modules
    Regards
    Byju

  • API - method for Webdynpro Java iview functionality of Print

    I know.. you would love to post me with n different blogs and forums discussion about how to print from webdynpro java application.
    But lets read before what i am looking for..
    There is standard "Print" function available on webdynpro for java iview.. and layout and all its just fine for us. though we want to trigger this event from a screen button. as going to iview properties is very user friendly.
    I was looking for some iview api which can help me.. We are on NW 7.01 SP6 at the moment. And this is for standard ESS applications.
    Thanks a lot for your inputs.
    Regards,
    Sudhir

    Hi
    You can write Java program for printing. Call the java class from screen (button or Url). Also you can write the content to XMl file.open the xml file in action. so that u will get print preview and print option.

  • Regarding  methods  in oops

    hi
    sap guru's
    can  anybody give   some  simple sample  classes  containg  methods,
    inheritance,    very urgent
    Regards
    Spanadana

    Hi spandana,
    Class Definition
          CLASS main DEFINITION
    CLASS main DEFINITION.
      PUBLIC SECTION.
        METHODS add_data IMPORTING i_data TYPE i.
        METHODS get_data EXPORTING e_data TYPE char20.
        CLASS-METHODS print IMPORTING value TYPE char20.
      PRIVATE SECTION.
        DATA atribute TYPE char01.
    ENDCLASS.
    Class Implementation
          CLASS main IMPLEMENTATION
    CLASS main IMPLEMENTATION.
      METHOD add_data.
        ADD i_data TO atribute.
      ENDMETHOD.
      METHOD get_data.
        CONCATENATE 'Atribute value' atribute
                                   INTO r_data SEPARATED BY space.
      ENDMETHOD.
      METHOD print.
        WRITE value.
      ENDMETHOD.
    ENDCLASS.
    Creation Object
    DATA: object_reference TYPE REF TO main.
    DATA: var type char20.
    Instance Creation
    CREATE OBJECT object_reference.
    Calling Methods
    CALL METHOD object_reference->add_data( i_data = 3 ).
    var = object_reference->get_data(  ).
    CALL METHOD main=>print EXPORTING value = var.
    The atribute value is printed
    " Atribute value 3 "
    For more refer Wiki ->Abap developments->abap objects-->beginer examples
    Regards,
    Shiva K

  • Regarding LDB in webdynpro

    Hi,
    like LDB(PNP,PCH,PAP etc) in se38 Report for HCM module is there any standard way to declar a LDB in webdypro report.Kindly help me if anybody knows...
    Regards,
    Raj.

    Hi,
    Post this in WebDynpro forum for the quick replies......

Maybe you are looking for

  • Test in the morning...having issues

    I cannot figure out what I am doing wrong here, I am trying to go through all my example programs and redo exercises but have hit a snag with this one, any ideas? public class Employee private String social; private String name; private int vacation;

  • How do I get rid of the spinning colour wheel when connecting my iphone or ipad to my mac and starting itunes?

    When I connect my iphone 4 or ipad 3 and start itunes, it freezes and the arrow turns to a spinning colour wheel.  Was jailbroken in the past but have updated to latest ios and itunes.  Used to be able to sync my devices on my mac, but now it just fr

  • How to get the output path in Java?

    Hi all, is there a way (method) to get the output path (where compiled classes are put) in Java? thx a lot! Michele

  • Problems with foreign characters

    I've had the problem of iTunes not displaying foreign (Japanese in my case) characters. I do have proper language packs installed and I've seen these characters work on other people's computers. My iPod displays them perfectly too. Is there a setting

  • Trying to Compile CVSRenderer.java in Apps Server

    Hi, I wanted to do some changes to CVSRenderer.class in oracle.apps.asf.html. Hence i took the .class file from the server and i decompiled it and did the changes to the .java file and when i wanted to push it back to the server and compile this CVSR