Hi,
You have to assign the flag value to
ZL_IUICOBJD_POINTOFDELIVE_IMPL=>GV_FLAG before accessing it in the statement
lv_flag = ZL_IUICOBJD_POINTOFDELIVE_IMPL=>GV_FLAG.
If you have already assigned, then it is being cleared somewhere else. You can check that.
Thanks & Best Regards,
Leon