SAP ABAP Class CL_SRM_TOOLS_MAILSENDER (Send a SMTP mail)
Hierarchy
BI_CONT (Software Component) Business Intelligence Content
   BW-BCT-SPL-SDR (Application Component) Supplier Delivery Performance Rating
     RS_BCT_SPL_SDPR (Package) BW: Content Logistics - Supplier Delivery Performance Rating
Properties
Class CL_SRM_TOOLS_MAILSENDER  
Short Description Send a SMTP mail    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package RS_BCT_SPL_SDPR   BW: Content Logistics - Supplier Delivery Performance Rating 
Created 20040115   SAP 
Last change 20141101    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_SRM_TOOLS_MAILSENDER has no forward declaration.
Interfaces
Class CL_SRM_TOOLS_MAILSENDER has no interface implemented.
Friends
Class CL_SRM_TOOLS_MAILSENDER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CONST_MESSAGE_TYPE_HTM Constant Public Type reference (TYPE) SO_OBJ_TP 'HTM' Code to indicate an HTML message 20040119
2 CONST_MESSAGE_TYPE_TXT Constant Public Type reference (TYPE) SO_OBJ_TP 'TXT' Code to indicate a text message 20040119
3 CONST_REC_CLASS_BCC Constant Public Type reference (TYPE) CHAR1 'B' Code for recipient class "Bcc" 20040119
4 CONST_REC_CLASS_CC Constant Public Type reference (TYPE) CHAR1 'C' Code for recipient class "Cc" 20040119
5 CONST_REC_CLASS_TO Constant Public Type reference (TYPE) CHAR1 'T' Code for recipient class "To" 20040119
6 DO_COMMIT_ON_SEND Instance attribute Public Type reference (TYPE) CHAR1 Force a COMMIT WORK to send the mail 20040119
7 MAIL_MESSAGE Instance attribute Private Type reference (TYPE) BCSY_TEXT Text Table with mail message 20040115
8 MAIL_MESSAGE_TYPE Instance attribute Private Type reference (TYPE) SO_OBJ_TP Code for document class 20040119
9 RECIPIENTS_ADDRESSES Instance attribute Private Type reference (TYPE) T_RECIPIENTS Table of e-mail adresses 20040115
10 SENDER_EMAIL_ADDRESS Instance attribute Private Type reference (TYPE) AD_SMTPADR E-Mail Address 20040115
11 SUBJECT Instance attribute Private Type reference (TYPE) SO_OBJ_DES Subject of the mail 20040115
Methods
# Method Level Visibility Method type Description Created on
1 ADD_RECIPIENT Instance method Public Method Add a recipient of the mail 20040115
2 CONSTRUCTOR Instance method Public Constructor Create a new mail object 20040115
3 GET_SMTP_ADDR_FOR_SAP_USER Static method Private Method Look up the SMTP address for a given SAP user 20040115
4 SEND Instance method Public Method Send the mail 20040115
5 SET_MAIL_MESSAGE Instance method Public Method Set the body of the mail 20040115
6 SET_MAIL_SUBJECT Instance method Public Method Set the subject of the mail 20040115
7 SET_SENDER Instance method Public Method Set the sender of the mail 20040115
Events
Class CL_SRM_TOOLS_MAILSENDER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 S_RECIPIENT Public See coding 20040115 begin of s_recipient, smtp_addr type AD_SMTPADR, class(1) type c, " one of: T(o), C(c), B(cc) end of s_recipient
2 T_RECIPIENTS Public See coding 20040115 t_recipients type table of s_recipient
Method Signatures

Method ADD_RECIPIENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_RECIPIENT_CLASS Call by reference Type reference (TYPE) CHAR1 A, C oder B 20040119
2 Importing I_RECIPIENT_SAP_NAME Call by reference Type reference (TYPE) STRING SAP-Benutzername des Empfängers 20040115
# Exception Resumable Description Created on
1 CX_SRM_TOOLS_EXCEPT_MAIL_ERROR Allgemeine Ausnahme für Fehler in CL_SRM_TOOLS_MAILSENDER 20040119

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DO_COMMIT_ON_SEND Call by reference Type reference (TYPE) CHAR1 COMMIT WORK erzwingen, um Mail zu senden 20040119

Method CONSTRUCTOR on class CL_SRM_TOOLS_MAILSENDER has no exception.

Method GET_SMTP_ADDR_FOR_SAP_USER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_SMTP_EMAIL_ADDRESS Call by reference Type reference (TYPE) ADR6-SMTP_ADDR SMTP-Adresse 20040115
2 Importing I_SAP_USER_NAME Call by reference Type reference (TYPE) STRING Name des SAP-Benutzers 20040115
# Exception Resumable Description Created on
1 CX_SRM_TOOLS_EXCEPT_MAIL_ERROR Allgemeine Ausnahme für Fehler in CL_SRM_TOOLS_MAILSENDER 20040119

Method SEND Signature

Method SEND on class CL_SRM_TOOLS_MAILSENDER has no parameter.
# Exception Resumable Description Created on
1 CX_SRM_TOOLS_EXCEPT_MAIL_ERROR Allgemeine Ausnahme für Fehler in CL_SRM_TOOLS_MAILSENDER 20040119

Method SET_MAIL_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DOCUMENT_TYPE Call by reference Type reference (TYPE) SO_OBJ_TP Code für Dokumentenklasse 20040119
2 Importing I_TEXT Call by reference Type reference (TYPE) BCSY_TEXT Texttabelle 20040115

Method SET_MAIL_MESSAGE on class CL_SRM_TOOLS_MAILSENDER has no exception.

Method SET_MAIL_SUBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_TEXT Call by reference Type reference (TYPE) SO_OBJ_DES Text des Betreffs 20040115

Method SET_MAIL_SUBJECT on class CL_SRM_TOOLS_MAILSENDER has no exception.

Method SET_SENDER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_SENDER_SAP_NAME Call by reference Type reference (TYPE) STRING Name des SAP-Benutzers, der als Sender agiert 20040115
# Exception Resumable Description Created on
1 CX_SRM_TOOLS_EXCEPT_MAIL_ERROR Allgemeine Ausnahme für Fehler in CL_SRM_TOOLS_MAILSENDER 20040119
History
Last changed by/on SAP  20141101 
SAP Release Created in 352