on 2025 Jan 29 7:49 PM
Boa tarde!
Existe alguma maneira de, quando enviamos um pedido de compra por email, o comprador ser notificado de que o email foi entregue, recebendo um email com o OK? Quando tínhamos o sap ECC isso funcionava, porém agora no S/4 não funciona de maneira nenhuma. Estamos utilizando a classe CL_BCS para envio dos emails.
A solicitação de leitura está funcionando, mas a de notificação de entrega do e-mail não chega de maneira alguma. Alguém tem uma luz pra me ajudar com isso? Obrigado
Request clarification before answering.
Hello @ayglonfernando
Good day
I understand what you require: in addition to the read receipt, you also want an email delivery confirmation (DSN – Delivery Status Notification) when a purchase order is sent via CL_BCS.
Here’s the gist and how to troubleshoot it:
1) A read receipt is not the same as delivery confirmation.
2) In ABAP (CL_BCS)
Make sure you explicitly request delivery status before send( 😞
DATA(lo_send) = cl_bcs=>create_persistent( ).
lo_send->set_document( lo_doc ).
lo_send->add_recipient( lo_rec ).
" Request DSN / status mails (use constants available in your release)
lo_send->set_status_attributes(
i_requested_status = 'ALL' " SUCCESS/FAILURE/DELAY as policy allows
i_status_mail = 'ALWAYS' ).
lo_send->send( ).
Exact constants may vary by release; the key is: request DSN explicitly.
3) On the mail server side (usually the real blocker)
Ask your email/admin team to verify:
In Public Cloud (SaaS), you don’t have SCOT access, so DSN behaviour is entirely up to your external mail provider.
4) Why does it work in ECC but not now
Most often, the SMTP path changes during the move (to a new relay/gateway that doesn’t issue successful DSNs). ABAP still requests DSN, but the server simply doesn’t send the “delivered” notification.
5) Practical paths forward
With kind regards
Chuma
GenAI Assit content (Useful references)DSN (SMTP extension): RFC 3461 – SMTP Service Extension for Delivery Status Notifications. IETF DatatrackerRFC Editor
Read receipts (MDN): RFC 8098 – Message Disposition Notification (successor to RFC 3798). IETF Datatracker
CL_BCS method: SET_STATUS_ATTRIBUTES documentation (requesting status/DSN). SAP Help Portal
Exchange/Office 365 DSNs: Microsoft docs (NDRs are the common DSN type). Microsoft Learn
Public Cloud output email (no SCOT; use Output Management/external mail): SAP S/4HANA Cloud Output Management overview. SAP Community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.