SAP ABAP Class CL_EPM_ADS_MAIL_DISPATCHER (EPM: Utility to send PO Approval Request)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-NWD (Application Component) NetWeaver Demonstration
     S_EPM_ADS (Package) EPM: Document Server / Interactive Forms
Properties
Class CL_EPM_ADS_MAIL_DISPATCHER  
Short Description EPM: Utility to send PO Approval Request    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_EPM_ADS   EPM: Document Server / Interactive Forms 
Created 20110715   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 IF_EPM_ADDRESS_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
3 IF_EPM_BO Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
4 IF_EPM_BP_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
5 IF_EPM_ORG_EMPLOYEE Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
6 IF_EPM_PO_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
7 IF_EPM_PO_ITEM Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
8 IF_EPM_PO_SL Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
9 IF_EPM_PRODUCT_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_EPM_ADS_MAIL_DISPATCHER has no interface implemented.
Friends
Class CL_EPM_ADS_MAIL_DISPATCHER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_APPROVAL_FORM_NAME Constant Private Type reference (TYPE) TDSFNAME 'SEPM_ADS_APPROVER' Smart Forms: Form Name 20110715
Methods
# Method Level Visibility Method type Description Created on
1 CREATE_FORM_OUTPUT Static method Private Method Create form output for PDF 20110718
2 GET_EPM_SENDER_SMTP Static method Public Method Get the SMTP address of EPM_DEMO in this system/client 20110720
3 GET_PO_DATA Static method Private Method Get Purchase Order Data 20110718
4 SEND_APPROVAL_REQUEST Static method Public Method Send a PDF form with PO data by mail for approval 20110715
5 SEND_MAIL_WITH_PDF Static method Private Method Send mail with PDF attachment 20110718
6 TEST_APPROVER_FORM_OUTPUT Static method Public Method Mail Test Method 20110930
Events
Class CL_EPM_ADS_MAIL_DISPATCHER has no event.
Types
Class CL_EPM_ADS_MAIL_DISPATCHER has no local type.
Method Signatures

Method CREATE_FORM_OUTPUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_FORMOUTPUT Call by reference Type reference (TYPE) FPFORMOUTPUT Form Output (PDF, PDL) 20110718
2 Exporting EV_SUCCESS Call by reference Type reference (TYPE) ABAP_BOOL 20110718
3 Importing IS_ADDRESS_HEADER Call by reference Type reference (TYPE) IF_EPM_ADDRESS_HEADER=>TY_NODE_DATA EPM: Address Header Table 20111004
4 Importing IS_BP_HEADER Call by reference Type reference (TYPE) IF_EPM_BP_HEADER=>TY_NODE_DATA EPM: Business Partner Table 20111004
5 Importing IS_EMPLOYEE Call by reference Type reference (TYPE) IF_EPM_ORG_EMPLOYEE=>TY_NODE_DATA Employee node element data 20111004
6 Importing IS_PO_HEADER Call by reference Type reference (TYPE) IF_EPM_PO_HEADER=>TY_NODE_DATA EPM: Purchase Order Header Table 20110718
7 Importing IT_PO_ITEMS Call by reference Type reference (TYPE) IF_EPM_PO_ITEM=>TT_NODE_DATA Set of item node element data 20110718
8 Importing IT_PO_SL Call by reference Type reference (TYPE) IF_EPM_PO_SL=>TT_NODE_DATA Set of schedule line node element data 20110718
9 Importing IT_PRODUCT_HEADERS Call by reference Type reference (TYPE) IF_EPM_PRODUCT_HEADER=>TT_NODE_DATA Table of product headers 20111007

Method CREATE_FORM_OUTPUT on class CL_EPM_ADS_MAIL_DISPATCHER has no exception.

Method GET_EPM_SENDER_SMTP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_SENDER_SMTP_ADDRESS Value transfer Type reference (TYPE) ADR6-SMTP_ADDR E-Mail Address 20110720

Method GET_EPM_SENDER_SMTP on class CL_EPM_ADS_MAIL_DISPATCHER has no exception.

Method GET_PO_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_ADDRESS_HEADER Call by reference Type reference (TYPE) IF_EPM_ADDRESS_HEADER=>TY_NODE_DATA EPM: Address Header Table 20111004
2 Exporting ES_BP_HEADER Call by reference Type reference (TYPE) IF_EPM_BP_HEADER=>TY_NODE_DATA EPM: Business Partner Table 20111004
3 Exporting ES_EMPLOYEE Call by reference Type reference (TYPE) IF_EPM_ORG_EMPLOYEE=>TY_NODE_DATA Employee node element data 20111004
4 Exporting ES_PO_HEADER Call by reference Type reference (TYPE) IF_EPM_PO_HEADER=>TY_NODE_DATA Table of PO headers 20110718
5 Exporting ET_PO_ITEMS Call by reference Type reference (TYPE) IF_EPM_PO_ITEM=>TT_NODE_DATA Set of item node element data 20110718
6 Exporting ET_PO_SL Call by reference Type reference (TYPE) IF_EPM_PO_SL=>TT_NODE_DATA Set of schedule line node element data 20110718
7 Exporting ET_PRODUCT_HEADERS Call by reference Type reference (TYPE) IF_EPM_PRODUCT_HEADER=>TT_NODE_DATA Table of product headers 20111007
8 Exporting EV_SUCCESS Call by reference Type reference (TYPE) ABAP_BOOL 20110718
9 Importing IV_PO_NODE_KEY Call by reference Type reference (TYPE) IF_EPM_BO=>TY_NODE_KEY Generic Node element key 20110718
# Exception Resumable Description Created on
1 CX_EPM_EXCEPTION EPM: Base class for exceptions 20110718

Method SEND_APPROVAL_REQUEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COMMENT Call by reference Type reference (TYPE) STRING Comment 20110715
2 Importing IV_EMAIL_ADDRESS Call by reference Type reference (TYPE) SNWD_EMAIL_ADDRESS EPM: E-Mail Address 20110715
3 Importing IV_PO_NODE_KEY Call by reference Type reference (TYPE) IF_EPM_BO=>TY_NODE_KEY Generic Node element key 20110715

Method SEND_APPROVAL_REQUEST on class CL_EPM_ADS_MAIL_DISPATCHER has no exception.

Method SEND_MAIL_WITH_PDF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_SUCCESS Call by reference Type reference (TYPE) ABAP_BOOL 20110718
2 Importing IS_FORMOUTPUT Call by reference Type reference (TYPE) FPFORMOUTPUT Form Output (PDF, PDL) 20110718
3 Importing IV_COMMENT Call by reference Type reference (TYPE) STRING 20110718
4 Importing IV_EMAIL_ADDRESS Call by reference Type reference (TYPE) SNWD_EMAIL_ADDRESS EPM: E-Mail Address 20110718

Method SEND_MAIL_WITH_PDF on class CL_EPM_ADS_MAIL_DISPATCHER has no exception.

Method TEST_APPROVER_FORM_OUTPUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ADDRESS Call by reference Type reference (TYPE) SNWD_EMAIL_ADDRESS EPM: E-Mail Address 20130206

Method TEST_APPROVER_FORM_OUTPUT on class CL_EPM_ADS_MAIL_DISPATCHER has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 731