Senders and Recipients

Use

To enable an object to be sent using BCS, a sender and one or more recipients must be passed to BCS. This means that an instance of a class has to be created, which implements the interface IF_SENDER_BCS for the sender and the interface IF_RECIPIENT for the recipient. You then pass this instance to BCS with the method SET_SENDER or SET_RECIPIENT of the class CL_BCS. If you want to pass several recipients, you have to call the method SET_RECIPIENT for each recipient.

Features

Classes already exist whose constructors you can use to create addresses as recipients or senders:

  • CL_SAPUSER_BCS Internal user

  • CL_ORGUNIT_BCS Organizational unit

  • CL_CAM_ADDRESS_BCS Internet, fax, SMS or RML address (for more information, see CL_CAM_ADDRESS_BCS)

The following addresses can only be used for recipients:

  • CL_DISTRIBUTIONLIST_BCS Distribution list

  • CL_BOR_OBJECT_BCS Business object (for more information, see CL_BOR_OBJECT_BCS)

  • CL_SAPROLE_BCS SAP role

Activities

Creating the current user as sender and passing to the send request

Creating an Internet address as recipient and passing to the send request with the Express indicator