Escalation & sending external Mail (outlook)

Zavier, Johnson JZavier at Suncor.com
Wed May 25 18:28:52 EDT 2005


If you want to calculate say '3' working days after work item creation
date, you may use following functions as below. l_calid is factory
calendar id, l_createdate = workitem creation date. L_days = number of
days(eg 3) and l_result is the working date according to the factory
calendar.

To notify the creator about the approval, you may use 'notification' tab
in the approval task and use expression. However you need to have the
external e-mail address for the initiator populated before this task. I
normally add a e-mail step after the approval and send appropriate text
based on the result of the approval.

Hope it helps.

Regards
Johnson Zavier


FORM f_get_working_day  USING    l_calid                   
                                  l_CREATEDATE              
                                  l_days                    
                                  l_result.                 
  data: l_factdate like SCAL-FACDATE.                       
 CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'                
   EXPORTING                                                
     DATE                               = l_createdate      
     FACTORY_CALENDAR_ID                = l_calid           
  IMPORTING                                                 
    FACTORYDATE                        = l_factDate         
          .

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

 

l_factdate = l_factdate + l_days.

CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'

  EXPORTING

    FACTORYDATE                        = l_factdate

    FACTORY_CALENDAR_ID                = l_calid

 IMPORTING

   DATE                               = l_result

          .                                                       
IF SY-SUBRC <> 0.                                                 
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO               
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.               
ENDIF.                                                            
                                                                  
                                                                  
ENDFORM.                    " f_get_working_day                   



From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Gopinath Addepalli Prasad
Sent: May 24, 2005 10:38 PM
To: sap-wug at mit.edu
Subject: Escalation & sending external Mail (outlook)


Hi,
=20
   Could any one tell me how to find the day as a working day for giving
reminder to the=20
   approver to approve ?
=20
    Could any one tell me how to send the external mail (outlook) from
the task approved to request creator..?
=20
   Thier help is greatly appriciated.
=20
Regards,
Gopi.


------------------------------------------------------------------------
This e-mail contains confidential information.  If you are not the intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail.  Any unauthorized copying, disclosure or distribution of the e-mail or the information it contains, is strictly forbidden.




More information about the SAP-WUG mailing list