SAP ABAP Class CL_SWF_MAIL_MANAGER (Workflow: Generate/Manage Mails for Work Items)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-BMT-WFM (Application Component) SAP Business Workflow
     SWF_MAIL (Package) Workflow: Connection to Mail System
Properties
Class CL_SWF_MAIL_MANAGER  
Short Description Workflow: Generate/Manage Mails for Work Items    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status P  SAP Standard Production Program 
Category 0   
Package SWF_MAIL   Workflow: Connection to Mail System 
Created 20020603   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CL_SWF_MAIL_SUBSTITUTION Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
2 CL_SWF_UTL_REPORT_SINGLETON Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 SWFCO Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SWF_MAIL_MANAGER has no interface implemented.
Friends
Class CL_SWF_MAIL_MANAGER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_MAIL_SYSTEM Constant Private Type reference (TYPE) SEOCLSNAME 'CL_SWF_MAIL_SAPOFFICE' Default Class for Mail System 20020612
2 M_ATTACHMENT_TYPES Instance attribute Private Type reference (TYPE) SWFTMAILTP Workflow: Classification of Mail Type 20020605
3 M_FAILURE_TAB Instance attribute Private Type reference (TYPE) SWF_IFSTAB Workflow: Table with Exceptions 20020617
4 M_JOB_SUFFIX Instance attribute Private Type reference (TYPE) SWU_NUMBER Current Number for JOB Suffix 20020603
5 M_MAILSYSTEM_PROXY_CLASSNAME Instance attribute Private Type reference (TYPE) SEOCLSNAME Object Type Name 20020612
6 M_MAIL_OBJECTS Instance attribute Private Type reference (TYPE) SWFTMAILS Workflow: Table with Mail Objects 20020603
7 M_MAIL_SYSTEM Instance attribute Private Object reference (TYPE REF TO) IF_SWF_MAIL_SYSTEM_PROXY Workflow: Interface for Mail System 20020603
8 M_ONE4ALL_TEXT Instance attribute Private Type reference (TYPE) DOKU_OBJ Text for One4All Mail 20020612
9 M_ONE4WI_TEXT Instance attribute Private Type reference (TYPE) DOKU_OBJ Text for One4Wi mail, if no text maintained 20020612
10 M_SEND_GRANULARITY Instance attribute Private Type reference (TYPE) SWF_SNDGRA Workflow: Send Granularity 20020603
11 M_SUCCESS_TAB Instance attribute Private Type reference (TYPE) SWF_IFSTAB Workflow: Table with Exceptions 20020612
12 M_TASK_FILTER Instance attribute Private Object reference (TYPE REF TO) CL_SWF_MAIL_TASK_FILTER Workflow: Task Filter Criteria for Mail Dispatch 20020603
13 M_WIID_TO_ALL Instance attribute Private Type reference (TYPE) SWDTWIID Work Items with Gen. Task and Without Selected Agents 20020603
14 M_WIID_TO_RECEIVER Instance attribute Private Type reference (TYPE) SWFTWIRCV Workflow: Table of Relations WI/Recipient 20020603
15 M_WLSCAN Instance attribute Private Type reference (TYPE) SWU_WLSCAN Date and time of last work list scan for R3F transmission 20020618
16 M_WORKITEM_SELECTOR Instance attribute Private Object reference (TYPE REF TO) CL_SWF_MAIL_WORKITEMS Workflow: Work Item for Mail Dispatch 20020603
Methods
# Method Level Visibility Method type Description Created on
1 ADD_ATTACHMENT_TYPE Instance method Public Method Sets type of attachment 20020605
2 ADD_SUBSTITITIONS Instance method Private Method Adds substitute to determined recipients 20020612
3 ADD_SUCCESS_MESSAGE Instance method Private Method Generates success messages 20020612
4 BUILD_MAIL_RECEIVERS Instance method Private Method 2nd processing step: Determines recipient of mail 20020603
5 CONSTRUCTOR Instance method Public Constructor Constructor 20020603
6 CREATE_MAIL_OBJECTS Instance method Private Method 3rd processing step: Generates all mails 20020603
7 CREATE_MAIL_OBJECTS_ONE4ALL Instance method Private Method Generates mail objects: One mail for all WI of a user 20020603
8 CREATE_MAIL_OBJECTS_ONE4WI Instance method Private Method Generates mail objects: One mail for one WI of a user 20020610
9 CREATE_WIID_TO_RECEIVER_RELAT Instance method Private Method Generates relation work item->mail recipient 20020603
10 CREATE_WI_MAIL_RELATION Instance method Private Method 5. Generates work item->mail relations 20020610
11 DELETE_MAIL_AND_RELATION Instance method Private Method Deletes Mail Object and Relation 20020611
12 DELETE_MAIL_OBJECTS Instance method Private Method 6. Deletes mail objects from message store 20020611
13 DEQUEUE_JOB Instance method Private Method 8th processing step: Dequeue Job 20020618
14 DUMP_JOB_DATA Instance method Private Method 7th processing step: Dump Data of Current Job 20020611
15 ENQUEUE_JOB Instance method Private Method 0. Processing Step: Enqueue Job 20020618
16 FORMAT_EXEC_TIME Static method Private Method Formats execution time 20020613
17 GET_ENQUEUE_KEY Instance method Private Method Determines enqueue key 20020618
18 GET_FAILURE_MESSAGES Instance method Public Method Gets all error messages 20020617
19 GET_LAST_RUN_PROPERTIES Instance method Private Method Determines properties of last run 20020603
20 GET_MAIL_SYSTEM Instance method Private Method Determines handle for access to mail system 20020603
21 GET_MESSAGES_FROM_EXCEPTION Instance method Private Method Determines messages of an exception 20020617
22 GET_SELECTION_TIMESTAMP Instance method Private Method Determines time stamp of last selection 20020610
23 GET_SEND_GRANULARITY Instance method Private Method Determines send granularity 20020603
24 GET_SUCCESS_MESSAGES Instance method Public Method Gets all success messages 20020612
25 PROCESS Instance method Public Method Generate Mails 20020603
26 SELECT_WORKITEMS Instance method Private Method 1st processing step: Select work items 20020603
27 SEND_MAIL_OBJECTS Instance method Private Method 4th processing step: Send mails 20020603
28 SET_JOB_SUFFIX Instance method Public Method Sets job suffix 20020603
29 SET_LOG_LEVEL Instance method Public Method Sets Log Level 20020603
30 SET_MAIL_PROXY_PROPERTIES Instance method Private Method Sets properties of mail proxy 20020603
31 SET_ONE4ALL_TEXT Instance method Public Method Sets standard text for mail 20020612
32 SET_ONE4WI_TEXT Instance method Public Method Sets standard text for ONE4WI mail 20020612
33 SET_PROXYCLASS_FOR_MAILSYSTEM Instance method Public Method Sets proxy class for mail system 20020603
34 SET_SEND_GRANULARITY Instance method Public Method Sets send granularity ((0=Mail per WI, 1=Mail for all) 20020603
35 SET_TASK_FILTER Instance method Public Method Sets task filter for selection 20020603
Events
Class CL_SWF_MAIL_MANAGER has no event.
Types
Class CL_SWF_MAIL_MANAGER has no local type.
Method Signatures

Method ADD_ATTACHMENT_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_ATTACHMENT_TYPE Call by reference Type reference (TYPE) SWF_MAILTP Typ des Attachments 20020605

Method ADD_ATTACHMENT_TYPE on class CL_SWF_MAIL_MANAGER has no exception.

Method ADD_SUBSTITITIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_EXCL_WIRCV Call by reference Type reference (TYPE) SWFTWIRCV Bereits ausgeschlossen Workitem/User-Relationen 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Ausnahme im WIM 20020618

Method ADD_SUCCESS_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_MESSAGE Call by reference Type reference (TYPE) SWF_T100MS Struktur für T100 Meldung 20020612

Method ADD_SUCCESS_MESSAGE on class CL_SWF_MAIL_MANAGER has no exception.

Method BUILD_MAIL_RECEIVERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_SWF_MAIL_MANAGER has no parameter.
Method CONSTRUCTOR on class CL_SWF_MAIL_MANAGER has no exception.

Method CREATE_MAIL_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method CREATE_MAIL_OBJECTS_ONE4ALL Signature

Method CREATE_MAIL_OBJECTS_ONE4ALL on class CL_SWF_MAIL_MANAGER has no parameter.
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method CREATE_MAIL_OBJECTS_ONE4WI Signature

Method CREATE_MAIL_OBJECTS_ONE4WI on class CL_SWF_MAIL_MANAGER has no parameter.
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method CREATE_WIID_TO_RECEIVER_RELAT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_WIID Call by reference Type reference (TYPE) SWW_WIID Workitem-Kennung 20020603
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618

Method CREATE_WI_MAIL_RELATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method DELETE_MAIL_AND_RELATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_GUID Call by reference Type reference (TYPE) GUID_32 Guid der Relation 20020611
2 Importing IM_MAIL_KEY Call by reference Type reference (TYPE) STRING Schlüssel des externen Mailobjektes 20020611
3 Importing IM_MAIL_SYSTEM Call by reference Object reference (TYPE REF TO) IF_SWF_MAIL_SYSTEM_PROXY Workflow: Interface für ein angeschlossenes Mailsystem 20020611

Method DELETE_MAIL_AND_RELATION on class CL_SWF_MAIL_MANAGER has no exception.

Method DELETE_MAIL_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method DEQUEUE_JOB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020618
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method DUMP_JOB_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method ENQUEUE_JOB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020618
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020618
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method FORMAT_EXEC_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_EXEC_TIME Call by reference Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020613
2 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) STRING Executiontime in 0.000 ms - Format 20020613

