Professional Documents
Culture Documents
SPRT
SPRT
CL_SALV_GUI_TABLE_IDA=>create_for_cds_view(
EXPORTING
iv_cds_view_name = 'ZCDS185'
* io_gui_container =
* io_calc_field_handler =
RECEIVING
ro_alv_gui_table_ida = o_alv
).
*CATCH cx_salv_db_connection. " Error connecting to database
*CATCH cx_salv_db_table_not_supported. " DB table / view is not supported
*CATCH cx_salv_ida_contract_violation. " IDA API contract violated by caller
*CATCH cx_salv_function_not_supported. " Funcionality is not supported
o_full_screen = o_alv->fullscreen( ).
*Collect the FullScreen Obj
*CATCH cx_salv_ida_contract_violation. " IDA API contract violated by caller
o_fcat = o_alv->field_catalog( ).
*Get the fcat Obj from ALV Obj
o_fcat->set_field_header_texts(
EXPORTING
iv_field_name = 'PRTY'
iv_header_text = text-001
* iv_tooltip_text =
* iv_tooltip_text_long =
).
o_alv->display_options( )->enable_alternating_row_pattern( ).
o_alv->display_options( )->set_title( iv_title = 'Sales order details').
o_range_coll->get_collected_ranges(
IMPORTING
et_named_ranges = data(it_ranges)
).
o_alv->set_select_options(
EXPORTING
it_ranges = it_ranges
* io_condition =
).
*CATCH cx_salv_ida_associate_invalid. " Superclass for all dynamic ALV IDA
exceptions
*CATCH cx_salv_db_connection. " Error connecting to database
*CATCH cx_salv_ida_condition_invalid. " Superclass for all dynamic ALV IDA
exceptions
*CATCH cx_salv_ida_unknown_name. " Unknown name: FieldName,DataElementName,...
o_full_screen->display( ).