‎2008 Jan 24 5:14 AM
doe sany one know how to use this fm
TABLE_GET_KEY_TO_SET_CUR_ROW
‎2008 Jan 24 5:18 AM
yes u pass table name and prog name and it will return the key elements in a pop up window
‎2008 Jan 24 5:18 AM
yes u pass table name and prog name and it will return the key elements in a pop up window
‎2008 Jan 24 5:29 AM
rohan,
The fun module TABLE_GET_KEY_TO_SET_CUR_ROW is called for the Function position to find the correct Row .
Means suppose in you table control you have lot of records .To find particular and select that this Fm is useful..
EX:
1) add a button say search box .
2) when user clicks on this button show
dialog box with enter key field No:
3) when user enter box no search table control
intternal table and if found
set tc1-current_line = sy-tabix of record found.
DATA : ata: h_table_key(20) type c.
'V_TQ85 is internal table.
call function 'TABLE_GET_KEY_TO_SET_CUR_ROW'
EXPORTING
table = 'V_TQ85'
IMPORTING
table_key = h_table_key
EXCEPTIONS
cancelled_by_user = 1
table_not_found = 2
others = 3.
Don't forget to reward if useful...
‎2008 Jan 24 7:49 AM
Hi Murali,
Can u explain how this function mod works.See i have created a table control and displayed data from the DB through internal table.
Now as per ur idea i have used a search button.Inside tht i call this FM
call function 'TABLE_GET_KEY_TO_SET_CUR_ROW'
exporting
table = 'ITAB'
importing
table_key = h_table_key
exceptions
cancelled_by_user = 1
table_not_found = 2.
Now its not showing any difference..I have written this in PBO.Help me in this issue