SMTP email

Sue Doughty Sue.Doughty at odfl.com
Wed Oct 7 09:42:48 EDT 2009


I created a method in the Business Object that reads the Employee number
and then reads the PA0105 table to get the email address:

BEGIN_METHOD GETEMPLOYEEEMAIL CHANGING CONTAINER.           
                                                            
DATA:  EmployeeUserID like WFSYST-ACT_AGENT,                
       EmployeeNumber like PA0105-PERNR,                    
       EmployeeEmail like PA0105-USRID_LONG.                
                                                            
SWC_GET_ELEMENT CONTAINER 'EmployeeUserID' EMPLOYEEUSERID.  
                                                            
EmployeeNumber = EmployeeUserID+4(6).                       
                                                            
CLEAR PA0105.                                               
SELECT * FROM PA0105 where pernr eq EmployeeNumber          
                      and  usrty eq '0010'                  
                      and  begda le sy-datum                
                      and  endda ge sy-datum.               
  move pa0105-usrid_long to EmployeeEmail.                  
  exit.                                                     
endselect.                                                  
SWC_SET_ELEMENT CONTAINER 'EmployeeEmail' EMPLOYEEEMAIL.    
                                                            
END_METHOD.                                                 

Regards,
Sue T. Doughty
SAP Workflow Specialist
Old Dominion Freight Line, Inc.
500 Old Dominion Way
Thomasville, NC 27360
Phone:  (336) 822-5189
Toll Free (800 ) 432-6335, ext. 5189
Email:  sue.doughty at odfl.com
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of John Howarth
Sent: Wednesday, October 07, 2009 8:15 AM
To: sap-wug at mit.edu
Subject: SMTP email



Hi

Does anyone know of a standard Function Module that I can call in a new
custom BO method that would provide the SMTP email address, held in the
user master, when provided with a SAP user name?

Thanks

John


***************************************

The information contained within this e-mail and any files attached to
this e-mail is private and in addition may include commercially
sensitive information. The contents of this e-mail are for the intended
recipient only and therefore if you wish to disclose the information
contained within this e-mail or attached files, please contact the
sender prior to any such disclosure. 
If you are not the intended recipient, any disclosure, copying or
distribution is prohibited. Please also contact the sender and inform
them of the error and delete the e-mail, including any attached files
from your system. 
EADS Defence and Security Systems Limited 
Registered Office : Quadrant House, Celtic Springs, Coedkernew, Newport
, NP10 8FZ 
Company No: 04191036 
http://www.eadsdsuk.com
The information contained within this e-mail and any files attached to
this e-mail is private and in addition may include commercially
sensitive information. The contents of this e-mail are for the intended
recipient only and therefore if you wish to disclose the information
contained within this e-mail or attached files, please contact the
sender prior to any such disclosure. 
If you are not the intended recipient, any disclosure, copying or
distribution is prohibited. Please also contact the sender and inform
them of the error and delete the e-mail, including any attached files
from your system. 
EADS Defence and Security Systems Limited 
Registered Office : Quadrant House, Celtic Springs, Coedkernew, Newport
, NP10 8FZ 
Company No: 04191036 
http://www.eadsdsuk.com

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list