03-18-2007 8:51 AM
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?
03-18-2007 8:58 AM
03-18-2007 9:08 AM
03-18-2007 10:07 AM
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
03-18-2007 10:02 AM
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.