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 Table Control

Former Member
0 Likes
987

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
962

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

10 REPLIES 10
Read only

Former Member
0 Likes
962

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

Read only

0 Likes
962

Max,

its really helpful but what is the FCODE for <double click>.

Thanks & Regards,

Vijaya.

Read only

0 Likes
962

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.

Read only

Former Member
0 Likes
962

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

Read only

0 Likes
962

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

Read only

0 Likes
962

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

Read only

Former Member
0 Likes
963

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

Read only

0 Likes
962

That cant be done Rob since i need to select multiple entries where i can EDIT etc

Thanks & Regards,

Vijaya.

Read only

0 Likes
962

Anybody Plz Respond....

Thanks,

Vijaya.

Read only

0 Likes
962

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