How to get the field name in the PAI
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.
Use get cursor statement.
GET CURSOR FIELD wa_field1.
u will get the filed name in wa_field1.
Reward points if helpfull.