Row selection in Table (Web Dynpro Abap)

Hello,
I have 2 views in my web dynpro component.
In first view ,  i am taking carrid and on click of submit button , i am displaying connid,fldate,currency,planetype,seatsmax in second view.
I have one button on second view to go back to fist screen.
Now, My question is :
if i select a one row of table , i want to dispaly deatils of that row in first view.
How can i do this?
Please help.

The second part of the requirement is not clear on where woudl you click and where shoudl the data be shown.
However, all this data should be ideally maintained in the component controller i.e. the c.controller should have the conterxts and map relevant nodes to the appropriate views.
Now, all the data is in c.controller which can be accessed from any view within the component. This way you can show any data in contexts in preferred view.
Regards,
Sharath

Similar Messages

  • Editing a particular row in a table - Web Dynpro Abap

    Hi all,
    My scenario is, I have to fetch contract details from EKPO table when I enter the Purchase Document Number and press SUBMIT button on my interactive form. The details will be displayed in a table.
        This part is working fine.
    Then, out of the displayed rows in that table, I have to click one of the rows. This particular row should appear as a separate row below the existing table. Here I will edit certain fields and update the database.
    My question is, How to display that particular row below the existing table which I select. The table will dynamically increase the row size depending on the records.

    Hi Surya,
    You can use the index property to display the selected row data.
    Suppose your form structure is like:
    BodyPage
       TBL_EKPO
           DATA
               EBELN
               EBELP
               LOEKZ
        SF_SELECTED_ROW_DISPLAY
            EBELN
            EBELP
            LOEKZ
    Then, in any of the field's exit event you can write:
    BodyPage.SF_SELECTED_ROW_DISPLAY. EBELN.rawValue = xfa.resolveNode( " BodyPage.TBL_EKPO.DATA["+ this.parent.index +"].EBELN").rawValue;
    Hope this helps.
    Amit

  • SELECT OPTIONS IN WEB DYNPRO ABAP

    Hello experts, im working with select options in a WEB Dynpro.
    There are four buttons (cancel,check,reset,copy) that apears above my select option.
    My question is: There is a way to hide that buttons?
    THANKS!

    Sure, you can disable them using the SET_GLOBAL_OPTIONS methdo of the IF_WD_SELECT_OPTIONS class.  Something like this:
    wd_this->m_handler->set_global_options(
        i_display_btn_cancel  = abap_false
        i_display_btn_check   = abap_false
        i_display_btn_reset   = abap_false
        i_display_btn_execute = abap_false ).

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

  • Select options in web dynpro ABAP (search help f4 problem)

    hi...
    from the Tutorial of select options i have created select option for two parameters S_CARR_ID and S_CONN_ID but i get f4 help for only S_CARR_ID, but the parameters passed to both for   m_handler->add_selection_field are the same.
    i also tried to attach my search help by passing one more parameter (I_VALUE_HELP_ID) but it dose not help.
    could any one suggest me how to get f4 help.
    thank you.
    Regards
    kailash.
    code snap ->
    init the select screen
      wd_this->m_handler =
           wd_this->m_wd_select_options->init_selection_screen( ).
    create a range table that consists of this new data element
      lt_range_table =
        wd_this->m_handler->create_range_table(
             i_typename = 'S_CARR_ID' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
                     i_id = 'S_CARR_ID'
                     it_result = lt_range_table
                     i_read_only = read_only
    create a range table that consists of this new data element
      lt_range_table =
        wd_this->m_handler->create_range_table(
             i_typename = 'S_CONN_ID' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
                     i_id = 'S_CONN_ID'
                     it_result = lt_range_table
                     i_read_only = read_only ).

    hi kailash,
      check wheteher  the field u r refering is having search help.
        if it has then set the additional parameters in method add_selection_field
      I_VALUE_HELP_STRUCTURE = 'VBC07'(name of the table)                                                   I_VALUE_HELP_STRUCTURE_FIELD = 'FKART'( field name)
    ex:
    wd_this->go_select_options1->add_selection_field( i_id = 'FKART'
                                                       I_WITHIN_BLOCK = 'BLOCK1'
                                                       I_VALUE_HELP_STRUCTURE = 'VBCO7'
                                                       I_VALUE_HELP_STRUCTURE_FIELD = 'FKART'
                                                       it_result = lo_range_table
                                                       i_read_only = lv_read_only
    regards,
    janakiram.
    Edited by: janakiram raju on Mar 11, 2008 11:40 AM

  • Select options in web dynpro ABAP  (Event on_check)

    Hi,
    how can I raise a message in the event-handler method on check for a specifc field out of the Select-Option.
    Best regards,
    Marcus

    Hello,
    Create a new method and call it when you want to show the message.
    METHOD message_handling .
      DATA:
        lr_current_controller TYPE REF TO if_wd_controller,
        lr_message_manager    TYPE REF TO if_wd_message_manager.
      lr_current_controller ?= wd_this->wd_get_api( ).
      lr_message_manager = lr_current_controller->get_message_manager( ).
      lr_message_manager->report_t100_message(
        msgid = iv_msgid
        msgno = iv_msgno
        msgty = iv_msgty
        p1    = iv_p1
        p2    = iv_p2
        p3    = iv_p3
        p4    = iv_p4 ).
    ENDMETHOD.
    In this method, the program show a message that is declared in a mesasge class. If you look at IF_WD_MESSAGE_MANAGER there are other methods to show a message.
    And you can find more information at this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8402. [original link is broken] [original link is broken] [original link is broken]
    Regards,

  • Validation of select-options in WEb DynPro ABAP

    Can anyone please help me on validating select-options. I want to have a functionality like what we use in normal text field while validating the field. We generally use the REPORT_ATTRIBUTE_ERROR_MESSAGE funciton.
    How can we achieve the same thing with select-options, cuz the select-options are not bound with any attribute.
    Edited by: Tirth Pandya on May 7, 2009 2:02 AM

    Hi,
    Refer to this link..Re: validate select option fields

  • Hiding Table - Web Dynpro ABAP

    Hi,
    Is there a way to hide a whole table if it is empty?
    Which method or path should I use in order to hide the table?
    Thanks,
    Erick

    Hi Erick,
    You do not use any method and but bind the property 'visible' of table to a context attribute.
    Here are the detailed steps:
    1) Goto the layout of your view.
    2) Double click on table element.
    3) On the RHS, you see many properties, goto property Visible and bind it to a context attribute. The purpose of this context attribute is to control visibility and hence you would have to add this to your context.
    4) Set the value of this context attribute to Visible or not depending on the data. Check table documentation for more details.
    Regards,
    Srini.

  • Web Dynpro Abap: Select-Options: Save Selection Data

    Hello,
    I am using select-options in web dynpro abap.  Need to add a feature where the user can save his selection values as a variant. 
    All I can think of is getting all the selection values and saving these into a Z table.
    Can you suggest a better way?
    Thank you.
    Irene

    Hi Irene,
    Alas, it's currently not possible. You could write your own wrapper though adding a save button. Inside of the action handler you could retrieve the range tables of all fields, convert their content to a structure you like and save it a fitting db table. My suggestion is to use XML and a DB table with a XSTRING field in the data section to store the range table values.
    Using personalization will allow you to customize your ui and to hide certain select option fields.
    Best regards,
    Thomas

  • Web DynPro ABAP - Disable a entire row in the Table of the output.

    Hi Web Dynpro Experts,
    Need ur Help.!
    I have a requirement to disable the one row of the table in web dynpro ABAP
    For example . my table is like
    Field1   Field2
    A           Success
    B            Failure
    C            Failure
    I need to allow the User to select the record only if its status is Success,if status is Failure then i should not the allow user to select.
    This enabling and disabling of the rows should be done before displaying on to the Screen.
    Please suggest me ASAP.
    Thanks,
    Akila

    Hi Akila,
    please try this.
    Create a node (Eg: TEST) of type 0-n and 0-1. Take attributes attr1, attr2, flag (of type BOOLEAN). Create a table and give the TEST node as datasource. Now using "Create Binding" create columns for attr1 and atte2. Now, bind the read-only property of the columns with flag attribute.
    Now, in the INIT method, set the table values like this:
    For examle, if you want to disable row having test2,
    ls_test-attr1 = 'A'.
    ls_test-attr1 = 'TEST1'.
    ls_test-flag = ' '.
    append ls_test to lt_test.
    clear ls_test.
    ls_test-attr1 = 'B'.
    ls_test-attr1 = 'TEST2'.
    ls_test-flag = 'X'.
    append ls_test to lt_test.
    clear ls_test.
    ls_test-attr1 = 'C'.
    ls_test-attr1 = 'TEST1'.
    ls_test-flag = ' '.
    append ls_test to lt_test.
    clear ls_test.
    lo_test->bind_table( lt_test ).
    By doing this, 2nd row gets disabled.
    Also, if you already have the internal table with values, based on some condition you can change the value of flag and bind the table to node.
    Hope this helps you, Please let me know in case of any queries.
    Regards,
    Manogna

  • In Web Dynpro ABAP, Can we merge two cells of a row in a table ?

    In Web Dynpro ABAP, Can we merge two cells of a row in a table ?

    Hallo Jagannatha,
    the new table feature is available in SAP NetWeaver 7.0 EhP2 (SAP ERP 6.0 EhP5, SAP Business Suite 7i2010) named 'TableMultiEditorCell'. See [SAP Online Help|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9b/46bb0d339b42cc8d30636ca0c9f5b6/frameset.htm] for more details ...
    "This UI element is a table cell variant that enables several UI elements to be placed in one table cell. This type of cell can be used for "one click actions". ...
    Regards, Bertram

  • How to fix few rows in ALV after filtering on a column in Web Dynpro ABAP

    Hi,
    I have the following requirement:
    In an ALV, when i filter based on a column, then this filter should not be applied to 2 of its rows.
    These rows relate to totals. The totals are manually calculated as they require other component information too.
    Along with the filter result, these total rows have to be displayed.
    Let me know in case ALV in Web Dynpro ABAP supports this functionality.
    Regards,
    Rekha

    Hi,
    ALV table does not support this functionality.
    You can display the total in an another table instead.
    I had the same requirement with total and had to display the totals separately.
    Thanks,
    Feroz

  • Adding rows in web dynpro ABAP Dynamic Interactive form.

    Hi Experts,
              I am having problem in web dynpro ABAP Dynamic Interactive form.
    This is my scenario....
    I have a dynamic interactive form that has buttons to add and remove rows in a table. It works fine when I preview it , but when I render, view or save it using ADS, it no longer works. The "add" button actually does instantiate more repeating rows, because I put some trace messages in to count them, but the added rows are not displayed. How do I make them visible?
    In web dynpro java we write some coding in modify view to set the pdf form as dynamic
    IWDInteractiveForm iForm =
    (IWDInteractiveForm)view.getElement("<ID>");
    iForm.setDynamicPDF(true);
    simillarly what we need to write in web dynpro ABAP.
    Please give me solution for the same.
    Thanks,
    Sathish

    hi all,
             expecting reply from u all. pls help me and give some sugesstion.
    regards,
    vinoth.

  • Reading Dynamic Table Values in interactive form (web Dynpro ABAP)

    Hi All,
    I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
    I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
    In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
    How can I resolve this problem.
    Thanks and Regards,
    Boopathi M

    that means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
    probably addNew() mathos may be useful to you.
    it appends a new record to the record set.
    xfa.sourceSet.dataConnectionName.addNew()
    also when on the exit event of the table field, do the following:
    var i = xfa.parent.index
    $record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
    xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname)

  • How to add button ui element in alv table data in web Dynpro ABAP

    Hi Experts,
    I have one requirement,
    Actually I was devloped normal table in web Dynpro ABAP
    in that i have one column Display as a button .
    when i select that button need to display some data.
    same requirement i need to devlope in alv table.
    i am going to attach file please check.
    Thanks in advance.
    Regards,
    Subba Reddy.

    Hi,
    You can create Button in your ALV table column with below code
    DATA lo_button              TYPE REF TO cl_salv_wd_uie_button.
    CREATE OBJECT lo_button.
        CALL METHOD lv_value->if_salv_wd_column_settings~get_column
          EXPORTING
            id    = <your column name>
          RECEIVING
            value = lo_system_select_hdr.
        lo_button->set_enabled( value = abap_true ).
       lo_button->set_text( value = 'Avaliable List'  ).
        lo_button->set_tooltip( value = 'Avaliable List' ).
        lo_system_select_hdr->set_cell_editor( value = lo_button ).
    And for button click action,
    Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
    Thanks
    KH

