我有一个显示一些数据的 ABAP ALV。我需要将输出的 ALV 发送到电子邮件。目前,它适用于所有已发送的电子邮件,Outlook 除外。有人告诉我,我需要在 ABAP 的标签中使用一些东西。这是代码:
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.
谢谢您的帮助!
这是发送电子邮件的函数:
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.
我相信这是一个标准的 sap 功能。谢谢你。