Skip to Content
author's profile photo Former Member
Former Member

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 10:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 10:32 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.