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 in dialog

Former Member
0 Likes
508

how to get the cursor position to particular field in table control

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
487

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

4 REPLIES 4
Read only

Former Member
0 Likes
488

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!

Read only

Former Member
0 Likes
487

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

Read only

Former Member
0 Likes
487

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

Read only

Former Member
0 Likes
487

answered