SAP Function SAMPLE_INTERFACE_00011036 - Correspondence for Prenotification of Maturity on Fixed-Term Deposits

Parameter Reference Type Length Default Optional Text
IT_BKKTERM_COND BKKTM_COND_TABTYPE 0 X
I_BKK42 BKK42 u 276 X Current Account Master Data: Operative Data
I_BKK58 BKK58 u 116 X Master Data: Fixed-Term Deposit

Parameter Reference Type Length Text
E_RETURN SYST-SUBRC I 4 Subroutines Return Code

Parameter Reference Length Optional Text
T_MESG IBKKMESG 224 Structure for Transfer of Error Messages

Functionality
This function modules provides the opportunity to send correspondence tocustomers informing them of their upcoming fixed-term deposit maturity.The number of days before maturity can be set as a default in theproduct and modified at the account level.
This function module is delivered empty. You must implement printingand receiver administration yourself.

Example
Account number 99 has a maturity date of 31.03.2006. In the account,the user has selected to print Pre-notification correspondence 10 daysbefore the maturity date.
On 19.03.2006, report RFBKTTERMPRENOTICE runs. Account 99 will not beselected for correspondence because the Term Agreement will not maturefor another 12 days.
The report runs again on 21.03.2006. Account 99 will be selected.Account data, term information, and condition details will be retrievedand provided to this BTE for processing.

Notes
You must set E_RETURN to 1 if you encounter a problem or error for thecurrent Term Agreement. In addition, an entry should be added to tableT_MESG so that the problem can be identified in the application log. Ifyou set E_RETURN = 1, the X_PRENOT_PRINTED flag not be set in tableBKKTERM which will ensure that the agreement will again be selected andcorrespondence attempted with the next Pre-Notice run.

Further information
I_BKK42 contains account data for the current term account from tableBKK42.
IT_BKKTERM_COND contains fixed term and current condition datacorresponding to the selected term agreement from table BKKTERM andvarious condition tables. For example, if a term agreement has 3conditions, there are 3 entries in IT_BKKTERM_COND for this agreement.
I_BKK58 contains term account data for the current term account fromtable BKK58.
E_RETURN must be set (> 0) by the BTE only when processing has failedfor a particular recipient.
T_MESG has type IBKKMESG and must be filled by the BTE with any error orinformational messages. These messages will appear in the applicationlog.