Hello Katrice,
I debugged to the hilt and found that standard function module 'ME_REL_ACTIVE' was returning sy-subrc non zero.
I cleared one variable after identifying it. Below is the code snippet:
ld_read_t16fg = '(SAPLEBNF)READ_T16FG'.
ASSIGN (ld_read_t16fg) TO <lst_read_t16fg>.
IF <lst_read_t16fg> IS ASSIGNED AND <lst_read_t16fg> IS NOT INITIAL.
CLEAR <lst_read_t16fg>.
ENDIF.
UNASSIGN <lst_read_t16fg>.
Regards,
Harsh