Fonction SAP CACS_GET_PERIOD - Determine Calculation Period

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_APPL CACSAPPL C 6 Commission Application Identification
I_KEY_DATE SYST-DATUM D 8 SY-DATUM Key Date
I_PERIODRULE_ID CACSPERRULE C 7 Period Rule
I_SETTLEMENT FLAG C 1 ' ' X Settlement

Paramètre Reférence Type Long. Description
E_BASEPEFD CACSBASEPEFD I 4 Periodicity of Reference Period
E_BASEPER CACSBASEPER C 1 Reference Period
E_DATE_FROM CACSBASEDATE D 8 Period Start
E_DATE_TO CACSBASEDATE D 8 Period End
E_NO_PREV_PERIOD FLAG C 1 No Previous Period available
E_PERIOD CACSPERIOD N 6 Period No.
E_TILL_DATE_CHANGED FLAG C 1 Till-Date not found

Exception Description
PERIOD_NOT_FOUND Period not found
PERIOD_RULE_NOT_FOUND Period Rule not found
TABLE_IS_CLEAR Table Is Empty

Functionality
The function module determines the related settlement period with thehelp of key date.
In case no settlement period has been created, a period end date isdetermined as per the periodicity in the period rule.