2007 Jun 26 8:38 AM
how to get the cursor position to particular field in table control
2007 Jun 26 8:41 AM
Hi,
GET CURSOR < FIELD field [field_properties]> or { LINE line }
Field Properties are:
[VALUE val] [LENGTH len] [OFFSET off] [LINE lin] [AREA area].
Reward if useful!
how to get the cursor position to particular field in table control
2007 Jun 26 8:41 AM
Hi,
GET CURSOR < FIELD field [field_properties]> or { LINE line }
Field Properties are:
[VALUE val] [LENGTH len] [OFFSET off] [LINE lin] [AREA area].
Reward if useful!
2007 Jun 26 8:41 AM
Hi
Use GET CURSOR FIELD <FIELD> LINE <LINE>.
U need to insert in PAI inside the LOOP of tc:
PROCESS PAI
LOOP AT ...
MODULE GET_CURSOR.
ENDLOOP.
MODULE GET_CURSOR.
GET CURSOR FIELD V_FIELD LINE V_LINE.
ENDMODULE.In variable V_FIELD you can find out the name of the field where cursor is and in V_LINE the number of the record of the table control.
U should consider the line of table control can be different from the line of the internal table, the link is:
LINE_ITAB = <TABLE CONTROL>-TOP + V_LINE - 1.
Max
2007 Jun 26 8:42 AM
Hi,
You can use get cursor statement. Syntax is
GET CURSOR < FIELD field [field_properties]> or { LINE line }
Field Properties are:
[VALUE val] [LENGTH len] [OFFSET off] [LINE lin] [AREA area].
Regards,
Richa
2007 Jun 26 10:48 AM