SAP Function SAMPLE_INTERFACE_00011215 - Account: Date Selection for Turnover Display

Parameter Reference Type Length Default Optional Text
I_BIS_DATE SYST-DATUM D 8 Posting Date
I_VON_DATE SYST-DATUM D 8 Posting Date

Parameter Reference Type Length Text
E_VON_DATE SYST-DATUM D 8 Posting Date

Functionality
You can use this function module as template for individually desinginga customer-specific function module for Business Transaction Event S
AMPLE_INTERFACE_00011215, the posting date from, when displayingturnovers on the account.
Copy this module into a customer-specific function module (such asZBKK_INTERFACE_00011215 ) and maintain the source code in it.
To activate the BTE you must store an appropriate entry in theCustomizing settings:
In the IMG in activity:
SAP Banking/Current Accounts/Basic Settings/Business Transaction Events/ Event Control/ Function Modules (P/S) Activate SAP Application
Maintain entry:
Event 00011215
Country
Application BKK
Function module ZBKK_INTERFACE_00011215
The parameters of the function module are as follows:
IMPORT:
I_VON_DATE (posting date from)
I_BIS_DATE (posting date to)
EXPORT:
I_VON_DATE (posting date from)

Example
Coding example for setting the posting date from to the last day ofthe last but one month:
MOVE i_bis_date TO i_von_date. "zum Buchungsdatum den 1.des Monats
i_von_date+6(2) = 01. " in Von-Date
IF i_von_date+4(2) = '01'.
i_von_date+4(2) = '12'.
i_von_date(4) = i_von_date(4) - 1.
ELSE.
i_von_date+4(2) = i_von_date+4(2) - 1."letzter Monat
ENDIF.
e_von_date = i_von_date - 1. "letzter Tag des vorletzten Monats