Method FORMAT_EXEC_TIME on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_ENQUEUE_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_ENQUEUE_KEY Value transfer Type reference (TYPE) CHAR40 Enqueue-Schlüssel 20020618

Method GET_ENQUEUE_KEY on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_FAILURE_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_FAILURE_MESSAGES Value transfer Type reference (TYPE) SWFT100TAB Tabelle mit der SWF-T100 - Nachrichtenstruktur 20020617

Method GET_FAILURE_MESSAGES on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_LAST_RUN_PROPERTIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_DATE Call by reference Type reference (TYPE) SYDATUM Datum des letzten Durchlaufs 20020603
2 Exporting EX_TIME Call by reference Type reference (TYPE) SYUZEIT Uhrzeit des letzten Durchlaufs 20020603
3 Exporting EX_TIMESTAMP Call by reference Type reference (TYPE) SWU_LASTTS Workflow: Letzter Lauf des Jobs 20020619

Method GET_LAST_RUN_PROPERTIES on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_MAIL_SYSTEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_MAIL_SYSTEM Value transfer Object reference (TYPE REF TO) IF_SWF_MAIL_SYSTEM_PROXY Workflow: Interface für Mailsystem 20020603
# Exception Resumable Description Created on
1 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020618

Method GET_MESSAGES_FROM_EXCEPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_EXCP Call by reference Object reference (TYPE REF TO) CX_SWF_IFS_EXCEPTION Workflow Ausnahme 20020617
2 Returning RE_MESSAGES Value transfer Type reference (TYPE) SWFT100TAB Tabelle mit der SWF-T100 - Nachrichtenstruktur 20020617

