Skip to Content
0
Former Member
Feb 24, 2009 at 07:28 AM

Initialization Event

616 Views

Hi AbAp's

Can you please explain about Initialization event with below scinario.

tables: makt.

selection-screen: skip 2,begin of block ini with frame title text-000,

skip 2.

select-options s_matnr for makt-matnr default '401' TO '500'

option BT sign I.

parameters: p_spras type spras default 'EN'.

selection-screen: skip 2,end of block ini.

initialization.

s_matnr-low = 'A1000'.

s_matnr-high = 'A1004'.

s_matnr-option = 'BT'.

s_matnr-sign = 'I'.

append s_matnr.

p_spras = 'JA'.

O/P : s_matnr : 401 to 501.

p_spras : JA.

My Doubt is .

1.Value for p_spras is picking from intialization but s_matnr it setting from default value what the reason for this?

2.Check the value in internal table s_matnr first record is default record and second is appended

value which is from initialization process ,So Which event is occur first initialization or

selection-screen?

regards,

viji