2007 Nov 28 9:09 AM
Hi,
How can I mark a line \ set a cursor on a specific line in a table control.
2007 Nov 28 10:13 AM
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.
2007 Nov 28 10:13 AM
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.
2007 Nov 28 7:08 PM
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.
2007 Nov 28 7:18 PM
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
2007 Nov 28 11:32 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |