U can use WDDOINT method to trigger only once. Or in WDDOMODIFYVIEW
method write the code inside the condition
IF FIRST_TIME = 'X'
ENDIF.
FIRST_TIME is an importing parameter of method WDDOMODIFYVIEW. First time
It will hold 'X' and second time onwards it will be blank.