Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with Interactive report

Former Member
0 Likes
575

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

4 REPLIES 4
Read only

former_member229729
Active Participant
0 Likes
536

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

Read only

Former Member
0 Likes
536

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

Read only

Former Member
0 Likes
536

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

Read only

Former Member
0 Likes
536

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