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

Diff betn FIELD <f> MODULE <m> ON INPUT and ON-Request.

Hi ABAP genie

Can anyone plz clarify the following

Diff betn FIELD <f> MODULE <m> ON INPUT and ON-Request.

Thanx in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2004 at 07:37 AM

    Check out this SAP Help, I found :

    You can ensure that a PAI module is only called when a 
    certain condition applies by using the following 
    statement:
    
    <b>FIELD <f> MODULE <mod> ON INPUT|REQUEST|*-INPUT.</b>
    
    The additions have the following effects:
    
    <b>ON INPUT</b>
    The ABAP module is called only if the field contains a 
    value other than its initial value. This initial value is 
    determined by the data type of the field: Space for 
    character fields, zero for numeric fields. Even if the 
    user enters the initial value of the screen as the 
    initial value, the module is not called. (ON REQUEST, on 
    the other hand, does trigger the call in this case.)
    
    
    <b>ON REQUEST</b>
    The module <mod> is only called if the user has entered 
    something in the field. This includes cases when the user 
    overwrites an existing value with the same value, or 
    explicitly enters the initial value. 
    
    
    In general, the <b>ON REQUEST</b> condition is triggered 
    through any form of "manual input". As well as user 
    input, the following additional methods of entering 
    values also call the module:
    
    The element attribute PARAMETER-ID (SPA/GPA parameters). 
    The element attribute HOLD DATA 
    CALL TRANSACTION ... USING 
    Automatic settings of particular global fields 
    ON *-INPUT
    
    The ABAP module is called if the user has entered a "*" 
    in the first character of the field, and the field has 
    the attribute *-entry in the Screen Painter. When the 
    input field is passed to the program, the * is removed. * 
    behaves like an initial field in the ON INPUT condition.
    
    

    Regards,

    Subramanian V.

    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.