Hi ,
perform test load to info cube and then Open hub. after the load you can check flat file data if your authorized to access flat file.
That will make you clarify about your code or take abaper help and debug your routine.
You can remove ELSE statement like below.
IF <l_kyf> IS INITIAL.
l_del_flag = 'N'.
ENDIF.
ENDLOOP.
IF l_del_flag <> 'N'.
DELETE SOURCE_PACKAGE.
ENDIF.
ENDLOOP.
PS: pls always post your code rather than attachment.
Thanks