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

function module

Former Member
0 Likes
416

doe sany one know how to use this fm

TABLE_GET_KEY_TO_SET_CUR_ROW

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
387

yes u pass table name and prog name and it will return the key elements in a pop up window

3 REPLIES 3
Read only

Former Member
0 Likes
388

yes u pass table name and prog name and it will return the key elements in a pop up window

Read only

Former Member
0 Likes
387

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...

Read only

0 Likes
387

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