Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

difference between ON INPUT and ON REQUEST

Former Member
0 Likes
11,469

Hi

in module programming, what is the difference between ON INPUT, ON INPUT * and ON REQUEST which are used for field level validations?

1 ACCEPTED SOLUTION
Read only

kamesh_g
Contributor
0 Likes
4,387

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".

7 REPLIES 7
Read only

Former Member
0 Likes
4,387

Hi Priya,

Refer the following link:

Hope this will help.

Regards,

Nitin.

Read only

Former Member
0 Likes
4,387

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

Read only

kamesh_g
Contributor
0 Likes
4,388

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".

Read only

Former Member
0 Likes
4,387

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 * ?

Read only

Former Member
0 Likes
4,387
Read only

0 Likes
4,387

HI

had your problem solved .

If not please ask me what is your probelm in this .

Read only

Former Member
0 Likes
4,387

Thanks Kamesh.

My question is solved.