0% found this document useful (0 votes)
61 views1 page

SAP Email Sending Function

This document describes a function that sends emails from SAP. The function CALLS SO_DOCUMENT_SEND_API1 to export the sender address, mark the email to be sent to the outbox, and commit the work. It imports whether the email was sent to all receivers and includes tables for the packing list, attachments, message text, and receivers.

Uploaded by

jencuentasint01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views1 page

SAP Email Sending Function

This document describes a function that sends emails from SAP. The function CALLS SO_DOCUMENT_SEND_API1 to export the sender address, mark the email to be sent to the outbox, and commit the work. It imports whether the email was sent to all receivers and includes tables for the packing list, attachments, message text, and receivers.

Uploaded by

jencuentasint01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

TITULO: LD_SENDER_ADDRESS

Función que envía correos desde sap.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'


EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.

You might also like