Fonction SAP BKK_FREE_AMOUNTS_SET_DATE - Determination of Start and End of Withdrawal Period

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_PERIOD BKK_PERIOD N 3 Period
I_POSTDATE BKK_PSTDAT D 8 SY-DATUM X Posting Date
I_UNIT BKK_PUNIT C 1 Period Unit
I_VRSTYP BKK_VRSTYP C 2 Category of Available Balance Series

Paramètre Reférence Type Long. Description
E_END BKK_VVZ_END D 8 Withdrawal Period End
E_RETURN SYST-SUBRC I 4 Return Value, Return Value After ABAP Statements
E_START BKK_VVZ_START D 8 Withdrawal Period Start

Functionality
Depending on the available balance series, this function module findsthe start and end of the withdrawal period.
Where available balance series category 1 = withdrawal amount, thesystem calculates to the day for a period unit of day and week. It usesthe start date for the period units month, quarter, year, and for anexact calendar date.
Where available balance series category 2 = special revenue allowanceamount, the system calculates to the day, starting with the transferreddate for all period units.

Example
Available balance series category 1,,,Start date 10/29/2002
Period unit 2 = Week,,,,Periods,,2
E_START,,=,,10/29/2002,,E_END,,=,,11/12/2002
Period unit 3 = Month,,,,Periods,,1
E_START,,=,,10/01/2002,,E_END,,=,,10/31/2002
Available balance series category 2,,,Start date 10/29/2002
Period unit 1 = Day,,,,Periods,,30
E_START,,=,,10/29/2002,,E_END,,=,,11/28/2002
Period unit 4 = Quarter,,,,Periods ,,2
E_START,,=,,10/29/2002,,E_END,,=,,04/29/2002

Description
Return code
0 = o.k.
1 = Import error
2 = Invalid category of available balance series