Method GET_MESSAGES_FROM_EXCEPTION on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_SELECTION_TIMESTAMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_TIMESTAMP Value transfer Type reference (TYPE) SWFRCRETS Workflow: Erzeugungs-timestamp 20020610

Method GET_SELECTION_TIMESTAMP on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_SEND_GRANULARITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_SEND_GRANULARITY Value transfer Type reference (TYPE) SWF_SNDGRA Workflow: Sendegranularität 20020603

Method GET_SEND_GRANULARITY on class CL_SWF_MAIL_MANAGER has no exception.

Method GET_SUCCESS_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_SUCCESS_MESSAGES Value transfer Type reference (TYPE) SWFT100TAB Tabelle mit der SWF-T100 - Nachrichtenstruktur 20020612

Method GET_SUCCESS_MESSAGES on class CL_SWF_MAIL_MANAGER has no exception.

Method PROCESS Signature

Method PROCESS on class CL_SWF_MAIL_MANAGER has no parameter.
# Exception Resumable Description Created on
1 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020617

Method SELECT_WORKITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020617
2 CX_SWF_MAIL_RUNTIME Workflow: Runtime-Error 20020617

Method SEND_MAIL_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_EXEC_TIME Value transfer Type reference (TYPE) SWF_EXETIM Workflow: Laufzeit in Mikrosekunden (ms) 20020612
# Exception Resumable Description Created on
1 CX_SWF_MAIL_MANAGER Workflow: Probleme innerhalb des Mail-Managers 20020617

