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
1,320

hi experts,

wt is diff b/w get cursor and set cursor?

thanks in advance.

11 REPLIES 11
Read only

Former Member
0 Likes
1,116

hi,

SET CURSOR

This command is used to place the positon of the cursor at the specific location in the Reports.

SET CURSOR FIELD 'MODUS' OFFSET 2.

http://www.geocities.com/siliconvalley/campus/6345/set_curs.htm

GET CURSOR

This is used to fetch the value from the position set by SET cursor.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
1,116

hiiii

SET cursor will set your cursor at particular field while get cursor will get value from particular field.

http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm

regards

twinkal

Read only

Former Member
0 Likes
1,116

Hii!

Check out this link

http://www.abapprogramming.net/2007/09/abap-faq-interactive-reports.html

Set Cursor is used to place cursor on a particular input

field,or a particular line in an output list.

Get cursor can be used to find out the position of the

cursor where the action has occured.This can be used most

of the time when ever you doubble click on use f2 function.

Regards

Abhijeet

Edited by: Abhijeet Kulshreshtha on Jul 11, 2008 1:23 PM

Edited by: Abhijeet Kulshreshtha on Jul 11, 2008 1:23 PM

Read only

Former Member
0 Likes
1,116

Hi,

Set Cursor is used to place cursor on a particul input

field,or a particular line in an output list.

Get cursor can be used to find out the position of the

cursor where the action has occured.This can be used most

of the time when ever you doubble click on use f2 function.

GETCURSOR is used to trace the position of the cursor in the list ..

suppose we want to double click on any filled in the list and want to trace data using that field we use getcursor

For Details-

http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbabf135c111d1829f0000e829fbfe/content.htm

Sample Code

http://www.sap-img.com/abap/a-sample-hide-get-cursor-in-interactive-programming.htm

Regards,

sujit

Read only

KalC
Active Participant
0 Likes
1,116

Hi,

Get cursor can be used to read data at current cursor location. Where as set cursor can be used to put the cursor control on a particular line.Hope this helps.

Regards,

Kalyan.

Read only

Former Member
0 Likes
1,116

Hi,

Set cursor is used to pass the data from abap program to

abap memory

Get cursor is used to pass the data from the abap memory to

the abap program.

syntax: set parametes (pid) vairable (variable).

get parameter (pid)

http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbabf135c111d1829f0000e829fbfe/frameset.htm

Regards

Sowmya

Read only

Former Member
0 Likes
1,116

Set cursor and Get cursor are different utilities .They differ as follows:

The Set Cursor is used to place cursor on a particular input

field.

whereas Get cursor can be used to put the cursor control on a particular line.

Read only

0 Likes
1,116

hai ,

i want to know in which event we can write set cursor statement.if it is for selection screen.

Edited by: sudheer b on Jul 12, 2008 12:08 PM

Read only

Former Member
0 Likes
1,116

set cursor :

During PBO processing, this statement sets the cursor in the screen layout of the current screen. The cursor can be positioned by entering a screen element after FIELD or by entering a specific position using col and lin. Outside of PBO processing, the cursor is positioned in the next list displayed on the screen.

Get cursor:

If this statement is specified during PAI processing, depending on the specification for FIELD or LINE, it transfers either the name of the screen element or the number of the row of a table control or of the group of a step loop (on which the screen cursor is positioned after a user action) into the data objects field or line.

Read only

Former Member
0 Likes
1,116

Hi Deepak.

Firstly, We can set the cursor at any event.

For example: set/get cursor field.

May be any event, the cursor is set/the cursor position of that field is obtained/set. The cursor position at which event you want to get/set for that event triggering.

Coming to the differences:

Simply, GET CURSOR deals with knowing the cursor position of that field, line, etc during triggering of an event.

SET CURSOR deals with placing the cursor at a particular position / field/ line, etc.

[To Find the cursor position - Get cursor|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbabf135c111d1829f0000e829fbfe/frameset.htm]

[To set the cursor position|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/frameset.htm]

Good Luck & Regards.

HARSH