Hi Everybody,
i have to display some data in ALV format using OOPS. I have retrieved the data that hs to be displayed from the database.
and moved it into final internal table. i have created a screen and wirtten the logic for field catalog preparation and grid display in
hte PBO module of that screen.
i have written the logic like this
IF NOT FINAL_ITAB IS INITIAL.
CALL SCREEN 777.
ENDIF.
now data is getting displayed in ALV format in that screen.
now my requirement is if the final internal table is empty, then also the empty field catalog needs to be displayed.
for that i have written the logic like this.
IF NOT FINAL_ITAB IS INITIAL.
CALL SCREEN 777.
ELSE.
CALL SCREEN 777.
ENDIF.
is this the right way.
Thanks,
learning.abap