Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform - sender issue

vallamuthu_madheswaran2
Active Contributor
0 Kudos
390

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.

4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos
326

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

vallamuthu_madheswaran2
Active Contributor
0 Kudos
326

Hi Frederic Girod,

Thanks for your reply.

Could provide me the code snippet for the sender part?

Thanks with regards,

Vallamuthu M.

FredericGirod
Active Contributor
0 Kudos
326

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.

Sandra_Rossi
Active Contributor
0 Kudos
326

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