Fonction SAP BKK_PAYM_ORDER_GET_DATE_FUT_PL - Payment Order: Future Posting Date Within Tolerance for Planned Payt Order

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_BKKRS BKK_BKKRS C 4 Bank Area
I_CAL_ID1 BKK_CAL1 C 2 X Public Holiday Calendar ID 1
I_CAL_ID2 BKK_CAL2 C 2 X Public Holiday Calendar ID 2
I_DATE_PLANNED BKK_PSTDAT D 8 Posting Date Planned
I_DATE_POST BKK_PSTDAT D 8 Current Posting Date
I_PRODINT BKK_PRODINT C 18 X Internal Product ID
I_VERSION BKK_PRODVERSION N 3 X Product Version
I_X_NO_MSG BKK_XFELD C 1 X X Field

Paramètre Reférence Type Long. Description
E_DATE_NEXT_WK_DAY BKK_PSTDAT D 8 Posting Date as Next Working Day
E_DATE_PLANNED_MAX BKK_PSTDAT D 8 Posting Date Planned for Upper Tolerance Limit
E_DATE_PLANNED_MIN BKK_PSTDAT D 8 Posting Date Planned for Lower Limit
E_RETURN SYST-SUBRC I 4 RETURN Code

Functionality
The function module transfers the data from the tolerance tableTBKKG2_DATE_PL for checking the future posting date of the plannedpayment order, or the planned payment item. The system checks whetherthe posting date is within the allowed tolerance interval. The allowedtolerance interval is determined by the function module by using thecurrent posting day. The lower limit is calculated by adding theminimum number of tolerance days on the current posting day. The upperlimit is calculated by adding the maximum number of tolerance days onthe current posting day. The future posting date must be within thisinterval, otherwise entry is not possible.

Function module parameters:
IMPORT
Bank area:
I _BKKRS
Internal product number
I_PRODINT
Version of the internal product number:
I_VERSION
Public holiday calendar 1 (country):
I_CAL_ID1
Public holiday calendar 1 (differentiated by country):
I_CAL_ID2
Current posting date for the bank area:
I_DATE_POST
Future posting date of the planned order/order:
I_DATE_PLANNED
EXPORT
Minimum tolerance date:
E_DATE_PLANNED_MIN
Maximum tolerance date:
E_DATE_PLANNED_MAX
Planned posting date as the next working day:
E_DATE_NEXT_WK_DAY)
Return code:
E_RETURN

Return code:
0 : Processing OK
1 : Tolerance limits not entered for bank area or product
2: Incorrect calculation of the next working day
3: Date is before earliest future tolerance date
4: Date is after latest future tolerance date
5: Bank area not created