Trigger Events/Messages based on Org Chart changes
Rakesh Dube
rakesh_dube at pacific.net.sg
Tue Dec 19 10:32:54 EST 2000
Hi Tony,
U can use autoforwarding method with SAP connect
We are also sending mail to Lotus notes using same concept
Cheers
Rakesh
tony hick wrote:
> Hi Rakesh, Dave:
>
> Thanks for the input. We are looking into using this solution.
> One difference for us is that we are trying to send the email not to SAP
> Inbox but to Outlook.
>
> Thanks,
> Tony.
>
> >From: Rakesh Dube <rakesh_dube at pacific.net.sg>
> >Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
> >To: SAP-WUG at MITVMA.MIT.EDU
> >Subject: Re: Trigger Events/Messages based on Org Chart changes
> >Date: Tue, 19 Dec 2000 17:11:41 +0800
> >
> >
> >Refer Attached file Dynamic action setting
> >Path :Personnel Management --->Personnel Administration---->Customize
> >Procedures---->Dynamic Action
> >
> >
> >
> >Following setting will call Subroutine GET_EMAIL_TRANSFER from program
> >ZHRONINM002 subroutine pool
> >
> >GET_EMAIL_TRANSFER will check if there is change in department and then
> >trigger email to appropriate person, there should be condition to check the
> >department change because Dynamic action setting will fire even there is
> >change
> >
> >in pay or other Org assignment change ie change in infotype 0001.
> >( Even we can customize particular field like department if there will be
> >change in field then it will fire the dynamic action, we haven't use that
> >functionality because of some constraint )
> >
> >
> >I am enclosing source code of function module and Email triggering
> >Subroutine
> >Code might be quite confusing , as we trying to cater lot of exception
> >case for
> >
> >my client
> >
> > following are steps
> >1. Find out the change in department by comparing action org unit refer
> >function module ZHR_GET_DEPT_DIV_RD.
> >2. If there will change in department run the subroutine for email. Refer
> >subroutine FORMAT_EMAIL USING P_PERNR
> >3. PERNR and BEGDA u will directly get from table PA0001 or PA0000 as
> >dynamic
> >action will forward this value in to GET_EMAIL_TRANSFER subroutine
> >4. Call function module CATS_SEND_MAIL
> >AENAME is user name to whom u want send , u can loop this and send to more
> >than
> >
> >one recipient
> >HEADER is subject
> >OBJCONT is Content of mail.
> >
> >My program is quite complex ,u can make easy program with above mentioned
> >logic.
> >
> >Let me know if u get stuck .
> >
> >Thanks
> >Rakesh
> >Encl: Dynmic action file , Function module and Subroutine pool ABAP code.
> >
> >
> >
> >
> >
> >David Weston wrote:
> >
> > > Thanks Rakesh
> > >
> > > That would be great and really appreciated
> > >
> > > Cheers
> > > Dave
> > >
> > > ----- Original Message -----
> > > From: "Rakesh Dube" <rakesh_dube at pacific.net.sg>
> > > To: <SAP-WUG at MITVMA.MIT.EDU>
> > > Sent: Friday, December 15, 2000 8:47 PM
> > > Subject: Re: Trigger Events/Messages based on Org Chart changes
> > >
> > > > Hi Dave,
> > > > I am not using Standard Function module
> > > > I will love to send function module and Dynmic Action config .
> > > > Now I am on weekend , after reaching office will send u screen dump
> >of
> > > Dynmic
> > > > Action customization
> > > > and Function module code.
> > > >
> > > > Let me know email id ,who ever is intersted in this .
> > > >
> > > > Thanks
> > > > Rakesh
> > > >
> > > >
> > > > David Weston wrote:
> > > >
> > > > > Hi Rakesh
> > > > >
> > > > > This is a coincidence but this requirement just came up on my
> > > > > current project where they want to be notified on position changes.
> > > > >
> > > > > Just looked at the Dynamic Actions config in HR via SPRO and was
> > > wondering
> > > > > which options you used ie was it an M for mail entry ? Also would
> >you be
> > > > > willing
> > > > > to share the function module info i.e. was it a standard SAP FM or
> >was
> > > it
> > > > > a customer developed function module ?
> > > > >
> > > > > Any help would be great.
> > > > >
> > > > > Cheers
> > > > > Dave
> > > > >
> > > > > -----Original Message-----
> > > > > From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
> > > > > Rakesh Dube
> > > > > Sent: Thursday, December 14, 2000 10:59 PM
> > > > > To: SAP-WUG at MITVMA.MIT.EDU
> > > > > Subject: Re: Trigger Events/Messages based on Org Chart changes
> > > > >
> > > > > Hi Tony,
> > > > > We did same scenario in one of the project but here we used Dynmic
> > > action
> > > > > rather then
> > > > > Workflow.
> > > > > In Dynmic action customization we trigger the function module
> > > > > FUnction module will send mail to the appropriate person.
> > > > > This is one of the way to trigger mail ,
> > > > >
> > > > > Org chart hierarchy is saved in table HRP1001.
> > > > > If u need more detail in this let me know
> > > > > Thanks
> > > > > Rakesh
> > > > >
> > > > > tony hick wrote:
> > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > We maintain our employee resources in the Org Chart (PPOME). The
> > > resources
> > > > > > (employees) are assigned to different projects (which are
> >represented
> > > as
> > > > > > Positions in the Org Chart), by moving them from one position to
> > > another,
> > > > > > using drag and drop.
> > > > > >
> > > > > > We would like to trigger an email to the responsible persons of
> >the
> > > new
> > > > > > Position, the old Position, and to the Person who has been
> >assigned,
> > > > > > informing this change as a text message, when the change is saved.
> > > > > >
> > > > > > Any ideas on how this can be triggered? Are there any events
> > > associated
> > > > > > with saving the Org Chart (PPOME) that I can use? What tables are
> >the
> > > Org
> > > > > > chart hierarchy saved in?
> > > > > >
> > > > > > Thanks,
> > > > > > Tony
> > > > > >
> > > > >
> > >
> >____________________________________________________________________________
> > > > > _________
> > > > > > Get more from the Web. FREE MSN Explorer download :
> > > > > http://explorer.msn.com
> > > >
> ><< Dynamicactionsetting.zip >>
> ><< rakesh_dube.vcf >>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rakesh_dube.vcf
Type: text/x-vcard
Size: 0 bytes
Desc: Card for Rakesh Dube
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20001219/fba8dc62/attachment.vcf
More information about the SAP-WUG
mailing list