This blog post introduces the procedure of creating an advance notice to inform payers about future direct debit payment collection in SAP S/4HANA Cloud public edition. It is aim for the usage related to direct debit mandates in Contract Accounting.
Before the collection of the future direct debit payments, the payee can send an advance notice to inform the payer about the payment collection.
Before creating direct debit advance notices, you must complete the following customizing activities:
In the following activities, we introduce the procedure in SAP S/4HANA Cloud public edition.
This activity allows you to set up a range of numbers within which the advance notices are valid.
In this activity you activate the direct debit advance notice function and setting up the lead days to determine the execution day for the payment collection.
You must complete the following activations in different configuration steps:
You have configured the output of the advance notices with the following steps.
Note: You have to activate the Output Management (1LQ) scope item.
Download the dunning notice template and open it in the LiveCycle Designer for the modification.
Note: You can install Adobe LiveCycle Designer in Install Additional Software app.
If you activate advance notice for a payment method, you cannot generate payment through the Payment Run/Debit Memo Run app for this payment method unless the advance notice for this payment has been created. To create an advance notice for the payment, see the following steps.
If the number of days between the advance notice and the payment collection date are insufficient, those pre-notified items can be skipped when running the payment runs in this app.
In the following section, SAP provides the Cloud Business Add-In (BAdI) implementation for this scenario.
As a key user, you can use the cloud business add-in (BAdI) to implement your own logic. Before using the cloud BAdI, ensure that you have assigned the business role SAP_BR_EXTENSIBILITY_SPEC.
Note: Regarding of extensibility options for developers, go to Business Accelerator Hub and search for Adjust Payment Data (for Customer).
You can reuse the following coding and adjust based on your business requirements.
METHOD if_fkk_sample_0610_badi~execute.
DATA: ls_messages TYPE LINE OF messa_kk_gfn_t.
" BAdI implementation for Direct Debit Mandates - Advance Notice
" check number of days between Notification and Collection Date
" "Select Pre-Notified Items" option is active
IF capaymentrunparameter-prenotifieddrctdebitsareseld EQ space.
RETURN.
ENDIF.
LOOP AT cadocumentitemstobepayed ASSIGNING FIELD-SYMBOL(<fs_op>).
" Compare Creation Date of Payment Run ( DPAYC-ERDAT) and Execution Date calculated in event 657 / SSCUI 106087-"Lead days" for advance notice
IF capaymentrunadminrecords-creationdate < <fs_op>-casepaprenotifexecutiondate.
" deactivate item
<fs_op>-itemisactivated = abap_false.
" set exception: Pre-Notification with Unsuitable Date
<fs_op>-capaymentexceptionreason = '053'.
" add info message
ls_messages-systemmessageidentification = 'FKKID_DDM'.
ls_messages-systemmessagenumber = '073'.
ls_messages-systemmessagetype = 'I'.
ls_messages-systemmessagevariable1 = <fs_op>-cadocumentnumber.
ls_messages-systemmessagevariable2 = <fs_op>-caamountintransactioncurrency && '/' && <fs_op>-transactioncurrency.
ls_messages-systemmessagevariable3 = <fs_op>-casepaprenotificationnumber.
ls_messages-systemmessagevariable4 = <fs_op>-casepaprenotifexecutiondate+6(2) && '/' &&
<fs_op>-casepaprenotifexecutiondate+4(2) && '/' &&
<fs_op>-casepaprenotifexecutiondate(4).
APPEND ls_messages TO messages.
ENDIF.
ENDLOOP. " AT cadocumentitemstobepayed
ENDMETHOD. Is this blog post helpful to you? Leave comments below to let us know your thoughts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |