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 initialization and default in reports

Former Member
0 Likes
894

difference between initialization and default in reports

6 REPLIES 6
Read only

Former Member
0 Likes
795

Hi,

the purpose of Initialization and default is same. It just a two different ways for giving a default value to a variable.

regards,

Navneeth K.

Read only

Vijay
Active Contributor
0 Likes
795

hi

initilization is an event in reports

during initilization you can assign default values to the parameters.

regards

vijay

<b>reward points if helpful</b>

Read only

former_member189629
Active Contributor
0 Likes
795

Hi,

Though the function of both seems to be the same, there is difference in their nature and use. In INITIALIZATION.

Refer to the below threads

http://help.sap.com/saphelp_nw04/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm

Reward if helpful

Regards,

K

Read only

Former Member
0 Likes
795

Hi,

Initialization - This is the first event to be fired

default - you declare it in the data statement or in the selection screen

Regards

Arun

Read only

varma_narayana
Active Contributor
0 Likes
795

Hi...

There is a difference between the DEFAULT (Used in PARAMETERS and

SELECT-OPTIONS) and INITIALIZATION event which is triggered before loading the selection screen.

For Eg We want to Declare a PARAMETER for a Date input and provide the DEFAULT VALUE as Yesterday.

EG:

PARAMETERS : P_DATE TYPE SY-DATUM DEFAULT SY-DATUM - 1.

**This is not allowed bcoz DEFAULT cannot expressions.

We can acheive this only using INITIALIZATION event

EG:

PARAMETERS : P_DATE TYPE SY-DATUM.

INITIALIZATION.

P_DATE = SY-DATUM - 1.

<b>Reward if Helpful.</b>

Read only

Former Member
0 Likes
795

hi,

initialization is the second event in report execution by sap. 1st event is LOAD-OF-PROGRAM which is default event.

Initialization event is useful for assigning default values to select options

Default keyword is used for assigning default values to varaiables, parameters.

if helpful reward some points.

with regards,

Suresh Aluri.