Code: Alles auswählen.
REPORT zz_get_workload_parameters.
DATA: wa_param LIKE sapwlparam.
START-OF-SELECTION.
CALL FUNCTION 'SAPWL_WORKLOAD_GET_PARAMETERS'
IMPORTING
statistic_parameters = wa_param.
WRITE: / 'Aufbewahrungszeiten für Statistikdaten:'.
SKIP.
WRITE: / '- Tagesdaten: ', wa_param-res_days, 'Tage'.
WRITE: / '- Wochendaten: ', wa_param-res_weeks, 'Wochen'.
WRITE: / '- Monatsdaten: ', wa_param-res_months, 'Monate'.
WRITE: / '- Jahresdaten: ', wa_param-res_years, 'Jahre'.
Code: Alles auswählen.
if stapar-res_days < 2. stapar-res_days = 2. endif.
if stapar-res_days > 31. stapar-res_days = 31. endif.
if stapar-res_weeks < 2. stapar-res_weeks = 2. endif.
if stapar-res_weeks > 20. stapar-res_weeks = 20. endif.
if stapar-res_months < 2. stapar-res_months = 2. endif.
if stapar-res_months > 20. stapar-res_months = 20. endif.
if stapar-res_years < 0. stapar-res_years = 0. endif.
if stapar-res_years > 5. stapar-res_years = 5. endif.