‎2009 Jun 19 4:19 PM
Hi Friends ,
Right now I am displaying two buttons in tool bar, sort ascending and sort descending.
When the user clicks sorr ascending it sorts ascending like wise Descedning button.
but for me, when the user double cliks on any record of the list, it is getting sorted by ascending, sorting is triggering.
How to control this kind of triggering, When you double clik nothing should happen.
How to control this?
after case and endcase, i am clearing Sy-ucomm variable, but still it happens.
Regards,
Xavier.P
‎2009 Jun 19 4:29 PM
Hi,
The Sorting logic need to be called as given below:
AT User-Command.
Case sy-ucomm.
When <PushButtonFunctionCOde>
1) Sort the internal table
And
2) Display the Record.
Endcase.
* The Doubel Clicking of Lines need to be handled through the following Event:
At Line-Selection.
.....
.....
Rgds,
Ramani N
‎2009 Jun 19 4:31 PM
Hi,
Try to check sy-ucomm value in debugging mode when you click on any of the record.
If possible can you provide your source code.
Regards,
Prashant
‎2009 Jun 19 4:31 PM
Hi Xavier,
Can you give us a look of your code??
Anyways can tell me how are you populating the internal table.
Regards,
Abhinab Mishra
‎2009 Jun 19 5:26 PM
HI,
Use Refersh after double click event like below
FORM user_command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
CASE sy-ucomm.
WHEN 'DOUBLE CLICK'
selfield-refresh = 'X'.
WHEN 'ACSENDING or DESCENDING"
ENDCASE.
ENDFORM. "user_command
Thansk
Prashant Gupta