Not able to select a row in ALV in Webdynpro

Hi everyone,
I have developed a webdynpro application and I have declared component usage for SALV_WD_TABLE.
The data gets displayed in the ALV, but always the first row is selected.
When I try to select another row,I am not able to select.
Could anyone please suggest what might be the problem ?
Thanks in advance.
Regards,
Kumudha.

Hi Manas,
Thanks for the inputs.
I am placing the code below for your reference.
I try to change the below as Display Text as Code...But it is not happening Plz check
method wddoinit.
  if wd_this->ls_setup is initial.
    select single * from yyua_c_setup into wd_this->ls_setup
      where system_id = sy-sysid.
  endif.
  "adjustments for ALV
  data lo_cmp_usage type ref to if_wd_component_usage.
  lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
  if lo_cmp_usage->has_active_component( ) is initial.
    lo_cmp_usage->create_component( ).
  endif.
  data: l_ref_interfacecontroller type ref to iwci_salv_wd_table .
  l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
  data: l_value type ref to cl_salv_wd_config_table,
        lr_header_t type ref to cl_salv_wd_header,
        lv_text type string.
  l_value = l_ref_interfacecontroller->get_model( ).
  data: lr_column_settings type ref to if_salv_wd_column_settings,
        lr_input_field type ref to cl_salv_wd_uie_input_field,
        lr_column type ref to cl_salv_wd_column.
Set column title and position
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'CSINSTA' ).
  lr_column->set_position( 1 ).
lv_text = cl_wd_utilities=>get_otr_text_by_alias( 'Z_REFERENCE/REQUEST_NUMBER' ).
  lr_column->r_header->set_text( 'Installation' ).
  lr_column->r_header->set_ddic_binding_field( '00' ).
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'ERFUNAME' ).
     |
  lr_column->set_position( 18 ).
lv_text = cl_wd_utilities=>get_otr_text_by_alias( 'Z_REFERENCE/ACTIVITY_DATE' ).
  lr_column->r_header->set_text( 'Job profile ext' ).
  lr_column->r_header->set_ddic_binding_field( '00' ).
Hide columns
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'ERFTSTMP' ).
  lr_column->set_visible( 0 ).
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'AETSTMP' ).
  lr_column->set_visible( 0 ).
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'STATUS' ).
  lr_column->set_visible( 0 ).
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'PRIO' ).
  lr_column->set_visible( 0 ).
  lr_column = l_value->if_salv_wd_column_settings~get_column( 'ISSUE' ).
  lr_column->set_visible( 0 ).
  data: lr_functions type ref to if_salv_wd_function_settings,
        lr_function type ref to cl_salv_wd_function,
        lr_button_t type ref to cl_salv_wd_fe_button.
Add self-defined functions in toolbar
  lr_functions ?= l_value.
  lr_function = lr_functions->create_function( 'SELECT' ).
  create object lr_button_t.
lv_text = cl_wd_utilities=>get_otr_text_by_alias( 'Z_REFERENCE/VIEW' ).
  lr_button_t->set_text( 'Select' ).
  lr_function->set_editor( lr_button_t ).
data : LR_FUNCTION_SETTINGS TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
create object LR_FUNCTION_SETTINGS.
SET row selectable as true
CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_TABLE_SETTINGS~SET_ROW_SELECTABLE
EXPORTING
VALUE = ABAP_TRUE.
endmethod
Regards,
Kumudha.

