Hola Appana,
Estoy escribiendo código para enviar correos electrónicos y no sé qué parámetros necesito pasar a esta FM.
POR FAVOR CORRÍGEME.
REPORT ZMAILEXAMPLE123.
DATA: g_rcode TYPE sy-subrc.
DATA: BEGIN OF gt_errmsg OCCURS 0,
g_msg(100) TYPE c,
END OF gt_errmsg.
OPEN DATASET 'nombre_archivo' FOR OUTPUT MESSAGE zmsg IN TEXT MODE ENCODING DEFAULT.
g_rcode = sy-subrc.
IF g_rcode <> 0.
gt_errmsg-g_msg = zmsg.
APPEND gt_errmsg.
ENDIF
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA =
-
PUT_IN_OUTBOX = ' '
-
COMMIT_WORK = ' '
-
IMPORTING
-
SENT_TO_ALL =
-
NEW_OBJECT_ID =
TABLES
PACKING_LIST =
-
OBJECT_HEADER =
-
CONTENTS_BIN =
-
CONTENTS_TXT =
-
CONTENTS_HEX =
-
OBJECT_PARA =
-
OBJECT_PARB =
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
.
IF SY-SUBRC <> 0.
-
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
-
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SALUDOS,
DIVYA