Friday, May 29, 2026

IDA 1: Display Table Data Using IDA

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.

Output:





























Key Concept:



No comments:

Post a Comment

RAP8: Early numbering

In this post will show you how to use early numbering . Step 1: Add early numbering key word in interface behavior definition and activate b...