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

Does the CL_BCS_MAIL_MESSAGE API (e-mail via RAP) allow whitelisting of recipients?

wagener-mark
Contributor
932

The API CL_BCS_MAIL_MESSAGE is not only available on BTP but since 2022 also for S/4HANA. The old e-mail frameworks allowed the whitelisting of recipients in transaction SCOT. By maintaining a list of recipients in transaction SCOT, it was possible to restrict who should receive e-mails e.g. from a DEV or QA system. This is a common procedure to prevent sending e-mails to externals on dev and qa environments.

The whitelisting via SCOT does not apply to the new framework. Is there a similar functionality or a BAdI available?

View Entire Topic
wagener-mark
Contributor

We found the solution. Configuration of the System Email Outbound | SAP Help Portal

Activate BC-Set BCS_ADDRESS_CHECK_BADI_ACTIVE via transaction SCPR20 and then configure the e-mail address check in SPRO -> ABAP Platform -> Application Server -> E-Mail Configuration -> ...

Remark: These settings are client-specific and are not recorded on transport requests. 

@ SAP: Would be nice to enhance the new framework's documentation and add documentation on api.sap.com!

 

faba002
Explorer
0 Likes
Is there any update on the on-premise situation? The current email-validation logic only works for different domains. It does not help when we want to avoid sending hundreds of emails to people from the same company with the same domain during testing or intake processes in development systems. We do not understand why SAP did not implement a simple whitelist or checklist mechanism similar to what is available in SCOT. We want to innovate and build most of our new applications using the RAP framework. However, the old mail APIs rely on COMMIT WORK, which is not supported in RAP applications. Because of this, SAP recommends using the new API class. The problem is that the new API always sends the emails immediately—even when running tests from development, intake, or quality systems. After weeks of discussions with SAP Support on our open case, the only answer we received is that their development team “does not see the need for whitelisting individual email addresses.” Are there really no other customers or companies facing the same issue?