Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get the field name in the PAI

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.

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question