cancel
Showing results for 
Search instead for 
Did you mean: 

Table control column selct is not working if we have editable cloumn

Former Member
0 Kudos

Hello all,

I am facing issue in selecting column in table control if there are editable fields in table control.

Initially I am able to select column in table control. But if I scroll down than cursor will go to editable field and after that if I scroll down than column select will stop working.

In other words if my cursor is at editable field in table control and if I scroll down or press enter on table control than column select will stop working.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

At the time of creating Table Control There is An option for Scroll. Make sure You can Create Table Control With that Option.

Regards

Ajit

Former Member
0 Kudos

Thanks Ajit for quick response

I have used table control wizard for crateing table control and selct scroll at that time. Scroll functionality is working fine.

Former Member
0 Kudos

Dear Nikhil,

Will You Provide Function Code In Editable Table Control Field.

Regards

Ajit

Former Member
0 Kudos

No I have not provided fucntion codes for editable column in table control

Former Member
0 Kudos

Hi

Provide Function Code .

Regards

Ajit

Former Member
0 Kudos

Hi Ajit,

How can we add function code to columns in table control. Function code field is non-editale in case of table control column.

deepak_dhamat
Active Contributor
0 Kudos

Hi ,

in PBO  module status_1000 .  you can set      tab_ctrl-lines = ln .


loop at it_mat with control tab_ctrl
             cursor tab_ctrl-current_line  .

endloop.


 In PAI 

  loop at it_mat 
 module user_command_1000.
endloop.


"In driving program  add code like this  


MODULE user_command_1000 INPUT.

  READ TABLE  it_mat INDEX tab_ctrl-current_line TRANSPORTING NO FIELDS .

  IF sy-subrc = 0 .

    MODIFY it_mat FROM it_mat INDEX tab_ctrl-current_line .
    CLEAR it_mat .
  ELSE .

    APPEND it_mat .
    CLEAR it_mat .
  ENDIF.

ENDMODULE.

regards

Deepak.

Former Member
0 Kudos

Hello Deepak,

Can you please explain how code you have mentioned is going to help me.

deepak_dhamat
Active Contributor
0 Kudos

Hi ,

Your problem is : When you are scroling editable fields of column , after some scroll it might get non editable and you wil not able to scroll again .

For that Table-ctrl lines needs to be define and Modify index control .

regards

Deepak.

Former Member
0 Kudos

Deepak,

Scrolling on table is working fine. Even editable fields are editable after scrolling.

Issue I am facing is with column select functionality of table control. After scrolling on editable fieldu2019s column select functionality of table control is not working and I am not able to select column in table control.

deepak_dhamat
Active Contributor
0 Kudos

DEar Nikhil ,

I will suggest you to DOn't go for Table control wizard . it generates auto code .

DO it manually it is very easy . you will easy rectify problem which you are facing . Otherwise difficult to find problem .

Follow few steps .

1) First Driving program .

2) declare your internal table

3) then go to se51 ->

give screen number generate screen

add Flow logic code manually .

add table control on screen layout .

regards

Deepak.