SAP code:
*&---------------------------------------------------------------------*
*& Report ZIDA_PROGRAM
*&---------------------------------------------------------------------*
REPORT zida_program.
*&... Get the reference of IDA ALV Object
TRY.
DATA(lo_alv_ida) = cl_salv_gui_table_ida=>create( iv_table_name = 'SCARR').
CATCH cx_salv_db_connection INTO DATA(lx_salv_connection).
CATCH cx_salv_db_table_not_supported INTO DATA(lx_salv_not_supported).
CATCH cx_salv_ida_contract_violation INTO DATA(lx_salv_cont_violation).
ENDTRY.
IF lo_alv_ida IS BOUND.
*&... Get the reference of ALV fullscreen mode
TRY.
DATA(lo_fullscreen) = lo_alv_ida->fullscreen( ).
CATCH cx_salv_ida_contract_violation INTO lx_salv_cont_violation.
ENDTRY.
IF lo_fullscreen IS BOUND.
*&... Display Data on UI
lo_fullscreen->display( ).
ENDIF.
ENDIF.
No comments:
Post a Comment