OnFilter event in Table UI element

Hi,
I need the coding for onfilter event in table ui element. And also i need step by step procedure for 'How to make the filter function possible in Table display'.
ie. How many context nodes to be created, i have mapped on context node with bapi and bind it with a Table ui element.I need to display the filter in that table .Do i need to create on more with same structure  for onfilter or i need two context nodes to be created.
Plz clear me.
I have place the filter icon in Table UI Element. Also i binded the Filter context node Attributes with each column in Table ui element.  I need to make that icon function properly.
Edited by: Ramanan Panchabakesan on Mar 25, 2008 6:51 AM
Edited by: Julius Bussche on Aug 16, 2010 11:57 AM
Forbidden word removed from title...

hi,
on clicking the filter button i got this error
What has happened?
The URL http://<server>/sap/bc/webdynpro/sap/ztabletestapp/ was not called due to an error.
Note
The following error text was processed in the system KCS : Conversion of type g to type l not supported.*
The error occurred on the application server kaar-server9_KCS_00 and in the work process 1 .*
The termination type was: RABAX_STATE*
The ABAP call stack was:*
      Method: IFWDR_INTERNAL_API~ASSIGN_UNTYPED_REFERENCE of program SAPLWDR_RG_PROXY_FACTORY
      Method: ONACTIONFILTER of program /1BCWDY/EPRPAVSQP7YFCH7L2M4F==CP
      Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/EPRPAVSQP7YFCH7L2M4F==CP
      Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
      Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
      Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
      Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
      Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
      Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
      Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Edited by: Ramanan Panchabakesan on Mar 25, 2008 11:11 AM