Maybe you are looking for

  • What is the best external hard drive i can get for my macbook pro snowleopard?

    my hard drive is full and i need an external drive we dont have a mac store here so i went to radio shack and picked up a toshiba  canvio 3.0 plus all fine and good except the fellow at the store failed to notice i am a 60 year old grandmother and pr

  • Error message when installing software on my HP Laserjet 1536dnf MFP

    I am trying to install the software on my HP computer for my HP laserjet. I have tried manually and using the assistant.The software getsto 87% installed then gives a fatal error occurred preventing product use.  Click cancel tp cancel install. none

  • Credit management related issue - please respond ASAP

    Hi, I have a credit management related issue, The requirement is as below:- If receivables value is zero for a customer and after a sales order is saved and delivery is created, a check should happen to see if the GROSS (Total including VAT) , not Ne

  • None of the apps works. Crashes or not even start.

    I registered today as a student, installed the apps that I need - Lightroom, Photoshop, Premiere, AfterFx, Illustrator - but none of them is working. Photoshop, Premiere, and Illustrator crashes after 2 seconds, and Lightroom doesn´t start. Tryed the

  • Does it or doesn't it?

    Well, after three chat sessions with Linksys agents, they finally admitted that my concern is valid and their product engineers are investigating. Namely, does the WRT54G have a SPI firewall. The box the router came in says it does, the Linksys produ