‎2007 Aug 09 3:36 PM
Hi guys,
i created a control table with the ti_master inside.
im trying to get the postion when double click, i already got the event, F2, with PICK,
my problem is that i dont know how to get the row and the column that was clicked, im using get cursor but im a little bit lost.
the name of my control table is USERS
the internal table name is TI_users
i use GET CURSOR USERS, but is an error
so i think is GET CURSOR TI_USERS., but i search on SY and i cant see the values.
any ideas?
‎2007 Aug 09 3:46 PM
Hi,
GET CURSOR FIELD <f> [OFFSET <off>]
[LINE <lin>]
[VALUE <val>]
[LENGTH <len>].
Look at the Demo Program DEMO_DYNPRO_GET_CURSOR
Regards
Sudheer
‎2007 Aug 09 3:46 PM
Hi,
GET CURSOR FIELD <f> [OFFSET <off>]
[LINE <lin>]
[VALUE <val>]
[LENGTH <len>].
Look at the Demo Program DEMO_DYNPRO_GET_CURSOR
Regards
Sudheer
‎2007 Aug 09 3:52 PM
Take a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabf135c111d1829f0000e829fbfe/frameset.htm">Finding Out the Cursor Position</a> there SAP provide a sample.
GET CURSOR FIELD <f> [OFFSET <off>]
[LINE <lin>]
[VALUE <val>]
[LENGTH <len>].<i>This statement transfers the name of the screen element on which the cursor is positioned during a user action into the variable <f>. If the cursor is on a field, the system sets SY-SUBRC to 0, otherwise to 4.
The additions to the GET CURSOR statement have the following functions:
OFFSET writes the cursor position within the screen element to the variable <off>.
LINE writes the line number of the table to the variable <lin> if the cursor is positioned in a
table control. If the cursor is not in a table control, <lin> is set to zero. VALUE writes the contents of the screen field in display format, that is, with all of its formatting characters, as a string to the variable <val>.
LENGTH writes the display length of the screen field to the variable <len>.</i>
Regards