2023 Oct 12 5:44 AM
Hi Friends,
We are sending a mail with smartform as an attachment. we getting the sender ID using the CONVERT_COMM_TYPE_DATA passing nast-usnam. But it takes, sy-uname as sender. How to change it.
I need to get sender id from Z table.
Thanks with regards,
vallamuthu M.
2023 Oct 12 6:58 AM
To be able to manage sender, I have to send email manually (coded in the print program). With class CL_BCS you could specify the sender
2023 Oct 12 8:10 AM
Hi Frederic Girod,
Thanks for your reply.
Could provide me the code snippet for the sender part?
Thanks with regards,
Vallamuthu M.
2023 Oct 13 7:55 AM
Did you notice in the parameter of the generated function module of the smartforms, there is a parameter MAIL_SENDER ?
* Create the Sender
CALL FUNCTION ‘CREATE_SENDER_OBJECT_PPF’
EXPORTING
ip_sender = sy–uname
IMPORTING
ep_sender_id = is_sender
EXCEPTIONS
invalid_sender = 1
OTHERS = 2.
2023 Oct 13 10:51 AM
For your information, I can find the exact same questions in the forum, which have answers.
Search query: "convert_comm_type_data" "sender" site:sap.com