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

Mark a line in table control

Former Member
0 Likes
1,714

Hi,

How can I mark a line \ set a cursor on a specific line in a table control.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
896

Hi Bashi,

When ever we create table control we will add 1 extra field as a first field in the internal table of char type C .

For example if we want to declare itnternal table with 2 fields means we are putting 1 more field for selection purpose as shown below in se38 editor.

data:begin of itab occurs 0,

chck,

matnr like mara-matnr,

maktx like makt-maktx,

end of itab.

After dragging table control on to the screen we have to put this itab into table control.

so that first field carries whether that line/row selected or not by just checking itab-chck = 'X'.

"code to be executed"

while dragging itab into table control you have to drag in proper way.

Please reward if needful.

Hi,

How can I mark a line \ set a cursor on a specific line in a table control.

4 REPLIES 4
Read only

Former Member
0 Likes
897

Hi Bashi,

When ever we create table control we will add 1 extra field as a first field in the internal table of char type C .

For example if we want to declare itnternal table with 2 fields means we are putting 1 more field for selection purpose as shown below in se38 editor.

data:begin of itab occurs 0,

chck,

matnr like mara-matnr,

maktx like makt-maktx,

end of itab.

After dragging table control on to the screen we have to put this itab into table control.

so that first field carries whether that line/row selected or not by just checking itab-chck = 'X'.

"code to be executed"

while dragging itab into table control you have to drag in proper way.

Please reward if needful.

Read only

0 Likes
896

But the user won't notice this row on the screen.

I want to know if there is a way to mark a line on the screen.

Read only

0 Likes
896

Hi

By screen paint in the attribute of the table control you need to active Line Selection attribute and indicate the name of the MARK field.

So you need to add the marker field in your internal table, when the user'll select a line this field'll have the value X.

Max

Read only

Former Member
0 Likes
896

hi,

can u elaborate ur reuirement?