Application Development and Automation 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: 
Read only

Smartform - sender issue

vallamuthu_madheswaran2
Active Contributor
0 Likes
1,626

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.

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
Read only

FredericGirod
Active Contributor
0 Likes
1,562

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

Read only

vallamuthu_madheswaran2
Active Contributor
0 Likes
1,562

Hi Frederic Girod,

Thanks for your reply.

Could provide me the code snippet for the sender part?

Thanks with regards,

Vallamuthu M.

Read only

FredericGirod
Active Contributor
0 Likes
1,562

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.
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,562

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