cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms how to fill emailaddress into mail_recipient

former_member397888
Discoverer
0 Kudos

Hello gurus,

to send output to an emailaddress is normally no extra work. You do NOT need functions
like SO_NEW_DOCUMENT_ATT_SEND_API1 for it.

Bu it have a question about sending without that FM. Normally the the recipient is automatically determined. But i want to set another email address myself and i do not see how to do that.
Normally first you set the print parameters with function:

perform set_print_param using ls_addr_key
ls_dlv-land
changing ls_control_param
ls_composer_param
ls_recipient
ls_sender
cf_retcode.

and after FM function 'SSF_FUNCTION_MODULE_NAME'

you will start the smartform with

call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
* mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
is_bil_invoice = ls_bil_invoice
is_nast = nast
is_repeat = repeat
importing
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4

others = 5.

In both functions you have the parameter ls_recipient and i think it most be possible
to fill it in such as way that you can decide yourself which emailaddress will be used in the abapcoding.
Can someone tell me how to achieve this

Thanks in advance

Accepted Solutions (0)

Answers (0)