‎2005 Oct 31 6:46 PM
I have a table control which has two fields: Table Name and Field Name. I have a listbox for Table name field and F4 for field name. Depending on the table name chosen, F4 shows the relative field entries. Now problem is coming when all the rows on the screen are filled and user do a scroll down. now since I am reading the table name to call F4 for field name using Tablectrl-currentline, it is giving me wrong value for table name. Also I have to take care of th efact that user can modify existing entry also.
Anybody???
Thanks in advance
Reagards,
Arpit
‎2005 Oct 31 6:51 PM
‎2005 Oct 31 6:51 PM
‎2005 Oct 31 6:54 PM
Yes, you will want to do something like this. It worked for me in one of my table control programs.
data: cursorfield(20) type c,
cursorline type i,
cursorvalue(20) type c,
cursorindex type i.
* Read the line of the table where user has requested F4 help
get cursor field cursorfield line cursorline value cursorvalue.
cursorline = ( cursorline + tablecon-top_line ) - 1.
read table internal_table index cursorline.
Regards,
Rich Heilman