Default value for specific components

SUGGESTED

Hello,

Im looking for solution to add default component value in function GESDBY Disassembly.

I tried to use something like this:

$APRES_CRE
For i=0 To max([M:DBY1]NBLIG -1)

if [M:DBY1]ITMREF(i) = "X"
[M:DBY1]PRIORD(i) = 17
Affzo [M:DBY1]PRIORD(i)

elsif [M:DBY1]ITMREF(i) = "Y"
[M:DBY1]PRIORD(i) = 10
Affzo [M:DBY1]PRIORD(i)

endif
Next
Return

but i cant find good entrypoint/subprogram and even if value is displayed on the screen, its not saved in the table.

Thank you for your help