07-07-2009 6:43 AM
Hi All,
I have a search help in webdynpro appl. for a field. Here i need to enable the double click functionality, so that when user clicks on a row, it should get selected automatically .
Could anyone let me know how can i achieve this?
This functionality is already there in the standard F4 helps.
Thanks in advance.
Regards,
Seema
07-07-2009 11:48 AM
Hi Seemanthini,
For this double click functionality, if you want a script to be displayed you can do this way,
form DETAILDISPLAY USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
READ TABLE itab[] into itab_ekko INDEX RS_SELFIELD-TABINDEX.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'your_script _name'
EXCEPTIONS
OTHERS = 1
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TABLE'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
or if you don't want any script etc,,,,you can simply do it in 'AT USER COMMAND'.
I hope this will be helpful to you.
Regards,
Nidhi Kothiyal
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
OTHERS = 1
.
endform. " DETAILDISPLAY
07-30-2009 10:18 AM