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: 

Initialization event

Former Member
0 Kudos

Hi Gurus,

I found the follwoing statements from SAP help

Initialization event can be used to initialize the input fields of the standard selection screen.

This event keyword defines an event block whose event is triggered by the ABAP runtime environment during the flow of an executable program, directly after LOAD-OF-PROGRAM and before the selection screen processing of any existing standard selection screen.

Now my doubt is if a program doesn't have a selection screen does Initialization event would still get called?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

yes it will call initialization even if it doesnt have any selection screen fields.

For example,

code -

DATA a TYPE i.

START-OF-SELECTION.

WRITE a .

a = 9.

WRITE a.

INITIALIZATION.

a = 10.

now answer will be 10 and 9.

So the value for A will be 10 first which is set in intialization event.

2 REPLIES 2

Former Member
0 Kudos

yes it will call initialization even if it doesnt have any selection screen fields.

For example,

code -

DATA a TYPE i.

START-OF-SELECTION.

WRITE a .

a = 9.

WRITE a.

INITIALIZATION.

a = 10.

now answer will be 10 and 9.

So the value for A will be 10 first which is set in intialization event.

Former Member
0 Kudos

Still INITIALIZATION. will kick off.

A