Similar Messages

  • Not able to select a row in ALV?

    Hi Experts,
    I am enhancing a standard e-recruiting WD ABAP component.
    It produces a search result as ALV.
    I am not able to select any row in ALV by clicking it like we normally do in ALV.
    I wrote below code to allow selection:
    lo_value->if_wd_salv_table_settings~set_selection_mode( cl_wd_table=>e_selection_mode-single).
    Even after this I am not able to select any row by clicking it.
    Need help to solve this.
    Regards,
    Sumit Oberoi

    Hi,
    To have the inputfields for the ALV.
    Get the column references of the ALV table and for each column rference create a inputfield object
    type CL_SALV_WD_UIE_INPUT_FIELD.
    lo_value is model object.
      CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
        RECEIVING
          value = wd_this->lit_columns.
    LOOP AT wd_this->lit_columns INTO wd_this->lis_columns.
          lv_id = wd_this->lis_columns-id.
          wd_this->gref_column = wd_this->lis_columns-r_column.
    case lv_id.
    when ' colname'.
                CREATE OBJECT lr_input
                  EXPORTING
                    value_fieldname = lv_id.
                CALL METHOD wd_this->gref_column->set_cell_editor
                  EXPORTING
                    value = lr_input.
    when ' colname'.
                CREATE OBJECT lr_input
                  EXPORTING
                    value_fieldname = lv_id.
                CALL METHOD wd_this->gref_column->set_cell_editor
                  EXPORTING
                    value = lr_input.
    endcase.
    endloop.
    Or you can take a attribute READ_ONLY for the node to which ALV table is bound.
    Set the readonly property to abap_false (for input field) by looping through the table.
    Get the column references and get the textview reference for each column and use the set_read_only
    method by passing the attribute name.
    This way the textview will now become the inputfield when the read_only property is set to abap_false.
    Regards,
    Lekha.

  • Not able to get which row is edited in alv grid

    Hi,
    I have created a Editable alv grid .
    My grid does not contain line selection cloumn so How can I get to know which row is to be changed.
    I am using get_selected_rows method but not able to get which row is changed. please help on this.
    Thanks in advance.

    Hi,
      check this ..
      it_ekko1[] = it_ekko[].
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_user_command = 'USER_COMMAND'
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                it_events               = i_events
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
    In user command you need to write logic to know which all records have changed.
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.
         loop at it_ekko into wa_ekko.
           read table it_ekko1 into wa_ekko1 index sy-tabix.
           if wa_ekko <> wa_ekko1.
    write your logic further
           endif.
         endloop.    
      endcase.
    Regards,
    Srini.

  • How to select multiple row in ALV report

    Hi friends,
    1. How to select multiple row in ALV report
                   ( How to set tab in ALV report and want to select multiple line.)
    Thanking you.
    Subash

    Hi Sahoo,
    If you are using the class CL_GUI_ALV_GRID. In methods SET_TABLE_FOR_FIRST_DISPLAY.
    in layout structure you will find field SEL_MODE
    pass :
    LS_LAYOUT-SEL_MODE = 'A'.
    In PAI.
      CALL METHOD GRID->GET_SELECTED_ROWS
        IMPORTING
          ET_INDEX_ROWS = T_ROWS
          ET_ROW_NO     = T_ROWID.
    Hope these will solve your problem.
    Regards,
    Kumar M.

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • I am trying to sync my itunes with my ipod, but when I get to step 3 of syncing, it stops. Also, I deleted all the songs on my ipod, and when I go to my music in my ipod the songs are all still there and in a grey color and I'm not able to select them.

    I am trying to sync my itunes with my ipod, but when I get to step 3 of syncing, it stops. Also, I deleted all the songs on my ipod, and when I go to my music in my ipod the songs are all still there and in a grey color and I'm not able to select them. How do I completely clear my ipod music, and how can I solve the syncing problem?

    Sync works the same way it always has, connect the device, select the content desired to sync and sync.
    All the media should be in iTunes already, iDevices are not and have never been backup devices.
    If this is a new computer, move the content from the old computer to the new computer.

  • I am not able to select a new network printer just installed at work to print to from Firefox. I have tried to reset the printer settings, but this did not work. Do I need to map Firefox to this new printer?

    We recently had a new printer installed at work that has been set as the Default printer on my computer. When I go to print something from Firefox, I am not able to select the new printer from the printer window in the print box. The new printer does not show up

    From another computer, go to http://www.mozilla.com/firefox/, click "Free download" button, click "Save File" button, select your flash drive in "Save as" window. "Firefox Setup 3.6.13.exe" file will be saved in your flash drive.
    You just need to insert it in your new computer and double-click on "Firefox Setup 3.6.13.exe" from Windows Explorer and follow instructions.

  • Not able to select sales area for reference BP in CRM system

    Hi All
    I am not able to select sales area data for the reference customer copied from r/3 to crm sysytem even through ORg. structure is properly maintain ( Object permitted in determination is ticked).
    The field " Choose sale area is subpress/grey.
    Please help me for the same.

    Hi Kishore,
    So you manage get into Sales Area Data, but when you
    try to select Sales Organization you get nothing?
    (click Sales Org combo but no selection appear)?
    How about field Distribution Channel and Division?
    I am afraid some of these fields still not properly
    set/transported to CRM.
    In R/3, this BP has maintained under same Sales Area
    which mapped in CRM Org Model right ?
    What is role in CRM when you open the BP?
    Have you check if there is any error in middleware
    when downloading BP data to CRM?
    Cheers,
    Gun.

  • Not able to select images in iphoto 8????

    Since I've installed iphoto 8, I'm not able to select my pictures as I did with iphoto 6. When adding images through yahoo mail for example, I was able to before locate my iphoto folder, and it would give me a drop list of all the pictures. With iphoto 8, all I see is "iphoto library" and its faded out and I can't select it.
    Does anyone know if this is just the way iphoto 8 works, or is there a way to fix this. The only solution I have found, is I have to copy the pictures on to my desktop and then select them from there.
    Please help
    Thank you in advance

    THe basic answer is to export them to a desktop folder and access them form there
    for a comnplete discussion see TD's post here -- http://discussions.apple.com/thread.jspa?threadID=1199193&tstart=15
    Larry Nebel

  • How do I import a camera video from iphoto to imovie? I went to file, import, camera archives and the video I want I am not able to select. I even tried dragging it from my desktop, but it will not allow me to do so. Please help?

    How do I import a camera video from iphoto to imovie? I went to file, import, camera archives and the video I want I am not able to select. I even tried dragging it from my desktop, but it will not allow me to do so. Please help?

    Use File/Import/Movie and navigate to the file.

  • Customer is using FR studio, not able to select properties

    Hi.
    Customer could log into Financial Reporting Studio,  open and create new reports but they are not able click on the row/column/report properties dialogue boxes.
    Initially we thought it was installation issue
    we did the below steps
    I. Part 1
    After going through the below steps customer could connect to the Financial Report Studio
    1. Uninstall Financial reporting studio
    2. Restarted the client computer
    3. Navigate to BI Catalog
    4. Click on Tools --> Install --> Financial Reporting Studio
    5. Save on the local machine
    6. Right client on the Financial Reporting Studio.exe
    7. Run as Administrator
    9. Restarted the client machine again (to avoid issues)
    10. Issue was still there
    II Part 2
    We tried to re-registered the DLL files by following the below steps and issue resolved
    Due to Dynamic Link Library (DLL) files have not been registered correctly during FR Studio installation.
    To resolve this issue re-register FR related DLL files:
    On the workstation where FR Studio is installed navigate to folder
    <FinancialReportingStudio_Home>\products\financialreporting\install\bin
    Run the HRRunAnt.cmd. This will re-register the FR related DLL files.
    Login to FR studio and test opening reports. Its all worked fine.
    Customer is having multiple versions of FR, one version is for Essbase, and another version is for Planning.
    As per the customer, this works fine on the other collegue laptops, issue facing with her laptop
    Any help appreciated
    Thanks,
    Renuka

    If the service name is different on the 8i machine than on the 9i machine, you'll need to modify the service name when creating the link from 8i. Can you see the DB link in ALL_DB_LINKS in the 8i database?

  • Not able to select speaker setup in creative audio cons

    Hi, I'm using Creative X-FI Music. Due to a recent re-installation to Vista, after re-installation of drivers and software (with updates from creative support website), I'm still not able to select the speaker setup directly from the audio console. This has prevent me from calibrating my 5. speaker setu
    ps.
    Please help? Thanks....

    what's your os? if you have xp, you should try sp2...that fixed the problems i was having with my card when i upgraded...try telling windows to go to 5. sound through the sound devices in control panel and then go back to surrmixer and see if that works...

  • Not able to select annotation in Adobe Reader X

    Hi,
    If I hide both toolbar and navigation panel then I am n't able to select annotation in Adobe Reader/Acrobat X.  This wasn't the case with earlier version of Adobe.
    So is this issue of latest Adobe?
    Regards,
    Arvind

    I checked in version 10.0.1 also. I am not able to select annotation with left mouse button click. This happens only when both toolbar and navigation panel are hidden. You can check this at your end.
    And using RMB click, I am able to select annotation.  I think this is an issue of latest Adobe as earlier we were able to select using LMB click even when both toolbar and navigation panel are hidden.
    Regards,
    Arvind

  • Not able to select lineitems in planner monitor,SAP GRC10 PC

    Hello Experts,
    We have created plans and we can able to see created plans in planner monitor under assessment planning in NWBC
    we can able to select the plan name and send to recipient by using Notify button up to this everything is fine
    but when we want to send more than one plans to recipients,not able to select the line items.
    any idea to resolve this.
    Thanks
    GRC Admin

    Hi,
    Even if you can choose multiple lines by pressing ctrl key, Notification is
    allowed for one plan at once. So, it won't allow you to do so.
    Regards,
    Smita.

  • Not able to select value in MSC1N

    Hello All,
    I am trying to create the batch using MSC1N. I am not able to select the characteristics values for few characteristcs. I am using selected sets and code groups for those characterisctis. For others it is working properly. I am getting the error as "Value "Z033000  0010" cannot be selected
    Message no. C1853
    Diagnosis
    From a value hierarchy, you want to choose a value that has subordinate values. This is not possible. You can only choose the lowest values in a value hierarchy.
    Procedure
    Explode the structure down to the lowest values and choose one of these.
    Please guide me asap.
    Regards,
    Mayura

    It sounds like you have multiple values available in the characteristic in your batch class.  I'm guessing that the characteristics you are having problems with are set up differently than the ones you aren't having problems with.
    It sounds like SAP thinks that because you selected code A, you can now pick from Codes X,Y,Z.  But if you had selected code B, you can only pick from Codes L,M,N.  The message is saying you have to pick directly from one of these lower subordinate codes.  You can't select Code A as  your choice because it's not an actual choic, ,only a pathway to let you pick from X,Y,Z.
    I'm not sure exaclty how you have your charateristics set up but his sounds like it has variant configuration involved in it.
    FF

