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

SMARTFORMS sender address without OBJKEY

Kevin_Holtkamp
Participant
0 Likes
1,524

Hi everyone,

we are using a Smartform which has a MAIL_SENDER and MAIL_RECIPIENT parameter, to which an OBJKEY is passed.

The new requirement is so set the sender address to a specific email address which does not exist as an OBJKEY.

Unfortunately i have not found where the MAIL_SENDER parameter is evaluated. Can anybody tell me that so i can add logic to evaluate the email address without the OBJKEY?

1 ACCEPTED SOLUTION
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
1,391

You can try use function module CREATE_RECIPIENT_OBJ_PPF. Enter e-mail address and you will get SWOTOBJID which you can use when calling Smartform.

According to SAP Note 3009695 (How-to define a default sender address when using Smartforms) it can be also used for senders. Not only for recipients.

-- Tomas --
3 REPLIES 3
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
1,392

You can try use function module CREATE_RECIPIENT_OBJ_PPF. Enter e-mail address and you will get SWOTOBJID which you can use when calling Smartform.

According to SAP Note 3009695 (How-to define a default sender address when using Smartforms) it can be also used for senders. Not only for recipients.

-- Tomas --
Read only

venkateswaran_k
Active Contributor
0 Likes
1,391

Hi

You can get the details in following way.

SELECT SINGLE owner
FROM scappt
INTO la_owner
WHERE objkey = <objkey>.

IF sy-subrc EQ 0.
  CALL FUNCTION 'LWE_GET_EMAIL'
  EXPORTING
  username = la_owner
  IMPORTING
  email_address = la_mail.
ENDIF.

You may customize according to your need. Generally the email is is picked from the email maintained in SU01. (for the owner / user id )

Regards,

Venkat

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,391

You may search the forum/SAP Web site with your favorite Web search engine. I see many answers for search below. Based on the results, if it still doesn't solve, you may anyway refine your query/provide more information.

"SMART FORM" "MAIL_SENDER" site:sap.com