I have an ABAP ALV that shows some data. I need to send the outputed ALV to an email. For now, it works for every email that was sent, except in Outlook. I was told that I need to use something in the tag on the ABAP. Here's the code:
loop at gt_email into ls_email.
clear: v_mensagem, it_message[].
* begin of GC - 26.07.2012
concatenate
'<html><head><table border="1">'
'<tr>'
'<td>Código de Material</td>'
'<td>Descrição</td>'
'<td>Depósito</td>'
'<td>Stock Actual</td>'
'<td>Stock Mínimo</td>'
'<td>Stock Máximo</td>'
'<td>Necessidade</td>'
'<td>Stock LPO</td>'
'</tr>'
into v_mensagem.
Thank you for your help!
here's the function that sends the email:
call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
sender_address = c_emissor
sender_address_type = 'INT'
commit_work = 'X'
importing
sent_to_all = gd_sent_all
tables
packing_list = it_packing_list
contents_txt = it_message
receivers = it_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
i believe this is a standard sap function. thank you.