Application Development 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: 

ON Input getting called for initial values

Former Member
0 Kudos
72

Hi friends..

Please make me understand... In module pool programming

On INPUT : module is called only if a field contains the Value other than the initial Value. This initial Value is determined by the filedu2019s Data type

But in my program, i declared one varible with data type numeric.

Declaration:

data var(3) type n.

Flow logic:

field var module m1 ON INPUT.

PAI:

MODULE M1 INPUT.

message i001(Z1).

ENDMODULE.

In my program module m1 is getting called when i enter "000" in the screen.

but as per definition its not supposed to be called.

please give me some idea on this ?

regards

deva

2 REPLIES 2

kesavadas_thekkillath
Active Contributor
0 Kudos
43

sap documentation.

With this condition, module is called only if the screen field is not empty. All screen fields except fields of type STRING or SSTRING are considered empty if they contain nothing but blanks in the screen representation.

Former Member
0 Kudos
43

This message was moderated.