Maybe you are looking for

  • My old computer crashed.  How do I get my iTunes onto a new computer (bought a Mac)?

    My old computer crashed, how can I get all of my iTunes (apps, music, ringtones) on my new computer (bought a Mac) ?

  • Parsing the URL

    Hello Friends, I have couple of JSP pages. The URL for each of the Jsp page shown in browser looks somelike as follows. http://order.xyz.com/?p_mycode=2Mon_Fr&mnid=in_ss_ppo_hino_soos What I want ti achieve is as follows:-- In my Jsp page, I should b

  • How to add PDF on itunes 12.0.1? VERY URGENT!!!

    Can someone please explain to me, where I can find iBooks on the new iTunes 12.0.1 (Yosemite)? Or at least to tell me how to put PDF file in iTunes so I can transfer it on my iphone and ipad. IT IS VERRY URGENT!!! Thank you!

  • XI APIs to access SOAP Header Tags

    Hi Forum, The way we use DynamicConfiguration class from com.sap.aii.mapping.api.* API, to access file names etc, is there classes available for accessing other tags in the SOAP Header, for example ReliableMessaging, PerformanceHeader, etc

  • Does anyone know the value of "y" here

    //What is the value of y after the following switch statement is executed? x = 2; switch (x + 2) case 2: y = 2; case 4: y = 4; case 6: y = 6; default: y = y * 2; }