Application Development 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: 

SET CURSOR

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

Look a sapmle DEMO_DYNPRO_TABCONT_LOOP

Regards

0 Kudos

hi

there is no Set Cursor in DEMO_DYNPRO_TABCONT_LOOP

0 Kudos

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

Former Member
0 Kudos

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.