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

How to postion cursor in Table Control using SAP standard function ?

Former Member
0 Likes
902

Dear All,

I have generated a <b>Table Control</b> in Modular Program .

Here a pushbutton is given which will pop up a window for user to enter keyword for search ( * can be used).

I want to provide functionality that record requested should become top line of control & cursor repositioned at it with out <b>hardcoding</b>. For this pl can anybody suggest SAP standard functions along with parameters to be passed ?

You can use transaction <b>BD60</b> to get an idea of my request.

I got a function named <b>'TABLE_GET_KEY_TO_SET_CUR_ROW'</b> there but on testing it shows all key fields for searching which is not required.

If I am on right path please suggest parameters to be passed?

I hope I have not made my query complex.

Thanks in Advance

<b>Aseem Khera</b>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
873

Have a look at FM SCROLLING_IN_TABLE.

Rob

7 REPLIES 7
Read only

Former Member
0 Likes
874

Have a look at FM SCROLLING_IN_TABLE.

Rob

Read only

0 Likes
873

Hi Rob,

I tried it but it is not working.

Can you please explain me the parameters it will take.

Thanks & Regards

Aseem

Read only

0 Likes
873

It's pretty well documented. Have you checked that?

Rob

Read only

Former Member
0 Likes
873

Hi Aseem,

Even i am using table control in module program. Could you just tell me which pop-up/functional module you have used for search??? I have a 'Find' button in application toolbar and need a pop-up for find when the user clicks on it and need the cursor postion in that particular search record........how did u implement this??? Pls let me know....

Thanks,

Shrinath

Read only

Former Member
0 Likes
873

CONTROLS: my_table TYPE TABLEVIEW USING SCREEN 0100.

At PROCESS BEFORE OUTPUT :

my_table-top_line = x.

for automatic vertical scrolling of first line of table control.

Hi.

Read only

0 Likes
873

Hi Luca,

When yo say

my_table-top_line = x.

Which value can take x ?

Regards,

JORGE ROJAS

Read only

0 Likes
873

I'm sorry for my delay!

x in an integer that indicates the offset of the row when you want to point.