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

SET CURSOR

Former Member
0 Likes
536

Hi all,

Can anybody tell me the syntex of <b>Set Cursor</b>.

I am using table control for displaying Material number and Description in screen.

Now i have created one button to search perticular material from the output list.

I can find that material and make that material mark but i want that the cursor should move to that row of table control.

So caan plz anybody help me?

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
510

Look a sapmle DEMO_DYNPRO_TABCONT_LOOP

Regards

Read only

0 Likes
510

hi

there is no Set Cursor in DEMO_DYNPRO_TABCONT_LOOP

Read only

0 Likes
510

Okay,

Look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm">Table Controls in ABAP Programs</a>

Extract:

At PBO you can set the cursor on a specific field of a specific row of a table control.


SET CURSOR FIELD f LINE lin [OFFSET off]. 

Using the optional addition OFFSET, you can enter the offset of the cursor in the field as described under .

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/content.htm">Setting the Cursor Position</a>

Regards

Read only

Former Member
0 Likes
510

Hi,

Yes it can be done.

Use SET CURSOR field statement.

Here what you do is, when get the searched material row get that index and use this stmt:

SET CURSOR FIELD <f> LINE <lin>

**Reward points in all thread if it helped you and close them.

Br,

Laxmi.