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: 

System variable which holds he field or the value of the field i clicked on

Former Member
0 Kudos

Hi All,

Is there any sysyem variable which stores the field or the value of the field i clicked on.

Thanks in advance,

Saket.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hiii

i dont think it is possible by using system variable..but you can get that result by using GET CURSOR & SET CURSOR statement.

regards

twinkal

6 REPLIES 6

Former Member
0 Kudos

hiii

i dont think it is possible by using system variable..but you can get that result by using GET CURSOR & SET CURSOR statement.

regards

twinkal

former_member181995
Active Contributor
0 Kudos

SY-LISEL?

Firoz_Ashraf
Contributor
0 Kudos

Hi Saket,

SY-LISEL will contain the Contents of a Selected List Line.

Once you get the content of the selected line then you can search for your variable.

Regards,

Firoz.

former_member188685
Active Contributor
0 Kudos

Fieldname you can get it from the GET CURSOR FIELD <FIELDNAME>.

This give the Fieldname on which you clicked. There is a value addition also. Just press F1 and see..

Former Member
0 Kudos

In report program you can create hotspot on that field

and then use

'GET CURSOR line line_no' and then

Read table itab index line_no

and then you can get the value of that field.

In module pool programing ,

You can check the checkbox provided w/SelCOlumn and give the name as itab-sel and declare the sel in itab.

and than when you click the button the sel field of that raw become X

so you can use following

read table itab with key sel = 'X'.

I hope this solves your solution

Former Member
0 Kudos

Thanks.The suggestions helped.