cancel
Showing results for 
Search instead for 
Did you mean: 

Use of the Parameter FIRST_TIME

Former Member
0 Kudos

Hi,

Can anyone explain me the functionality of the parameter FIRST_TIME in web dynpro application.

Thanks in advance.

Regards,

Suvajit

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi,

FIRST_TIME is a freamework generated boolean attribute available in WDDOMODIFYVIEW method. Its value is true only when the view is loaded for the first time.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi suvajitmukherjee ,

First_time indicates whether the hook is called for the first time during the lifetime of the view

this parameter will lies under Modifyview hook method .

example :

METHOD wddomodifyview .
 IF FIRST_TIME  is not initial . 
   " code written here will execute only for the first time . 

  ENDIF.

ENDMETHOD.

regards

chinnaiya P

gill367
Active Contributor
0 Kudos

Wddomodify is the hook method which is triggred every time an event occurs and this method is used to dynamically create

UI elements in the view and so usually the code that you write to create UI elements should execute only once that is during the

first load of the view.

That thing is done by FIRST_TIME parameter which is of type boolean so in the code you check if first_tiem is abap_true then

only create the UI elements.like as below.

if FIRST_TIME = abap_true.

" Here you write your code

" for creating the UI elements dynamically.

endif.

Thanks

Sarbjeet Singh