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

Email Copy

Former Member
0 Likes
381

Hello,

If I got this code, how can I copy the same email to other people??

create sender (current user)

swc_create_object lo_sender 'RECIPIENT' space.

swc_set_element lt_container 'AddressString' sy-uname.

swc_set_element lt_container 'TypeID' 'B'.

swc_call_method lo_sender 'CreateAddress' lt_container.

swc_object_to_persistent lo_sender ls_persistent_sender.

create recipient

swc_create_object lo_recipient 'RECIPIENT' space.

swc_set_element lt_container 'AddressString' w_correo.

swc_set_element lt_container 'TypeID' 'U'.

swc_call_method lo_recipient 'CreateAddress' lt_container.

swc_object_to_persistent lo_recipient ls_persistent_recipient.

Asignacion de Valores.

w_mail_sender = ls_persistent_sender.

w_mail_receiver = ls_persistent_recipient.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'MAIL'

dialog = ''

form = 'ZFIFL030AVPAG'

language = sy-langu

mail_sender = w_mail_sender

mail_recipient = w_mail_receiver

OPTIONS = itcpo

EXCEPTIONS

canceled = 1

device = 2

form = 3

OPTIONS = 4

unclosed = 5

mail_options = 6

OTHERS = 7.

Thanks!!

Gabriel

Hello,

If I got this code, how can I copy the same email to other people??

create sender (current user)

swc_create_object lo_sender 'RECIPIENT' space.

swc_set_element lt_container 'AddressString' sy-uname.

swc_set_element lt_container 'TypeID' 'B'.

swc_call_method lo_sender 'CreateAddress' lt_container.

swc_object_to_persistent lo_sender ls_persistent_sender.

create recipient

swc_create_object lo_recipient 'RECIPIENT' space.

swc_set_element lt_container 'AddressString' w_correo.

swc_set_element lt_container 'TypeID' 'U'.

swc_call_method lo_recipient 'CreateAddress' lt_container.

swc_object_to_persistent lo_recipient ls_persistent_recipient.

Asignacion de Valores.

w_mail_sender = ls_persistent_sender.

w_mail_receiver = ls_persistent_recipient.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'MAIL'

dialog = ''

form = 'ZFIFL030AVPAG'

language = sy-langu

mail_sender = w_mail_sender

mail_recipient = w_mail_receiver

OPTIONS = itcpo

EXCEPTIONS

canceled = 1

device = 2

form = 3

OPTIONS = 4

unclosed = 5

mail_options = 6

OTHERS = 7.

Thanks!!

Gabriel

1 REPLY 1
Read only

JanStallkamp
Advisor
Advisor
0 Likes
328

This looks like a double posting to [this one|;. Please refrain from posting one question several times. I will lock this thread.

Best regards,

Jan Stallkamp