‎2008 Dec 15 5:30 PM
Hi Gurus,
In one of my Output screens, i am having a table control,
here my problem comes when i double click on any one row
of respective table control it is performing some actions,
here my req is, it should do nothing when i double click a row in table control.
i.e I should disable the double click in table control.
Thanks & Regards,
Vijaya.
‎2008 Dec 15 6:34 PM
In the screen painter, press attribute button (F2) and then select the table control. Press the 'none' radio button for line selection. Save and activate.
Rob
‎2008 Dec 15 5:36 PM
Hi
U need to create a module in PAI where u get the field name where the double click is done, and then check the field name in your user_command in order to stop the action assigned to doubleclick if the field belongs to table control:
PROCESS PAI
LOOP AT .....
MODULE GET_CURSOR.
ENDLOOP.
MODULE USER_COMMAND.MODULE GET_CURSOR.
GET CURSOR FIELD V_FIELDNAME.
ENDMODULE.MODULE USER_COMMAND.
CASE OK_CODE.
WHEN <double click>.
CHECK V_FIELDNAME <> ........
ENDCASE.
ENDMODULE.Max
‎2008 Dec 15 5:43 PM
Max,
its really helpful but what is the FCODE for <double click>.
Thanks & Regards,
Vijaya.
‎2008 Dec 15 6:15 PM
Here in debugging mode i am getting Fcode(sy-ucomm) as CREATE
where in my prog i am using CREATE for creating orders,
so i cant terminate this which may efect my original functionality,
is there any alternative,Plz advice me...
Thanks & Regards,
Vijaya.
‎2008 Dec 15 6:12 PM
Hi,
Is this a standard screen or a custom screen ? If it is a custom screen and you have added the table control, then there is no functionality attached to the double click unless you code for it. So you can remove that code where the double click is handled. But if it is a standard screen , you can do very little about it.
regards,
Advait
‎2008 Dec 15 6:17 PM
Off Course its a custom screen and i havnt written any code for Double Click..
Thanks & Regards,
Vijaya.
Edited by: vijaya on Dec 15, 2008 7:17 PM
‎2008 Dec 15 6:25 PM
So then what is the issue ? Are you saying that when you double click, the sy-ucomm is CREATE ? May be you are not clearing the OK_CODE where you are handling the same in the PAI modules.
Something like this.
module user_command.
data l_ok_code type sy-ucomm.
l_ok_code = ok_code.
clear ok_code.
endmodule.
regards,
Advait
‎2008 Dec 15 6:34 PM
In the screen painter, press attribute button (F2) and then select the table control. Press the 'none' radio button for line selection. Save and activate.
Rob
‎2008 Dec 15 6:47 PM
That cant be done Rob since i need to select multiple entries where i can EDIT etc
Thanks & Regards,
Vijaya.
‎2008 Dec 15 8:53 PM
‎2008 Dec 16 9:36 AM
Hi
U should considere the ok_code for doubleclick is assigned in your status gui: it's ok_code linked to keyboard F2.
So u should check your status gui of your dynpro: if the OK_CODE = CREATE for doubleclick, it means F2 is assigned CREATE in menu painter.
Max