MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Correo con copia con send_request (foro/showthread.php?t=65395)

minerva0112 27/11/12 18:13:40

Correo con copia con send_request
 
Hola, necesito enviar un correo con copia, logro el primer remitente pero no se colocarle la 2da dirección. estoy utilzando lo siguiente:

gracias :confused:

****Create the Subject Line
l_subject = it_subject-line.

**** Create Persistent Send Request
send_request = cl_bcs=>create_persistent( ).
****Create the document Body
l_mailtext = cl_document_bcs=>string_to_soli( it_salida2 ).


document = cl_document_bcs=>create_document(
i_type = 'TXT'
i_text = l_mailtext
i_subject = l_subject ).

****Add Document to Send Request
send_request->set_document( document ).

****Get the Sender Object from the Current Logged on User
sender = cl_sapuser_bcs=>create( sy-uname ).

****Add Sender to the Send Request
send_request->set_sender( sender ).

****Create recipient(s)

recipient = cl_cam_address_bcs=>create_internet_address( it_salida-usrid ).
send_request->add_recipient( recipient ).

hpicon 29/11/12 21:49:29

Hola minerva0112,

Puedes intentar lo siguiente:

Este es el mail a quien está dirigido el mail

l_recipient = cl_cam_address_bcs=>create_internet_address( l_email ).

CALL METHOD l_send_request->add_recipient
EXPORTING
i_recipient = l_recipient
i_express = 'X'
i_copy = ' '
i_blind_copy = ' '
i_no_forward = ' '.

Aqui indicas el mail de la persona que va a ir con copia

l_recipient = cl_cam_address_bcs=>create_internet_address( l_email_CC ).

CALL METHOD l_send_request->add_recipient
EXPORTING
i_recipient = l_recipient
i_express = 'X'
i_copy = 'X'
i_blind_copy = ' '
i_no_forward = ' '.


Espero sea de ayuda

Saludos :)

minerva0112 05/12/12 13:53:35



muchas gracias, funciono perfecto


Husos Horarios son GMT. La hora en este momento es 15:46:17.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web