method suppress.
constants: sin_0 type c length 1 value 0.
constants: sin type memoryid value 'SIN'.
data: sin_oryginal type c length 1.
get parameter id sin field sin_oryginal.
check sin_oryginal ne '0'. "no need to set anything
set parameter id sin field sin_0.
"A call of which will set up parameter prog_indi_mode in FG SGUI
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
percentage = 100
text = 'Dummy'.
set parameter id sin field sin_oryginal. "Return to original mode
endmethod. "supress
report zab_suppress_progress_demo.
data: gt_sbook type standard table of sbook.
data: gt_csv type truxs_t_text_data.
parameters: p_supp radiobutton group gr1 ,
p_show radiobutton group gr1 default 'X'.
start-of-selection.
select * up to 50000 rows
into corresponding fields of table gt_sbook
from sbook.
if p_supp eq abap_true.
zab_suppress_progress_ind=>suppress( ).
endif.
call function 'SAP_CONVERT_TO_CSV_FORMAT'
exporting
i_field_seperator = ';'
i_line_header = abap_true
tables
i_tab_sap_data = gt_sbook
changing
i_tab_converted_data = gt_csv
exceptions
conversion_failed = 1
others = 2.
if sy-subrc eq 0.
endif.
message i001(00) with 'Done'.