Fortschrittsanzeige bei Programmausführung: Unterschied zwischen den Versionen

Aus SAP Wiki ツ
(Die Seite wurde neu angelegt: „Kategorie: Codeschnipsel PARAMETERS: p_times1 TYPE i DEFAULT 15. DO p_times1 TIMES. cl_progress_indicator=>progress_indicate( i_text =…“)
 
 
Zeile 1: Zeile 1:
[[Kategorie: Codeschnipsel]]
[[Kategorie: Codeschnipsel]]
<syntaxhighlight lang="abap" line start="1">
  PARAMETERS: p_times1 TYPE i DEFAULT 15.
  PARAMETERS: p_times1 TYPE i DEFAULT 15.
   
   
Zeile 7: Zeile 8:
                                             i_total              = p_times1    " Maximum
                                             i_total              = p_times1    " Maximum
                                             i_output_immediately = abap_true ). " true -> sofort, false -> aller 10s  darstellen
                                             i_output_immediately = abap_true ). " true -> sofort, false -> aller 10s  darstellen
  WAIT UP TO 1 SECONDS.
  ENDDO.
  ENDDO.
</syntaxhighlight>

Aktuelle Version vom 12. August 2021, 09:02 Uhr

 PARAMETERS: p_times1 TYPE i DEFAULT 15.
 
 DO p_times1 TIMES.
   cl_progress_indicator=>progress_indicate( i_text               = |Fortschritt { sy-index } / { p_times1 }|
                                             i_processed          = sy-index     " Wert
                                             i_total              = p_times1     " Maximum
                                             i_output_immediately = abap_true ). " true -> sofort, false -> aller 10s  darstellen
 ENDDO.