‎2009 Feb 12 6:51 AM
Hi
in module programming, what is the difference between ON INPUT, ON INPUT * and ON REQUEST which are used for field level validations?
‎2009 Feb 12 6:59 AM
ON INPUTThe 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.)
ON REQUEST
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 ON REQUEST condition is triggered through any form of "manual input".
‎2009 Feb 12 6:56 AM
‎2009 Feb 12 6:58 AM
Hi,
The two looks alike but yes they are different:
PAI
FIELD A MODULE CHECK_DAT ON INPUT.Module 'Check_dat' will be executed onli if the value in the field A is "not" equal to its initial value appropriate to its data type.(eg blanks for char or zero for numeric)
PAI
FIELD A MODULE CHECK_DAT ON REQUEST.Module 'Check_dat' will be executed only if the value has been entered in field A since the screen was displayed.
hope this will be of help.
Pooja
‎2009 Feb 12 6:59 AM
ON INPUTThe 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.)
ON REQUEST
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 ON REQUEST condition is triggered through any form of "manual input".
‎2009 Feb 12 7:02 AM
if I enter something (which is not intial value) then which one will trigger. It satisfies both ON INPUT and ON REQUEST right?
what about ON INPUT * ?
‎2009 Feb 12 7:47 AM
Hi Priya,
Visit the below link for all you queries:
http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
Pooja
‎2009 Feb 17 6:48 AM
HI
had your problem solved .
If not please ask me what is your probelm in this .
‎2009 Feb 17 2:06 PM