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 use GET CURSOR in module pool programming

Former Member
0 Likes
2,951

Hello all,

Plz help me to use GET CURSOR in module pool programming, I am trying the syntax , but the statement is failing ( Sy-SUBRC = 4). Syntax is right and there is no error , but it is not extracting the field on which i double clicked. I have a problem in which i have to double click on the filed , and it should give me the name and contains of the field. I am on a tabstrip. and its a subscreen. I already catch the sy-ucomm.

1 ACCEPTED SOLUTION
Read only

rahulkavuri
Active Contributor
0 Likes
1,383

Define & Use OKCODE, instead of capturing the value sy-ucomm

5 REPLIES 5
Read only

rahulkavuri
Active Contributor
0 Likes
1,384

Define & Use OKCODE, instead of capturing the value sy-ucomm

Read only

0 Likes
1,383

But it is failing on GET CURSOR statement, means sy-subrc goes to 4 after executing the statement. plz help in this regard.

Thanks for quik reply

Read only

Former Member
0 Likes
1,383

Hi

*- Get Cursor field

GET CURSOR FIELD gv_cursor.

Will give you the current field where the cursor/control is .... it will not return you the value of it...u can get by the variable/screen field...

Regards,

Raj

Read only

0 Likes
1,383

thanks raj , but it is not solving the problem......i already tried it...

Read only

Former Member
0 Likes
1,383

Hi,

Cursor Position on Table Controls

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

SET CURSOR FIELD .

if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

reward if this helps .

regards,

keerthi