Method SET_JOB_SUFFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_JOB_SUFFIX Call by reference Type reference (TYPE) SWU_NUMBER Laufende Nummer für JOB-Suffix 20020603

Method SET_JOB_SUFFIX on class CL_SWF_MAIL_MANAGER has no exception.

Method SET_LOG_LEVEL Signature

Method SET_LOG_LEVEL on class CL_SWF_MAIL_MANAGER has no parameter.
Method SET_LOG_LEVEL on class CL_SWF_MAIL_MANAGER has no exception.

Method SET_MAIL_PROXY_PROPERTIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_MAIL_HANDLE Call by reference Object reference (TYPE REF TO) CL_SWF_MAIL_OBJECT_INTERNAL Workflow: Mailobjekt für Workflow/Mailanbindung 20020603
2 Importing IM_MAIL_PROXY Call by reference Object reference (TYPE REF TO) IF_SWF_MAIL_OBJECT_PROXY Workflow: Mailobjekt in einem angeschlossenen Mailsystems 20020603
3 Importing IM_MAIL_SYSTEM Call by reference Object reference (TYPE REF TO) IF_SWF_MAIL_SYSTEM_PROXY Workflow: Interface für ein angeschlossenes Mailsystem 20020605
# Exception Resumable Description Created on
1 CX_SWF_MAIL_OBJECT Workflow: Probleme beim Bearbeiten eines Mailobjekt 20020617

Method SET_ONE4ALL_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_DOKU_OBJ Call by reference Type reference (TYPE) DOKU_OBJ Text für ONE4ALL-Mail 20020612

Method SET_ONE4ALL_TEXT on class CL_SWF_MAIL_MANAGER has no exception.

Method SET_ONE4WI_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_DOKU_OBJ Call by reference Type reference (TYPE) DOKU_OBJ Text, wenn kein Beschreibung gepflegt 20020612

Method SET_ONE4WI_TEXT on class CL_SWF_MAIL_MANAGER has no exception.

Method SET_PROXYCLASS_FOR_MAILSYSTEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_CLASSNAME Call by reference Type reference (TYPE) SEOCLSNAME Objekttypname 20020603

Method SET_PROXYCLASS_FOR_MAILSYSTEM on class CL_SWF_MAIL_MANAGER has no exception.

Method SET_SEND_GRANULARITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_SEND_GRANULARITY Call by reference Type reference (TYPE) SWF_SNDGRA Workflow: Sendegranularität 20020603

Method SET_SEND_GRANULARITY on class CL_SWF_MAIL_MANAGER has no exception.

Method SET_TASK_FILTER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_TASK_FILTER Call by reference Object reference (TYPE REF TO) CL_SWF_MAIL_TASK_FILTER Workflow: Aufgabenfilterkriterien für Mailversand 20020603

Method SET_TASK_FILTER on class CL_SWF_MAIL_MANAGER has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 630