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: 

How to get the field name in the PAI

Former Member
0 Kudos

Hello All.

I have to run a FM on one of two fields in the screen.

I don't want to write two different moudles to these fields like this:

FIELD scr100-lenum1 MODULE check_lenum1 ON REQUEST.

FIELD scr100-lenum2 MODULE check_lenum2 ON REQUEST.

I want write one moudle that i could ask there - > from which field did i came, like this:

FIELD scr100-lenum1 MODULE check_lenum ON REQUEST.

FIELD scr100-lenum2 MODULE check_lenum ON REQUEST.

please advice..

thanks, Barak.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use get cursor statement.

Ex:

GET CURSOR FIELD wa_field1.

u will get the filed name in wa_field1.

Reward points if helpfull.

Regards,

Gopi

2 REPLIES 2

Former Member
0 Kudos

Use <b>GET CURSOR FIELD <></b>

Former Member
0 Kudos

Use get cursor statement.

Ex:

GET CURSOR FIELD wa_field1.

u will get the filed name in wa_field1.

Reward points if helpfull.

Regards,

Gopi