Skip to Content
-2
Jun 15, 2022 at 06:16 AM

Sending external mail - (sender)

54 Views Last edit Jun 15, 2022 at 06:17 AM 2 rev

I am using the following line of code

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = P_DOCUMENT_DATA
* PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = 'no-reply@*'
SENDER_ADDRESS_TYPE = 'C'
IMPORTING
SENT_TO_ALL = P_SENT_TO_ALL
NEW_OBJECT_ID = L_NEW_OBJECT_ID
* SENDER_ID =
TABLES
PACKING_LIST = PT_PACKING_LIST
OBJECT_HEADER = PT_OBJECT_HEADER
CONTENTS_TXT = PT_CONTENT
RECEIVERS = PT_REAL_RECIPIENTS
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.

But for some reason i am getting sy-subrc = 6.

I have tried changing the SENDER_ADDRESS_TYPE to A,B,C,L and S