Blank Table in Webdynpro

Hello,
I have developed a simple Webdynpro for java application which gets the Employee data based on the Employee Id but when I enter an id and click on the search button nothing displays in the table I have included on the screen.
I have placed relevant code in all the places and did the binding too.
Any help would be highly appreciated.

Hi
Your table may be coming blank due to improper binding of node or because your backed is not returning values properly. First check whether The BAPI or the DB Query that you are firing is returning any values.
Also post the code you have written.
cheers
Deepu

Similar Messages

  • How to refresh interal table in Webdynpro ABAP

    Hi all,
    I want to delete/free/refresh interal table in webdynpro abap.
    One of the form gave solution to pass blank internal table?
    I cleared node and itab in webdynpro, but internally SAP doesn't delete the context node and itab values.
    Please help me in how to refresh itab in webdynpro abap.
    Regards,
    Prasad

    Hi Srinivas,
    it doesn't work.
    I wrote like this in action list method.
    method lta_task.
    if not lcontext_node_task is intial.
    context_node_task->invalidate().
    endif.
    select.......
    populate data into internal table lt_task_output_table .
    if not lt_task_output_table  is inital.
        context_node_task = wd_context->get_child_node( name = 'TASK_PER').
        context_node_task->bind_table( wd_this->lt_task_output_table ).
    endif.
    endmethod.
    Starting of the mehod i have written to inavlidate, before upating the itab
    but donesn;t work. Where should I write the code
    Reagards,
    Prasad

  • ABAP Webdynpro: Creating a table on webdynpro screen to enter new data.

    Hello Experts,
    Does anyone know, how to create a  table on webdynpro screen that can be used to enter new data in database?
    I have tried to create a Table UI element (with Standard Cell Editor as Input Field) but it is "Display only" if there is no data in the table. This means, while you can use it to modify the data if some data already exist, but you cannot use it to enter new data if no data already exist. What I am looking for is something similar to a Table Control (or Step-Loop) functionalty of a traditional (non webdynpro) SAP screen. How to achieve this in Webdynpro for ABAP?
    Thanks in advance.
    ABAPer

    Even if no data is not there,  you can pass blank work areas to table, so now table will blank rows where you can enter the data even if  previous data is not there.
    below is the sample code to get blank rows in table in  order to enter data.
      DATA LO_ND_N_EDUCATION1 TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_N_EDUCATION1 TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_N_EDUCATION1 TYPE WD_THIS->ELEMENT_N_EDUCATION1.
    navigate from <CONTEXT> to <N_EDUCATION1> via lead selection
      LO_ND_N_EDUCATION1 = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_N_EDUCATION1 ).
    DATA: ET_DATA TYPE WD_THIS->ELEMENTS_N_EDUCATION1,
            EW_DATA TYPE WD_THIS->ELEMENT_N_EDUCATION1.
      DO 10 TIMES.
        APPEND EW_DATA TO ET_DATA.
      ENDDO.
    get element via lead selection
      LO_EL_N_EDUCATION1 = LO_ND_N_EDUCATION1->GET_ELEMENT(  ).
      LO_ND_N_EDUCATION1->BIND_TABLE( NEW_ITEMS = ET_DATA SET_INITIAL_ELEMENTS = ABAP_FALSE ).
    now table will have 10 rows, here node name is N_education1.
    Thanks and REgards
    Srinivas

  • Timeout Short Dump on a Data Query to a blank table.

    Hi,
    My program gives a short dump on quering a blank table. The dump says timeout.
    what could the possible problem be.
    regards,

    Runtime Error          TIME_OUT                                                       
           Occurred on     02/19/2009 at   10:35:35                                                                               
    Time limit exceeded.                                                                               
    What happened?                                                                               
    The program "SAPLE31C" has exceeded the maximum permitted runtime without             
    interruption, and has therefore been terminated.                                                                               
    What can you do?                                                                               
    Print out the error message (using the "Print" function)                              
    and make a note of the actions and input that caused the                              
    error.                                                                               
    To resolve the problem, contact your SAP system administrator.                        
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer              
    termination messages, especially those beyond their normal deletion                  
    date.                                                                               
    Error analysis                                                                               
    After a certain length of time, the program is terminated. In the case                
    of a work area, this means that                                                       
    - endless loops (DO, WHILE, ...),                                                     
    - database accesses producing an excessively large result set,                        
    - database accesses without a suitable index (full table scan)                                                                               
    do not block the processing for too long.                                                                               
    The system profile "rdisp/max_wprun_time" contains the maximum runtime of a
    program. The                                                              
    current setting is 5400 seconds. Once this time limit has been exceeded,   
    the system tries to terminate any SQL statements that are currently        
    being executed and tells the ABAP processor to terminate the current       
    program. Then it waits for a maximum of 60 seconds. If the program is      
    still active, the work process is restarted.                                                                               
    successfully processed, the system gives it another 5400 seconds.          
    Hence the maximum runtime of a program is at least twice the value of      
    the system profile parameter "rdisp/max_wprun_time".                                                                               
    How to correct the error                                                                               
    You should usually execute long-running programs as batch jobs.            
    If this is not possible, increase the system profile parameter             
    "rdisp/max_wprun_time".                                                                               
    Depending on the cause of the error, you may have to take one of the       
    following measures:                                                        
    - Endless loop: Correct program;                                           
    - Dataset resulting from database access is too large:                     
      Instead of "SELECT * ... ENDSELECT", use "SELECT * INTO internal table   
      (for example);                                                           
    - Database has an unsuitable index: Check index generation.                                                                               
    You may able to find an interim solution to the problem                    
    ~~~~~~~
    The line to which it points is a select query on a table that has not records.

  • Table in webdynpro

    hi, i have  displayed a table in webdynpro in that the first column is a listbox. when i select a value it should display the corresponding details in the other columns.

    Below is my coding inside the dropdown's event handler ONACTIONON_MATNR_SELECT
    METHOD onactionon_matnr_select .
      DATA: lr_element TYPE REF TO if_wd_context_element,
            lv_index_table TYPE i,
            lv_index TYPE i,
            lt_node TYPE wd_this->elements_node,
            wa_node TYPE wd_this->element_node,
            wd_node TYPE REF TO if_wd_context_node,
            wa_makt TYPE wd_this->element_makt.
    *** Get row number from which dropdown value was selected
      lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
      lv_index_table = lr_element->get_index( ).
      wd_node = wd_context->get_child_node( 'MAKT' ).
      wd_node->set_lead_selection_index( index = lv_index_table ).
    *** Get the index of value within dropdown which is selected
      lv_index = wdevent->get_int( name = 'INDEX' ).
    *** Fetch all the dropdown values into an internal table
      wd_node = wd_context->path_get_node( 'MAKT.NODE' ).
      CALL METHOD wd_node->get_static_attributes_table
        EXPORTING
          from  = 1
          to    = 2147483647
        IMPORTING
          table = lt_node.
    *** Obtain the value selected in the dropdown by the user using the index obtained
      READ TABLE lt_node INTO wa_node INDEX lv_index.
      wd_node->set_attribute( EXPORTING name  = 'MATNR'
                                        value = wa_node-matnr ).
    **** Using conversion exit routine for MATNR so that SELECT statement would work properly
      CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
        EXPORTING
          input        = wa_node-matnr
        IMPORTING
          output       = wa_node-matnr
        EXCEPTIONS
          length_error = 1
          OTHERS       = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *** Obtain language & description fields from MAKT for same value as selected in the dropdown
      SELECT SINGLE spras
                    maktx FROM makt INTO wa_makt WHERE matnr = wa_node-matnr.
    *** Fill the fetched values into the corresponding textfields of table
      wd_node = wd_context->get_child_node( 'MAKT' ).
      CALL METHOD wd_node->set_static_attributes
        EXPORTING
          index             = lv_index_table
          static_attributes = wa_makt.
    ENDMETHOD.

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • Binding and displaying data to table in webdynpro java

    hi all,
    i want to know how to bind the output values to table in webdynpro java.
    i know how to bind values in context to table,but if we want to display the values from database(back end ) and display in table present in the view.
    eg: i have table in view and want to get values from backend(SQL server) and display it in that table.
    plz help me to know ..
    thanks
    sirisha

    Hi Saisirisha,
    Try this.
    1> Take a Value Node(Employee) cardinality 0..n.
    Employee Structure
    Employee
    |------Surname(Attribute)
    |------FirstName(Attribute)
    |------Category(Attribute)
    2> Bind this value node(Employee) in the View datasource of table.
    3> Try the code inside wdDoInit method.
    try {
         // Load the JDBC-ODBC bridge
         Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
         // specify the ODBC data source's URL
         String url = "jdbc:odbc:SSPer";
         // connect
         Connection con = DriverManager.getConnection(url,"North","Ken");
         // create and execute a SELECT
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery
         ("SELECT Surname,FirstName,Category FROM Per");
         while (rs.next()) {
         // get current row values
         String Surname = rs.getString(1);
         String FirstName = rs.getString(2);
         int Category = rs.getInt(3);
         //create table row and add the value in the table
         IPrivate<Put View Name>.IEmployeeElement empElm = wdContext.createEmployeeElement();
            empElm.setSurname(Surname);
         empElm.setFirstName(FirstName);
         empElm.setCategory(Category);
         wdContext.nodeEmployee().addElement(empElm);
         // close statement and connection
         stmt.close();
         con.close();
    } catch (java.lang.Exception ex) {
         wdComponentAPI.getMessageManager().reportException("Exception : "ex.getMessage()+,true);
    http://www.developer.com/java/data/article.php/3417381
    Regards,
    Mithu

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

    Hi Pradeep,
    Please go through the following article on implementation of filtering and sorting:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    The article contains a link to a sample application using the TableSorter and TableFilter Class.
    The same classes can be used by any other web dynpro application. Download the sample application and copy the classes. In case of a specific requirement, modify the TableSorter and TableFilter classes.
    Regards,
    Kartikaye

  • 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

  • Make entries in a table in webdynpro abap

    Hi all,
    We have a requirement to make multiple entries in a Table in webdynpro ABAP.
    We have created a table and inserted inputfield as cellEditor
    but at runtime it is being displayed in readonly mode we cannot enter anything in that inputfield.
    inputfield is binded with a context and table is not in readonly mode.
    Please help in this regards
    thanks & regards.....
    Gaurav Makin

    Hi Gaurav,
    Make sure the context node bound to the table has cardinality 0..N.
    When the app starts you probably need to read the table contents from the database or some other source and populate the contect node.
    The table will allow the user to edit values only for the rows that have a corresponding element in the context node.
    If the initial content is empty, i.e. no elements in the context node then the user will not be able to edit.
    You will need to either initialize the context node with a bunch of elements if the number of entries is fixed and known beforehand,  or provide a way for the user to create a new row.
    You can do this by adding a toolbar to the table with a create button with a CREATE action and the following method:
    method onactioncreate.
      data:
        lo_element type ref to if_wd_context_element,
        lo_node    type ref to if_wd_context_node.
      lo_node = wd_context->get_child_node( name = 'your node name here' ).
      lo_element = lo_node->create_element( ).
      lo_node->bind_element( new_item = lo_element set_initial_elements = abap_false ).
    endmethod.
    Regards... Lucio Menzel

  • How can i read local excel file into internal table in webdynpro for abap a

    Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
    thank u for your reply

    Deep,
    File manuplations...............................
    1. At the presentation level:
    ->GUI_UPLOAD
    ->GUI_DOWNLOAD
    ->CL_GUI_FRONTEND
    2. At the application server level:
    ->OPEN DATASET : open a file in the application server for reading or writing.
    ->READ DATASET : used to read from a file on the application server that has been opened for reading
    -> TRANSFER DATASET : writing data to a file.
    -> CLOSE DATASET : closes the file
    -> DELETE DATASET : delete file
    If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
    call function 'GUI_UPLOAD'
    exporting
    filename = p_file
    filetype = 'ASC'
    has_field_separator = '#'
    tables
    data_tab = t_data
    p_file : excel file path.
    t_data : internal table
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • How can I change column name in ALV table in WebDynpro ABAP?

    Hi Everyone,
    I have created an ALV table in WebDynpro ABAP. I have created a context node and added the required attributes there - for the ALV display.
    Now I want to change one columnn name of the ALV table.... Currently it is showing the description of the data element, which I don't want to show. I cannot create a new DE only for this purpose.
    Please let me know how can I change the name of the column.
    Regards

    Hi,
    This may help you to define your own column text in the ALV Table of webdynpro.
    see the below code.
    Here 'STATUS_ICON' is the column of the the output display of the ALV Table of webdynpro.
    "change the label of the report.
    DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
    CALL METHOD l_value->if_salv_wd_column_settings~get_column
    EXPORTING
    id = 'STATUS_ICON'
    RECEIVING
    value = lr_weeknum.
    SET THE LABEL OF THE COLUMN
    DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
    CALL METHOD lr_weeknum->get_header
    RECEIVING
    value = hr_weeknum.
    CALL METHOD lr_weeknum->set_resizable
    EXPORTING
    value = abap_false.
    hr_weeknum->set_prop_ddic_binding_field(
    property = if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
    set the text of the column
    CALL METHOD hr_weeknum->set_text
    EXPORTING
    value = 'C Form'.
    regarads,
    balu

  • 6575722.994:   ADDITIONAL BLANK TABLE CELLS ADDED IN RTF HEADER

    HI all,
    XML:5.6.3
    APPS:11.5.10.2
    Please advice,
    RTF template associated with PO Output for Communication (tempalte uploaded). When previewed,
    data displays correctly.
    When output is viewed from Application, additional blank table cells are added in header area.
    These blank table cells are unwanted.
    Also :
    If I have multiple pages of output, the application is losing the header and footer after the
    first page.
    If I preview the template from Microsoft Word with the same output, the header and footer shows on
    all pages.
    Customer said:
    'not looking for help designing the template - I have a template that gives
    different output when output is viewed in the template builder and compared against the output from the application.
    I am looking for assistance on which output is incorrect, and what cna be done to ensure both outputs are consistent'
    thxs!

    check if you have any carriage return,or extra space in your tag
    or if you are using 'IF' condition try using @inlines.
    these are the general situations were extra space is created in your output

  • How to add blank table for exisiting PDF?

    Hi team,
               I have a PDF which is to display data in a queue order.But i am not sucessful in that case. So for my solution i need to have a blank table in starting page (I mean 1st).So i have no idea how to edit and add a new table to exisiting PDF. Please help me out.Its very urgent.

    You have reached the FormsCentral forum. You need to ask your question on the Acrobat forum.
    http://forums.adobe.com/community/acrobat
    Gen

  • Merge Cells in a blank table

    Can anyone tell me how to merge cells in a blank table. For example - while making the table I may need 3 column in one row and only 2 in the next row. So I merge the cells. I have a laptop and am taking my right index finger and directing the mouse to the cell and then moving and tapping on the adjacent cell with my left index - but I must be doing something wrong because 9 out of 10 times it doesn’t work and I can’t figure out what I’m doing wrong. I’m pulling my hair out.
    THANK YOU

    Zaby,
    You might find it easier to select one cell and then Shift-Arrow to extend the selection.
    I assume that you are just making some kind of form and won't ever want to sort the table. Merging and Splitting cells can gum up the works for subsequent operations, so think before you choose that solution to your formatting problem.
    Jerry

Maybe you are looking for

  • Macbook Pro to Sony HDTV problems

    I've got the mac connected to the TV with dvi to hdmi. I can see the screen background when the computer is starting up but not the log in window. I can see the display preferences, but not the preferences selection window nor anything else from the

  • Mountain Lion download corrupts hard drive!!

    I am trying to re-download Mountain Lion to create a boot jump drive so I can reinstall Mountain Lion clean.  After download I can not open "mount" the installEDS.dmg file.  Error pops up stating invalid checksums and I can not complete the process o

  • Ctrl-Alt shortcuts to switch modules not working

    I'm having trouble with LR 4.1 (Win 7 64 bit) recognizing keyboard input properly. Sometimes it just stops "seeing" ctrl-alt-n (where n=1, 2, 3...) to switch between modules (Library, Develop, etc.). I can do everything else with the keyboard (Tab to

  • "Additional Items found" warning?

    I've had this happen irregularly over the past few years when batch capturing logged clips, I just hit continue, and don't have any problems. Just wondering if anyone's figured out exactly what's going on. For example, I'm working on a relatively sim

  • Reg:Simulation version key issue

    Hi, I am using simulation version key as SIM+++ .But as per document given below:- The valid version numbers for simulation version can be entered in Customizing. You can use the formatting characters + and *:      + means exactly one character