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

table control

Former Member
0 Likes
287

How to know that on which line of table control i m double clicking plz tell

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
271

Hi,

Through index u come to know about that field which u have selected in table control.

this is smaple code,

PROCESS AFTER INPUT.

LOOP AT ITAB_PHONELIST ."table control itad

MODULE EXTRACT_USERDATA.

ENDLOOP.

module delete.

MODULE EXTRACT_USERDATA INPUT.

CASE SAVE_CODE.

WHEN 'DELE'.

IF ITAB_PHONELIST-SELECTION EQ 'X' AND

confirmation = 'G'.

ITAB_PHONELIST-SELECTION = 'X'." this is how u can view ur selected record in the table control (ITAB_PHONELIST-SELECTION = 'X').

modify ITAB_PHONELIST index TCTRL_PHONELIST-CURRENT_line.

ENDIF.

ENDMODULE. " EXTRACT_USERDATA INPUT

MODULE delete INPUT.

CASE SAVE_CODE.

WHEN 'DELE'.

DELETE ITAB_PHONELIST where selection eq 'X'.

endcase.

ENDMODULE. " delete INPUT

seshu.

2 REPLIES 2
Read only

Former Member
0 Likes
272

Hi,

Through index u come to know about that field which u have selected in table control.

this is smaple code,

PROCESS AFTER INPUT.

LOOP AT ITAB_PHONELIST ."table control itad

MODULE EXTRACT_USERDATA.

ENDLOOP.

module delete.

MODULE EXTRACT_USERDATA INPUT.

CASE SAVE_CODE.

WHEN 'DELE'.

IF ITAB_PHONELIST-SELECTION EQ 'X' AND

confirmation = 'G'.

ITAB_PHONELIST-SELECTION = 'X'." this is how u can view ur selected record in the table control (ITAB_PHONELIST-SELECTION = 'X').

modify ITAB_PHONELIST index TCTRL_PHONELIST-CURRENT_line.

ENDIF.

ENDMODULE. " EXTRACT_USERDATA INPUT

MODULE delete INPUT.

CASE SAVE_CODE.

WHEN 'DELE'.

DELETE ITAB_PHONELIST where selection eq 'X'.

endcase.

ENDMODULE. " delete INPUT

seshu.

Read only

Former Member
0 Likes
271

resolved