cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

send payment advice to one specific mail

MAZIZ
Explorer
0 Kudos
617

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?

Accepted Solutions (1)

Accepted Solutions (1)

Bohdan
Active Contributor
0 Kudos

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

MAZIZ
Explorer
0 Kudos

Thank you very much the.wirtschaftsmann

Answers (0)