Ansicht
Dokumentation

/DSCSAG/ADV_MAIL_SEND_OBJECTS - Module for SAP mail sending with BO attachments

/DSCSAG/ADV_MAIL_SEND_OBJECTS - Module for SAP mail sending with BO attachments

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module enables you to send via SAP mail new documents, including business object attachments.

Import parameters:

IV_SUBJECT - message subject ;

IV_SENDER_ADDRESS - address of a sender, default value SY-UNAME;

IV_SENDER_ADDRESS_TYPE - sender address type, following values are permitted:

,,'B' : SAP user name

,,' ': SAPoffice name

,,'C' : Shared distribution list

,,'F' : Fax number

,,'U' : Internet address

,,'R ' : Remote SAP name

,,'X' : X.400 address

Export parameters:

EV_SENT_TO_ALL - set to 'X' if message is successfully sent to all receivers;

EV_NEW_OBJECT_ID - id of created document (message) object;

ES_RETURN - bapiret2 structure;

Tables:

IT_MESSAGE_ TXT - messsage text in ASCII format. (in single list with column lenght255)

IT_OBJ_ATTACHMENTS - table with object attachments data, structure /DSCSAG/ADV_MAIL_OBJ_ATT, fields :,,

,,,,,,,,,,,,,,- OBJ_TYPE - oblect name;

,,,,,,,,,,,,,,- OBJ_KEY - unique object key;

IT_RECEIVERS - table must contain the document recipients (structure SOMLRECI1);

,,,,,, most important fields of table entry:

RECEIVER - name of recipient,the following entry types are possible:

,,,,- SAP user name of the recipient

,,,,- SAPoffice name of the recipient

,,,, - Shared distribution list

,,,, - Fax number in the form of structure SADRFD

,,,, - Internet address in the form of structure SADRUD

,,,, - Remote SAP name in the form of structure SADR7D

,,,, - X.400 address in the form of structure SADR8D

ADR_TYPE - type of RECEIVER entry, permitted values same as SENDER_ADDRESS_TYPE;

COM_TYPE - communication type used to send the document, this field is only relevant if the recipient is an address number, that is if the document is sent externally via address management. If the field is empty, the standard communication type specified in address management is used. The following values are permitted:

,,,,'INT' : Send by using the Internet

,,,,'FAX' : Send as a fax

,,,,'X40' : Send by using X.400

,,,,'RML' : Send to another SAP system

BAPI messages:

Module can return BAPIRET2 with next messages (message class /DSCSAG/ADV_MAIL_MSG):

003 'Unexpected Error.'

008 'Message sending error: too many receivers.'

009 'Message sending error: document not sent.'

010'Message sending error: document type not exist.'

011'Message sending error: operation no authorization. '

012 'Message sending error: parameter error.'

013'Message sending error: x error.'

014 'Message sending error: enqueque error.'





Parameters

IT_CONTENT
IT_OBJ_ATTACHMENTS
IT_RECEIVERS
IV_SUBJECT
RETURN
RUNTIME
VERSION_ID

Exceptions

Function Group

SAG/SAPLADV_MAIL

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.

Length: 3719 Date: 20240420 Time: 093430     sap01-206 ( 46 ms )