01-07-2005 10:41 AM
Hi all,
i need to create a task to send email but i'm muddled with all informations which I find.
In fact, we develop a Web application on IBM WebSphere interfaced to SAP and with a RFC function we start a workflow. No SAP WAS.
In this last, we wish to create a task which will send a email to a user. The email'll be recovered in the infotype 105, subtype 0010.
On sdn.sap.com i read that it was necessary to install SAPConnect, but this last work with SAP WAS isnt'it ?
Can you help me for this ?
Thanks so much for the daily reading
01-07-2005 1:41 PM
Hi "tafkap",
To send an email from within SAP systems require you to configure SAPconnect (in SAP itself) on APPLICATION server level.
Furthermore if this has been done, you can use the RFC module SO_OBJECT_SEND in the following way:
Fill RECEIVERS (TABLE of SAP type SOOS1) with your adressees.
Fill OBJECT_HD_CHANGE (STRUCTURE of SAP type SOOD1) with valid details.
Fill OBJCONT (TABLE of SAP type SOLI) with your message details.
Call the rfc module 'SO_OBJECT_SEND'
EXPORTING parameters:
object_hd_change = OBJECT_HD_CHANGE
object_type = 'RAW'
owner = 'VALIDUSER'
TABLES:
objcont = OBJCONT
receivers = RECEIVERS
EXCEPTIONS:
ACTIVE_USER_NOT_EXIST
COMMUNICATION_FAILURE
COMPONENT_NOT_AVAILABLE
FOLDER_NOT_EXIST
FOLDER_NO_AUTHORIZATION
FORWARDER_NOT_EXIST
NOTE_NOT_EXIST
OBJECT_NOT_EXIST
OBJECT_NOT_SENT
OBJECT_NO_AUTHORIZATION
OBJECT_TYPE_NOT_EXIST
OPERATION_NO_AUTHORIZATION
OWNER_NOT_EXIST
PARAMETER_ERROR
SUBSTITUTE_NOT_ACTIVE
SUBSTITUTE_NOT_DEFINED
SYSTEM_FAILURE
TOO_MUCH_RECEIVERS
USER_NOT_EXIST
ORIGINATOR_NOT_EXIST
X_ERROR
Regards,
Rob.
01-07-2005 2:35 PM