Similar Messages

  • Logic regarding EVENTS OnFilter and OnLeadSelect for table ui element

    provide me logic regarding EVENTS OnFilter and OnLeadSelect for table ui element for webdynpro abap application.

    OnLeadSelect - What kind of logic do you want?  There are many different things that you could do inthe OnLeadSelect
    onFilter- Generally you use IF_WD_TABLE_METHOD_HNDL~APPLY_FILTER  to perform the filter operation.
    In the onFilter itself you probably just have one line of code:
    wd_this->table_method_hndl->apply_filter( ).
    In your WDDOMODIFYVIEW you probably have this code to capture the table_method_hndl object:
    if first_time = abap_true.
      * Get reference of the table view element
      l_table ?= view->get_element( 'TABLE' ).
    * Get reference to the Filter & Sorting API
      wd_this->table_method_hndl ?= l_table->_method_handler.
    endif.

  • OnFilter in Table UI element.

    Hi,
    I want a Filter functionality in the table ui element. I tried with 'SALV_WD_TABLE' . But it need to click on Filter Hyperlink and then the Filter icon get enabled. My requirement is to display the Filter icon as default it the output.
    Also i want to know the coding for filter event.
    Regards,
    Ramanan

    Hi,
    For the table UI element, you need to define an event handler for onFilter event of the table. Here you have to manually write the code for filtering the values.
    Further, you need to define a context node of cardinality 1..1, selection 0..1. Each attribute of that node must coincide with the data elements of each column that you want to attach the filter to. Then you need to bind the corresponding attributes of the context node to the filterValue property of the table columns for which you want to filter.
    Hope this helps,
    Regards
    Wenonah

  • Error in Event Binding for Table UI element

    Hi,
    I had created a table UI element in my web dynpro component and it worked fine. After a few weeks, while I was making some other changes in the same module and did a syntax check on the component, I got this error "The event binding for element "TBL_ABC" contains errors". There is a "Correct errors" button given along with this error message, which removes the error. But I just wanted to know what is the reason for this error.
    Regards,
    Akshatha.

    Hi,
    Please check for the cardinality of the node which you are using to bind for the TABLE UI element.
    I think the cardinality should be either 1:N or 0:N.
    Give it a try.
    Regards,
    Lekha

  • Table UI element - dynamic cell editor change on runtime

    Hello,
    I have standard table UI element defined on one of the views as part of it's layout, two columns only - KEY and VALUE. Both defined as text cell editor by default. Content of the table is dynamic and different combination of keys and values are presented depending on the app context.
    Recently the need arised to (depending on the key value) change the cell editor type for single rows only, dynamically from text to link to action - and to register a triggable event for that with some logic behind (to open new window when link is clicked).
    Is it possible at all to have a column in Table UI element with different editor types set dynamically on runtime for different rows? Some cells then wolud still be presented as text, some would have a link to action in them.
    If possible can I ask for any hints on how to achieve that?
    I imagine that first I have to get somehow a reference to the UI element created when the view is triggered first time, then after I recieve values from backend but prior (or after?) binding it to the table context I would like to evaulate the keys and change cell editors accordingly. Then for changed editors (link to action) I would like to register triggable events (on action) which would call some custom methods for further processing. Please advice.
    Best regards,
    Marcin

    Hi,
       You can use the cell variants to display different cell editors in different rows.
       First in your table column where you want to display different cell editors insert two cell variants
       and fill the VARIANT KEY for each cell variant and insert textview under one cell variant and input field
       under another cell variant, and bind the text to be displayed to these cell editors, now take an extra
       attribute of type string in your node and bind it to the table column property SELECTED CELL VARIANT.
       Now depending on your requirement change this attribute to any of the VARIANT KEY defined for cell variants. 
    loop at itab into wa.
          if 'YOUR CONDITION'.
            wa-cellvar = 'VAR1'.                 "cellvar is the attribute which is bound to SELECTED CELL VARIANT
            else.                                          " of table column
              wa-cellvar = 'VAR2'.                 " VAR1 and VAr2 are the variant keys of cellvariants
              endif.
              modify itab from wa.
          endloop.
    Hope this solves your problem.

  • Sort a table in a Table UI Element

    Dear Experts,
    how can i give the user a chance to sort the data in a table ui element ?
    In an ALV i can use a toolbar for this. Is there something like this in web dynpro ?
    best regards
    René
    Edited by: René Hölterling on Jan 5, 2009 5:32 PM

    Hi,
    This will help you.
    1. Go to Attributes Tab of your View , Give TABLE_CONTROL in the Attribute Column , Check the Check Box in the RefTo Column & give IF_WD_TABLE_METHOD_HNDL in the Associated Type.
    2. Then create one Event for onSort Event of the Table by Clicking the Create Button . Then Give the Action Name as ON_TEST_SORT and press Enter. 
    UI Element-> table->properties->events->onSort.
    3. Then go to the Methods Tab
    4.Follow the below Code in the Corresponding Methods.
    WDDOINIT:
    method WDDOINIT .
      data LO_ND_MARA type ref to IF_WD_CONTEXT_NODE.
      data LO_EL_MARA type ref to IF_WD_CONTEXT_ELEMENT.
      data LT_MARA type WD_THIS->ELEMENTS_MARA.
      data LS_MARA type WD_THIS->ELEMENT_MARA.
    navigate from <CONTEXT> to <MARA> via lead selection
      LO_ND_MARA = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_MARA ).
    SELECT MATNR MTART MATKL MEINS FROM MARA INTO CORRESPONDING FIELDS OF
             TABLE LT_MARA UP TO 10 ROWS WHERE MATNR LIKE 'A%'.
    Bind Table
      LO_ND_MARA->BIND_TABLE( LT_MARA ).
    endmethod.
    WDDOMODIFYVIEW:
    method WDDOMODIFYVIEW .
    data wd_table type ref to cl_wd_table.check first_time = abap_true.
    Name of the table UI element to be provided
    wd_table ?= view->get_element( 'TABLE' ).
    wd_this->table_control ?= wd_table->_method_handler.
    *Name of the key attribute of the context node to which the table binding is done to be  provided
    wd_this->table_control->set_key_attribute_name( 'MATNR' ).
    endmethod.
    ONACTIONON_TEST_SORT:
    method ONACTIONON_TEST_SORT .
    wd_this->table_control->apply_sorting( ).
    endmethod.
    For more clear information go to SAPTECHNICAl->Tutorials->Webdynpro
    Regards Madhu

  • How to create event in table maintenance generator

    Hi guys,
    I need to create an event for my table maintenace generator such that when the field land1 is filled, the landx field should take its data from t005t table. and the ladnx field should be display only, it can not be modified in table maintenance.
    How can i create an event in table maint. gen? How am i going to do it?
    thanks always,
    mark

    Hi,
    As mentioned in the last post go to the event screen by
    Environment --> Modifications --> Events.
    There you click on new entries and try writing your logic for event 21 i.e. after selecting 21 give some name of your event and write down the logic how you want to do this.
    If event number 21 does not work then try 1. One of these two should work.
    Hope this helps!!!
    Regards,
    Lalit

  • How to Create Event polling table

    hi,
    1)How to Create Event polling table
    2) wahts RPD stands for.
    3) when we are prefer Dynamic variables.
    thanks.
    raj

    1) http://obiee101.blogspot.com/2008/07/obiee-managing-cache-emptyingpurging.html
    2) Repository Project Design ?
    - More than likely the extension RPD was not used by anything else when Siebel Analytics first started using it, no doubt the 'RP' is repository, so use 'Definition' or 'Design' as you like. Im pretty sure there is nothing in the documentation but i've not checked, maybe you could check and let us know?
    3) Dynamic variables would be something like 'CURRENT_MONTH' where the same query does not need to fire per user (ie SESSION variable) but needs to be periodically refreshed. Another use of you dynamic variable might be 'LAST_ETL_DATE' or somethng similar which might implement with your event polling table. By including the Variable within a Business Model, all cache for the Business Model is purged whenever the Variable's value changes.

  • EVENTS in table maintenance Generator

    Hi, can u people help me while using EVENTS in Table Maintenance Generator. Means how can I perform different task using events.

    Hi,
    Using events in table maintenace generator, you can validate the fields, update the fields etc..There are events(01-New Entry), (02-Before Save); (03-After Save) etc... The respective events trigger on the action performed.
    To create events : Goto table maintenace generator screen->Enviorement->Modifications->Events.
    Select the from the list of events and peform based on ur requirement
    Regards
    Shiva

  • Events in table maintenance generator 01

    Hi all,
           I have an urgent requirement regarding the events in table maintenance generator.The requirement is i have a qty field in table i want to change the existing value it should allow only a lesser value.How to use TOTAL and EXTRACT structures.
    it is urgent.please help me out.
    Thanks & regards,
    Kranthi

    Follow the example below:
    form get_vendor_name.
      data w_extract type z_table.
      data begin of w_total.
              include structure z_table.
      data: action,
            mark,
      end of w_total.
      loop at extract into w_extract.
        check not w_extract-z_vend_no is initial.
        select single name1 from lfa1
                           into  w_extract-z_vend_name
                           where lifnr = w_extract-z_vend_no.
        modify extract from w_extract.
      endloop.
      loop at total into w_total.
        check not w_total-z_vend_no is initial.
        select single name1 from lfa1
                           into  w_total-z_vend_name
                           where lifnr eq w_total-z_vend_no.
        modify total from w_total.
      endloop.
    endform.
    Reward points if useful.
    Regards.

  • Web Dynpro Table UI Element - Force Footer visible to false

    Hi Guys,
    Is there any way to force the footer visible property to false, despite the total number of visible row and total number of data available?  The reason I want to do this is because I want to create my own paginator (by page, not by row in standard SAP).
    Also, I was looking at this help page:
    http://help.sap.com/saphelp_nw04s/helpdata/en/23/5e9041d3c72e7be10000000a1550b0/frameset.htm
    However, I found out that many of the Table UI Element properties described here is not available in NWDS 2004s (I am using SPS 09 and also tried on SPS 14).  Anyone knows why ?
    Is there any other way to change the pagination from Row to Page ?
    Thanks,
    Johannes

    Hi,
    Well i understood your problem, but it cant addressed with the existing functionality.
    You need to do it by yourself. First you need to make the visibility of the footer to NONE. Then add UI elements like label for displaying page numbers, inputField and buttons with text "<"(previous) and ">" (next) as text just like a normal footer.
    Now on action of these buttons you have to manipulate the things. Suppose you have 5 rows as 1 page. So if the visibleRowCount property of your table gives you 5 then you can display the label as page1. Dont forget to map an integer attribute to your visibleRowCount so that it will be easier to manipulate. On click of next set the label as Page2 and set firstVisibleRow property of your table to 6 ie to display the next set of 5 records in the next page. now your visibleRowCount will be 10 ie you can check for multiples of 5.
    Is this the thing you want? Just give a try.
    thanks & regards,
    Manoj

  • Dynamic Table UI Element with different data type for each cell

    Hi Experts,
    I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding:
    METHOD set_col_row .
      TYPE-POOLS: icon.
      DATA:
        lv_node         TYPE REF TO if_wd_context_node,
        lv_node_info    TYPE REF TO if_wd_context_node_info,
        lv_element      TYPE REF TO if_wd_context_element,
        lt_attributes   TYPE wdr_context_attr_info_map,
        lv_table        TYPE REF TO cl_wd_table,
        lv_table_column TYPE REF TO cl_wd_table_column,
        lv_text_view    TYPE REF TO cl_wd_text_view,
        lv_image TYPE REF TO cl_wd_image,
        lv_text_edit TYPE REF TO cl_wd_text_edit,
        lv_header       TYPE REF TO cl_wd_caption,
        attribute       LIKE LINE OF lt_attributes,
        lv_index       TYPE string,
        lv_cur_row         TYPE i,
        path            TYPE string,
        lv_value           TYPE string,
        attr_name       TYPE string,
        l_trc_point_id  TYPE string,
        l_num_cols      TYPE string,
        l_num_rows      TYPE string,
        lv_text         TYPE string,
        lv_index2 TYPE i,
        lr_ress_selections TYPE REF TO /its/di_2_cpr_ress_selections,
        lt_comp_tab TYPE cl_abap_structdescr=>component_table,
        ls_comp_tab LIKE LINE OF lt_comp_tab,
        lv_count TYPE i,
        lv_col_count TYPE i,
        lv_col_count_read TYPE i,
        lv_index_read TYPE i,
        lv_num_cols_minus_1 TYPE i,
        lv_bind_lv_value TYPE string,
        wd_standard_cell TYPE REF TO cl_wd_table_standard_cell,
        lv_data_count TYPE i,
        lv_data_count_str TYPE string,
        wd_table_column TYPE REF TO cl_wd_table_column,
        lv_column_id TYPE string.
      FIELD-SYMBOLS:
         TYPE ANY.
    Instanz der Klasse /ITS/DI_2_CPR_RESS_SELECTIONS
      lr_ress_selections = /its/di_2_cpr_ress_selections=>factory( ).
      ASSIGN lr_ress_selections->gr_table->* TO gt_comp_tab.
      ls_comp_tab-name = 'SUMME'.
    APPEND ls_comp_tab TO lt_comp_tab.
    ls_comp_tab-name = 'CELL_VARIANT'.
      APPEND ls_comp_tab TO lt_comp_tab.
      CLEAR ls_comp_tab.
      l_num_rows = num_rows + 1.
      CONDENSE l_num_rows.
      l_num_cols = num_columns + 1.
      CONDENSE l_num_cols.
    UI-Element 'TABLE'
      lv_table ?= wd_this->m_view->get_element( 'TBL_TABLE' ).
      lv_table->remove_all_columns( ).
    Kontext-Knoten 'TABLE'
      lv_node = wd_context->get_child_node( 'TABLE' ).
      lv_node_info = lv_node->get_node_info( ).
      lv_node_info->remove_dynamic_attributes( ).
      attribute-type_name = 'STRING'.
      lv_num_cols_minus_1 = num_columns - 1.
    Für jede Spalte einmal tun
      DO lv_num_cols_minus_1 TIMES.
        lv_index = sy-index + 1.
        CONDENSE lv_index.
        lv_table_column = cl_wd_table_column=>new_table_column( ).
        lv_column_id = lv_table_column->id.
    Spaltenüberschriften setzen
        IF lv_index EQ 1. "Beim ersten Durchlauf --> erste Spalte = "Ressourcen"
          lv_text = text-010.
          sy-index = 0.
        ELSE. "Danach für jede weitere Spalte eine Zeile aus der gt_comp_tab nehmen
          lv_index_read = lv_index - 1.
          READ TABLE lt_comp_tab INDEX lv_index_read INTO ls_comp_tab.
          lv_text = ls_comp_tab-name.
          lv_header = cl_wd_caption=>new_caption( text = lv_text ).
          lv_table_column->set_header( lv_header ).
        ENDIF.
        CONCATENATE 'TABLE.A' lv_index INTO path.
        lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path ).
        lv_table_column->set_table_cell_editor( lv_text_view ).
        lv_table_column->bind_selected_cell_variant( 'TABLE.CELL_VARIANT' ).
        lv_table->add_column( lv_table_column ).
        wd_table_column ?= wd_this->m_view->get_element( lv_column_id ).
    *****************Test Cell Variant*************************************************
        IF lv_index GT 1.
          LOOP AT .
              IF sy-tabix EQ lv_cur_row.
              Name zuweisen
                ASSIGN COMPONENT 'NAME' OF STRUCTURE .
              Zuweisen ob Blatt oder nicht
                lv_element->set_attribute( name = 'NAME' value = lv_value ).
                ASSIGN COMPONENT 'IS_LEAF' OF STRUCTURE set_attribute( name = attr_name value = lv_value ).
              ENDIF.
        ENDLOOP.
    Now my problem is, that I need for every ROW of my table UI Element a different cell editor. I know how to change it for the column. But is not my issue. I want to have images (traffic lights red and green) in some rows. The other rows should have numbers. The coding works, so that I have all the data at the right place in my table, only the images are shown as a string, because the cells of these rows have the cell editor Text_View. I tried something with cell variants (with cl_wd_table_standard_cell), but it was not possible for me to get a cell variant "image" in these cells/rows were I need it. 
    I hope you understand my problem and now what to do here.
    Thanks a lot in advance.
    Best Regards,
    Ingmar

    Hi Experts, I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding: METHOD set_col_row . TYPE-POOLS: icon. DATA: lv_node TYPE REF TO if_wd_context_node, lv_node_info TYPE REF TO if_wd_context_node_info, lv_element TYPE REF TO if_wd_context_element, lt_attributes TYPE wdr_context_attr_info_map, lv_table TYPE REF TO cl_wd_table, lv_table_column TYPE REF TO cl_wd_table_column, lv_text_view TYPE REF TO cl_wd_text_view, lv_image TYPE REF TO cl_wd_image, lv_text_edit TYPE REF TO cl_wd_text_edit, lv_header TYPE REF TO cl_wd_caption, attribute LIKE LINE OF lt_attributes, lv_index TYPE string, lv_cur_row TYPE i, path TYPE string, lv_value TYPE string, attr_name TYPE string, l_trc_point_id TYPE string, l_num_cols TYPE string, l_num_rows TYPE string, lv_text TYPE string, lv_index2 TYPE i, lr_ress_selections TYPE REF TO /its/di_2_cpr_ress_selections, lt_comp_tab TYPE cl_abap_structdescr=>component_table, ls_comp_tab LIKE LINE OF lt_comp_tab, lv_count TYPE i, lv_col_count TYPE i, lv_col_count_read TYPE i, lv_index_read TYPE i, lv_num_cols_minus_1 TYPE i, lv_bind_lv_value TYPE string, wd_standard_cell TYPE REF TO cl_wd_table_standard_cell, lv_data_count TYPE i, lv_data_count_str TYPE string, wd_table_column TYPE REF TO cl_wd_table_column, lv_column_id TYPE string. FIELD-SYMBOLS:  LIKE LINE OF lt_attributes,  TYPE ANY TABLE,  TYPE ANY,  TYPE ANY,  TYPE ANY. * Instanz der Klasse /ITS/DI_2_CPR_RESS_SELECTIONS lr_ress_selections = /its/di_2_cpr_ress_selections=>factory( ). ASSIGN lr_ress_selections->gr_table->* TO . lt_comp_tab = lr_ress_selections->gt_comp_tab. ls_comp_tab-name = 'SUMME'. * APPEND ls_comp_tab TO lt_comp_tab. * ls_comp_tab-name = 'CELL_VARIANT'. APPEND ls_comp_tab TO lt_comp_tab. CLEAR ls_comp_tab. l_num_rows = num_rows + 1. CONDENSE l_num_rows. l_num_cols = num_columns + 1. CONDENSE l_num_cols. * UI-Element 'TABLE' lv_table ?= wd_this->m_view->get_element( 'TBL_TABLE' ). lv_table->remove_all_columns( ). * Kontext-Knoten 'TABLE' lv_node = wd_context->get_child_node( 'TABLE' ). lv_node_info = lv_node->get_node_info( ). lv_node_info->remove_dynamic_attributes( ). attribute-type_name = 'STRING'. lv_num_cols_minus_1 = num_columns - 1. * Für jede Spalte einmal tun DO lv_num_cols_minus_1 TIMES. lv_index = sy-index + 1. CONDENSE lv_index. lv_table_column = cl_wd_table_column=>new_table_column( ). lv_column_id = lv_table_column->id. * Spaltenüberschriften setzen IF lv_index EQ 1. "Beim ersten Durchlauf --> erste Spalte = "Ressourcen" lv_text = text-010. sy-index = 0. ELSE. "Danach für jede weitere Spalte eine Zeile aus der gt_comp_tab nehmen lv_index_read = lv_index - 1. READ TABLE lt_comp_tab INDEX lv_index_read INTO ls_comp_tab. lv_text = ls_comp_tab-name. lv_header = cl_wd_caption=>new_caption( text = lv_text ). lv_table_column->set_header( lv_header ). ENDIF. CONCATENATE 'TABLE.A' lv_index INTO path. lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path ). lv_table_column->set_table_cell_editor( lv_text_view ). lv_table_column->bind_selected_cell_variant( 'TABLE.CELL_VARIANT' ). lv_table->add_column( lv_table_column ). wd_table_column ?= wd_this->m_view->get_element( lv_column_id ). ******************Test Cell Variant************************************************** IF lv_index GT 1. LOOP AT  ASSIGNING . ASSIGN COMPONENT 'TYPE' OF STRUCTURE  TO . ADD 1 TO lv_data_count. lv_data_count_str = lv_data_count. CONCATENATE 'A' lv_index lv_data_count_str INTO path. wd_standard_cell = cl_wd_table_standard_cell=>new_table_standard_cell( view = wd_this->m_view variant_key = 'FLDATE' ). IF  = '01' OR  = '04'. lv_image = cl_wd_image=>new_image( bind_source = path view = wd_this->m_view ). wd_standard_cell->set_editor( lv_image ). wd_standard_cell->set_cell_design( '01' ). ELSE. lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path view = wd_this->m_view ). wd_standard_cell->set_editor( lv_text_view ). wd_standard_cell->set_cell_design( '02' ). ENDIF. wd_table_column->add_cell_variant( wd_standard_cell ). ENDLOOP. ENDIF. ************************************************************************************* CONCATENATE 'A' lv_index INTO attribute-name. lv_node_info->add_attribute( attribute ). ENDDO. DO num_rows TIMES." Für jede Zeile einmal tun lv_cur_row = sy-index. lv_element = lv_node->create_element( ). lv_node->bind_element( new_item = lv_element set_initial_elements = abap_false ). DO l_num_cols TIMES. ADD 1 TO lv_col_count. IF lv_count LT 1. LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. * Name zuweisen ASSIGN COMPONENT 'NAME' OF STRUCTURE  TO . "NAME lv_value = . * Zuweisen ob Blatt oder nicht lv_element->set_attribute( name = 'NAME' value = lv_value ). ASSIGN COMPONENT 'IS_LEAF' OF STRUCTURE  TO . "NAME lv_value = . lv_element->set_attribute( name = 'IS_LEAF' value = lv_value ). ENDIF. ENDLOOP. ENDIF. IF lv_count GT 0. lv_col_count_read = lv_col_count - 1. lv_index = sy-index. LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. CLEAR ls_comp_tab. READ TABLE lt_comp_tab INDEX lv_col_count_read INTO ls_comp_tab. ASSIGN COMPONENT ls_comp_tab-name OF STRUCTURE  TO . lv_value = . CONDENSE lv_index. CONCATENATE 'A' lv_index INTO attr_name. lv_element->set_attribute( name = attr_name value = lv_value ). ENDIF. ENDLOOP. ENDIF. lv_count = lv_count + 1. ENDDO. CLEAR lv_col_count. CLEAR lv_count. ENDDO. ENDMETHOD. I definied my table in Layout Tab of the View and create here in thos method dynamicly my columns. lv_table_column = cl_wd_table_column=>new_table_column( ). . . lv_table->add_column( lv_table_column ). In  I have my data that should be shown later in my table. So I create for each row in this fieldsymbol in a loop: lv_element = lv_node->create_element( ). lv_node->bind_element( new_item = lv_element set_initial_elements = abap_false ). Later I fill every cell in my table with a different value with this loop: LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. CLEAR ls_comp_tab. READ TABLE lt_comp_tab INDEX lv_col_count_read INTO ls_comp_tab. ASSIGN COMPONENT ls_comp_tab-name OF STRUCTURE  TO . lv_value = . CONDENSE lv_index. CONCATENATE 'A' lv_index INTO attr_name. lv_element->set_attribute( name = attr_name value = lv_value ). ENDIF. ENDLOOP. Now my problem is, that I need for every ROW of my table UI Element a different cell editor. I know how to change it for the column. But is not my issue. I want to have images (traffic lights red and green) in some rows. The other rows should have numbers. The coding works, so that I have all the data at the right place in my table, only the images are shown as a string, because the cells of these rows have the cell editor Text_View. I tried something with cell variants (with cl_wd_table_standard_cell), but it was not possible for me to get a cell variant "image" in these cells/rows were I need it. I hope you understand my problem and now what to do here. Thanks a lot in advance. Best Regards, Ingmar

  • How to populate values in to dropdown in table ui element

    Hi,
    according to my scenario  i have atable with five records ...andi have acolumn name DATE and  it contains 5 dropdowns with some values i.e dates from jan 1 2008-dec 31 2008.user needs to select only those values which are in dropdown. can u tell me the code to populate values in to dropdown in table UI element.
    Thanks
    Raju

    Hi,
    you can go for two drop downs like DropDown by Key or Drop Down by Index as per requirment.
    Create context Node for the table UI, in that one will be for ur drop down. Create element for the Context node and add thses to the conetxt.
    Code example for DropDownBy Key:-
    ISimpleType simpleType =               wdContext     .nodeProjEstiTable().getNodeInfo()
         .getAttribute("projphasname")               .getModifiableSimpleType();
    IModifiableSimpleValueSet svs1 =
    simpleType.getSVServices().getModifiableSimpleValueSet();
    svs1.clear();
    for (int j = 0; j < projphasname.length; j++) {
         svs1.put(projphasname[j][1], projphasname[j][1]);
    for DropDownBy Index you can work in normal way means try to create element for the respective context attribute.
    Hope this may help you...
    Deepak

  • Some records stays in Event Polling Table forever and ever

    I have configured Event Polling Table at Oracle BI. It works fine and the entry cache are purged. But some records stays in EPT table for ever. Records without misstat1 are inserted by me (trigger). Records with OTHER=misstat1 are inserted by BI Server. There is no delete or error statement in log file for this timestamp. Other timestamps are deleted by BI Server.
    +++Administrator:fffe0000:fffe0012:----2008/09/22 22:17:58
    -------------------- Sending query to database named misstat1_db (id: <<127983>>):
    insert into
         BI_EPT("UPDATETYPE", "UPDATETIME", "DBNAME", "CATALOGNAME", "SCHEMANAME", "TABLENAME", "OTHER") values (1, TIMESTAMP '2008-09-22 22:08:24', '', '', '', 'MV_E_DENIK_KP', 'misstat1')
    UPDATETYPE     UPDATETIME     DBNAME     CATALOGNAME     SCHEMANAME     TABLENAME          OTHER
    1     22. 9. 2008 22:08:24                                                                    MV_E_DENIK_KP           misstat1
    1     22. 9. 2008 22:08:24                                                                    MV_E_HIM                           misstat1
    1     22. 9. 2008 22:28:19                                                                    MV_ODY_OSCI_VYROCI     misstat1
    1     22. 9. 2008 22:28:19                                                                    MV_ZPC_CERP           misstat1
    1     22. 9. 2008 22:08:24                                                                    MV_E_DENIK_KP     
    1     22. 9. 2008 22:08:24                                                                    MV_E_HIM     
    1     22. 9. 2008 22:28:19                                                                    MV_ZPC_CERP     
    1     22. 9. 2008 22:28:19                                                                    MV_ODY_OSCI_VYROCI     

    UpdateTime needs to be unique, but you can't put a unique constraint on it. As you probably know, the server will insert a nearly identical record (it will just put text in the OTHER field but everything else will be the same). Then it deletes both records. However, in your case it looks like there are some identical timestamps that are not just duplicates from the server's insert. If you make sure you don't have any identical timestamps in UpdateTime, I think it will work correctly if everything else is configured correctly.

  • CSKA & CSKB Tables -Cost Element+ Controlling Area, Cost Element Category

    I have few questions on Chart Of Accounts and Controlling Areas and CSKA(Cost elements (data dependent on chart of accounts)) and CSKB (Cost elements (data dependent on controlling area)) Tables--
    1) One Chart Of Accounts has one or more Controlling Areas. Is there any situation where One Controlling Area contains many Chart Of Accounts.
    2) CSKA Table contains all the Cost Elements under the Chart Of Accounts. So does all these Cost Elements appear under CSKB Table. Are there any Cost Elements which doesn't fall under any of the Controlling Area and only exists under Chart Of Accounts Level in CSKA Table.
    3) In CSKB Table How do we know the corresponding Chart Of Accounts for the Cost Element.
    4) In CSKB Table Cost Element Category depends on both Cost Element and Controlling Area. So does a Cost Element can be Primary Cost Element for one Controlling Area which happens to be GL Account and Secondary Cost Element for some controlling Areas.
    5) Are there any Company Codes under the Chart Of Accounts which doesn't belong to any of the Controlling Area and doesn't have any Cost Elements.

    Hi,
    1) One Chart Of Accounts has one or more Controlling Areas. Is there any situation where One Controlling Area contains many Chart Of Accounts. Never
    One controlling area can be assigned to many company codes, but all must have been assigned to the same chart of accounts only. This is the pre requisite for the so called cross company controlling
    2) CSKA Table contains all the Cost Elements under the Chart Of Accounts. So does all these Cost Elements appear under CSKB Table. Are there any Cost Elements which doesn't fall under any of the Controlling Area and only exists under Chart Of Accounts Level in CSKA Table.
    If some data exists in CSKA table, it mean that, it must have been created as a CE in any of the controlling area
    3) In CSKB Table How do we know the corresponding Chart Of Accounts for the Cost Element.
    In CSKB, you wont get the correspondant COA for the given controlling area. If you want to know it pass field value CSKB-KOKRS to table field TKA01-KTOPL to get the assigned COA
    4) In CSKB Table Cost Element Category depends on both Cost Element and Controlling Area. So does a Cost Element can be Primary Cost Element for one Controlling Area which happens to be GL Account and Secondary Cost Element for some controlling Areas.
    You cannot create a secondary cost elemant using a key matching with an GL code in cross company controlling. In case of both company codes assigned to different controlling areas this can be possible
    5) Are there any Company Codes under the Chart Of Accounts which doesn't belong to any of the Controlling Area and doesn't have any Cost Elements.
    Only In case of CO module is not active for the a company code
    Note: If you have more queries, post it separately rather than asking all in one thread. and be specific with your requirement with the actual scenario.
    Thanks,
    Srinu

Maybe you are looking for

  • IMac 1TB Seagate Hard Drive Replacement Program - how long does it take?

    I started a new thread for this issue since the original thread has degenerated into a rant. I just got my love letter from Apple informing me that my new 27" iMac has the bad drive. I backup to an external USB drive using Time Machine, and I am plan

  • Should the web page address be included in the file name in the meta data dialog box?

    In the page properties > meta data > below is a field with the label file name: (the the area to type in the field), after the field, it is labeled .html. I have 2 questions here. 1. If I type in http//:www (my page url), do I include .html at the en

  • Lockbox Issue

    Hello Experts, I have a question regarding the lockbox. We are using partial payment option in lockbox (OB10) and we have 0 tolerance at both customer and user level. The customer has an open invoice of $300 and that he pays $400 towards this invoice

  • How to include multiple tabs in my show form

    Hi As per my requirement I want to include multiple tabs in my show form using xmlform builder , different tabs are required to display the news under different categories which will help the user to choose the required tab. Thanks in advance.

  • Nice Page Expired Popup is not showing up

    Hello, I am using JDev 11.1.1.4 and created a new ADF Fusion Application. Then I adjusted the web.xml <?xml version = '1.0' encoding = 'UTF-8'?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://java.s