on 2023 Aug 18 6:59 PM
Hi everybody,
I have a requirement to send automatically all payment advices to one mail (an agent responsilble of communication but has no access to payments).
If it is possible by a periodic job, that also would be good.
Any idea?
Request clarification before answering.
Hi maaziz,
You do not need a periodic job to send all payment advices to a responsible agent. You can leverage standard SAP functionality to trigger generation / sending of e-mails to an agent immediately during execution of the payment run.
First of all, please check out how standard functionality works with regards to sending of payment advices per e-mail. There are many posts on this topic. You can take this one as a starting point.
Second, what you should understand is that the e-mail sending is essentially managed via user exit i.e. BTE 00002040. It means you can define your own logic. Please check out the coding in the sample FM i.e. SAMPLE_PROCESS_00002040. As you will see, this FM fetches the e-mail address from master data of customer / vendor and uses it to send the e-mail. So what you need to do is to skip the master data and define custom logic to retrieve the e-mail for your agent. It can be either a local constant, a TVARVC-variable, some Z-customizing etc.

The only drawback in my opinion is that your agent will receive one mail per business partner. But that is the limitation of the payment program. If you want to implement alternative solution (to send one mail to the agent with PDFs for all business partners), you'll probably need to define a custom program to generate payment advices which is not embedded into the standard payment solution.
Regards,
Bohdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 28 | |
| 14 | |
| 13 | |
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.