2022 Jul 26 9:30 AM
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?
2022 Jul 26 11:02 AM
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.
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
2022 Jul 26 11:02 AM
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.
2022 Jul 26 11:05 AM
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
2022 Jul 26 6:47 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |