When ever employee position changed, an alert should send an email

we have one requirement...
when ever any employee position changed, it should send an email ..how to do this one? any idea?
employee positions are recorded in PER_ALL_ASSIGNMENTS_F table, so if we create event alert on this table ( update ). event alert fires if there is any update to the table...but i want, only alert should send mail, when position column got updated in that table...
is it possible????

Oracle provides standard API’s to harness the databases SMTP server capabilities in sending emails. All email services are wrapped under package: UTL_SMTP. The protocol consists of a set of commands for an email client to dispatch emails to a SMTP server. The UTL_SMTP package provides interfaces to the SMTP commands. For many of the commands, the package provides both a procedural and a functional interface. The functional form returns the reply from the server for processing by the client. The procedural form checks the reply and will raise an exception if the reply indicates a transient (400-range reply code) or permanent error (500-range reply code). Otherwise, it discards the reply.
c := UTL_SMTP.OPEN_CONNECTION('<server>.unix.us.ups.com');
UTL_SMTP.HELO(c, '<server>.unix.us.ups.com');
UTL_SMTP.MAIL(c, l_recepient);
UTL_SMTP.RCPT(c, l_recepient);
UTL_SMTP.OPEN_DATA(c);
send_header('From', p_from);
send_header('To', l_recepient);
send_header('Subject', p_subject);
UTL_SMTP.WRITE_DATA(c, UTL_TCP.CRLF || p_message);
UTL_SMTP.CLOSE_DATA(c);
UTL_SMTP.QUIT(c);

Similar Messages

  • In ALV  I need to color the records when ever material number changes

    Hi ,
    I need to color the records in alv when ever the material changes.
    for ex : I have 10 records .
    1 to 3 records same material number so yellow color
    4 to 8 records same material numberso blue color
    9 to 10 recrods same material number  so yellow color.
    Please do the favour..
    thank you.
    karthik.

    Hi,
    Have one more column in the final table as
             ROWCOLOR(4),              "reqd only if row is color
    Do the coding like this.
    Keep canging the Row number to get different colors. Like C410 etc.
      LOOP AT T_FINAL.
        IF T_FINAL-NUMBER = 'XXX'. " <b>Do your comparison operation here</b>.
          T_FINAL-ROWCOLOR = 'C510'.
          MODIFY T_FINAL TRANSPORTING ROWCOLOR.
        ENDIF.
      ENDLOOP.
    Also modify the layout giving the field as
    DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
      W_LAYOUT-INFO_FIELDNAME = 'ROWCOLOR'.
    Hope this helps you.
    Regards,
    Subbu.

  • Errors appeared in alert log file should send an email

    Hi,
    I have one requirement to do, as i am new dba, i dont know how to do this,
    sendmail is configured on my unix machine, but dont know how to send the errors appeared in alert logfile should send an email to administrator.
    daily, it has to check the errors in alert log file, if any errors occurs(ORA- errors or WARNING errors) should send an email to administrator.
    please help me how to do it

    Hi,
    There are many methods for interrogating the alert log and sending e-mail. Here are my notes:
    http://www.dba-oracle.com/t_alert_log_monitoring_errors.htm
    - PL/SQL or Java with e-mail alert: http://www.dba-village.com/village/dvp_papers.PaperDetails?PaperIdA=2383
    - Shell script - Database independent and on same level as alert log file and e-mail.
    - OEM - Too inflexible for complex alert log analysis rules
    - SQL against the alert log - You can define the alert log file as an external table and detect messages with SQL and then e-mail.
    Because the alert log is a server side flat file and because e-mail is also at the OS-level, I like to use a server side scell script. It's also far more robust then OEM, especially when combining and evaluating multiple alert log events. Jon Emmons has great notes on this:
    http://www.lifeaftercoffee.com/2007/12/04/when-to-use-shell-scripts/
    If you are on Windows, see here:
    http://www.dba-oracle.com/t_windows_alert_log_script.htm
    For UNIX, Linux, Jon Emmons has a great alert log e-mail script.
    Hope this helps . . . .
    Donald K. Burleson
    Oracle Press author

  • HT5621 When i try to change my apple id and primary email address. The page just flickers and wont change or send me an email to confirm

    When i try to change my apple id and primary email address. The page just flickers and wont change or send me an email to confirm

    I am in the same boat as all of you and have done lots of digging on this issue around the Apple Support Communities.  Over the past three days, I have spent 2 hours on the phone with Apple trying to get creative about how to get around this issue (delete all my accounts and start over, etc.).  Unfortunately, the bottom line message Apple gave me was this, "The ONLY way to use your @me as your primary email address is if you set it up that way at the very beginning.  If you use a different email as your first primary address, you can never switch to your @me account unless you go and create a NEW @me account and start from scratch that way."  So disappointed.

  • HT1711 i wanted to buy music from itune, but when i log in, it said i should answer my email test question, and i have already forgoting it. please what can i do?

    i wanted to buy music from itune, but when i log in, it said i should answer my email test question, and i have already forgoting it. please what can i do?

    If you've forgotten the answers to your security questions and you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57

  • User is getting email delivery failure when processing via SAP as it tries to send an email to a user who have left the company

    Hi Experts,
    I need to remove a name on a group list in Outlook as the user is getting email delivery failure when processing via SAP (He sends the invoice for approval and emails get sent to different users for approval.) One of those users has left the company and so the user gets a email delivery failure error.
    How do I remove this user who is no longer with the company?
    The user is saying: When I approve an invoice in SAP it sends an email notification through outlook. One of those users is no longer with the company so it cannot deliver the notification, and in return send a delivery failure (in outlook). I am approving the invoices from my SAP Workplace inbox.
    How do we know what group the email is going to?
    Please let me know if you have seen this issue before. Greatly appreciate your help.
    Thanks,
    Asad

    Hi,
    Please check whether you are using a custom z program for sending emails of approved invoices to users. If yes then either the user email ids are hardcoded in the program else a ztable is maintained for them.

  • When new pix is taken and want to send via email it is received upside down, why?

    has anyone have this problem, when you take a picture and want to send via email the picture is received upside down? does anyone know how to fix this?

    Better yet, check out the two day gathering of professional photographers who are passionate enough about the iPhone 4S to put together a seminar on iPhoneography.
    http://www.creativelive.com/courses/iphoneography-jack-hollingsworth
    All the Links!
    KateHaileyJanuary 3, 2012 - 1:55pm 
    Hi everyone,
    I just wanted to take a moment to share numerous links that may be referenced over the 2-Day iPhoneography workshop with Jack Hollingsworth.
    Please feel free to add to it as you think of other things that might be of great reference to all the iPhoneographer's out there!
    Apps:
    Adobe Photoshop Express: http://itunes.apple.com/us/app/adobe-photoshop-express/id331975235?mt=8
    Best Camera: http://itunes.apple.com/us/app/best-camera/id329800600?mt=8
    Camera+: http://itunes.apple.com/us/app//id329670577?mt=8
    Filterstorm: http://itunes.apple.com/us/app/filterstorm/id363449020?mt=8
    Instagram: http://itunes.apple.com/us/app/instagram/id389801252?mt=8
    Luminance: http://itunes.apple.com/us/app/luminance/id443465287?mt=8
    Minimal Folio (iPhone): http://itunes.apple.com/us/app/minimal-folio-for-iphone-design/id4124111...
    Minimal Folio (iPad): http://itunes.apple.com/us/app/minimal-folio-design-photo/id385429744?mt=8
    Photoforge2: http://itunes.apple.com/us/app/photoforge2/id435789422?mt=8
    Picfx: http://itunes.apple.com/us/app/picfx/id417563413?mt=8
    Pocket Portfolio: http://itunes.apple.com/us/app/pocket-portfolio/id419455189?mt=8
    Snapseed: http://itunes.apple.com/us/app/snapseed/id439438619?mt=8
    Accessories:
    Diff (case): http://www.diffcase.com/DiffCase.html
    Glif (tripod access): http://www.studioneat.com/products/glif-for-iphone-4
    Gymbl (iPhone Tripod): http://www.youbiq.com/
    iPik (case): http://www.ipikcase.com/
    iPro Lens: http://iprolens.com/
    the joy factory (Rain Ballet): http://www.thejoyfactory.com/rainballet-iphone-4-waterproof-case-with-in...
    kogeto (dot lens): http://kogeto.com/dot.php
    mCam: http://www.almlive.com/store/
    Modahaus (Steady Stand): http://www.modahaus.com/store/steady-stand-200/
    Mophie Juice Pack Plus (iPhone4/4s): http://www.mophie.com/mophie-juice-pack-plus-iPhone-4-battery-case-p/116...
    Mosy Mount (tripod): http://www.mosymount.com/
    olloclip (tripod access): http://www.olloclip.com/
    Photojojo: http://photojojo.com/store/
    pixeet (app/lens): http://www.pixeet.com/
    snapmount: http://snapmountforiphone.com/
    sites, blogs and reference material:
    1197.is: http://1197.is/
    the App Tutor: http://theapptutor.com/
    Chase Jarvis: The Best Camera – Book: http://www.amazon.com/Best-Camera-One-Thats-You/dp/0321684788/ref=sr_1_1...
    EyeEm: http://www.eyeem.com
    eyephoneography: http://eyephoneography.com/
    FiLMiC Pro: http://www.filmicpro.com/
    Flickr – iPhoneography: http://www.flickr.com/groups/iPhonephotography
    Instagram: http://instagr.am
    Instatips: http://instatips.tumblr.com
    iPhoneArt: http://iphoneart.com
    iPhone Camera Essentials: http://iphonecameraessentials.com/
    iPhone Obsessed (Book/App): http://marcolinaslate.com/iphoneobsessed/
    iPhoneogenic: http://iPhoneogenic.tumblr.com
    iPhoneography (Glyn Evans): http://iphoneography.com
    iPhoneorgaphyCentral: http://iphoneographycentral.com/
    iShowcase Vol.1 (App): http://itunes.apple.com/us/app/ishowcase-vol.01/id409042603?mt=8
    iShowcase Vol.2 (App): http://itunes.apple.com/us/app/ishowcase-vol.02-w/id455932142?mt=8
    Just What I See: http://www.justwhatisee.com/
    Life in LoFi (Marty Yawnick): http://lifeinlofi.com
    LoFi MODE: http://lofimode.com/
    MobiTog: http://mobitog.com
    Mobile Photo Group: http://www.mobilephotogroup.com
    Mobile photography awards: http://www.mobilephotoawards.com
    p1xels: http://pixelsatanexhibition.com
    Tiny Tutorials:http://www.danburkholder.com/Pages/main_pages/tutorials_main_page.htm
    What I See Now: http://www.whatiseenow.com
    Your Camera Loves You (eBook): http://www.peachpit.com/store/product.aspx?isbn=0132776308

  • When ever create new version specified User should get intimation Mail

    Hi,
    My requirement is when ever user create new DIR version, system should send some intimation Mail to specified user.
    If it's not possible in standard system, Pls let me know it is possible through development or not.
    Thanks & Regards,
    Sunny

    Does the specific user, u want to send the mail, keeps changing?
    At the time of creation of a DIR if reqd value is maintained in User Responsible then he'll get the mail in his SAP Inbox stating "The Document for which u r responsible has been created/modified".
    For this certain linkages in workflow needs to be activated.
    If you want to send the mail in specific format with some more details, then u may use messages functionality of DMS in which mails are sent based on Document Type & Status combination.
    Another option is using workflow. For this u need to define a simple workflow task which can be triggered based on status. you need to maintain this task in Status settings.
    Points Appreciated.

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • HT5621 My ipad recognizes and old email address for icloud.  When I go to change the address it sends me an email verification email that says click the link THAT DOES NOT EXIST IN THE EMAIL!!   How do I get this changed?

    I cannot get my icloud email address changed, but I no longer have that email address.  So it is sending an email to an address that no longer exists, yet I cannot get it to change to my current email address.  WHen I walk through the process, it sends me an "verificaiton email" that DOES NOT have the link in it to verify.  UGH

    Welcome to the Apple community TMOZINGO.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • TS3276 When I add a name to the "To" box or CC/BCC box and then change my mind about sending an email to them, Mail is ignoring the instruction to "remove" so that once the email has been sent, their name is still included and the email goes to them anywa

    Can anyone help?  When sending an email and I add a name to the "To" box or CC/BCC box which I later decided I don't want to include, Mail ignores the instruction to "remove" that name so that once the email has been sent, the name is still included and the email goes to them anyway.  Pretty frustrating and I don't understand why this is happening. 

    You would really have to ask the app developer if there is a way to export the data.
    As for adding a printer, you would need to purchase an AirPrint compatible printer and connect it to your wireless network.
    By the way, your holiday letter/rant/Idon't even know what to call it... is completely inappropriate for these forums.

  • Need to throw an alert or send an email if a message fails in the adapter e

    Hello Guys,
    We have 2 different types of scenarios Idoc to file and File to Idoc.
    1) Idoc to File:
    We need to send an email if the idoc message fails in the Adapter engine ( system error in the adapter engine)
    2) File to Idoc:
    We need to send an email if the incoming file fails in the Adapter engine ( system error in the adapter engine) or fails in the communication channel.
    How can this be acheived ?

    Hi,
    U can send mails if either sender or receiver side message fails and any error in intergration engine or adapter engine using Alert management.
    Alerting is an function of Runtime Workbench along with Message archiving,End-to-end monitoring, Performance Monitoring,Cache monitoring.
    Alerting is no longer dependent on the configuration and activation of end-to-end
    monitoring. Consequently, the delay between when an error occurs in message
    processing and the creation of an alert is significantly reduced. Furthermore, you no
    longer need to schedule the report SXMSALERT_PROCESS_DATA_GET as a
    background job.The Runtime Workbench has CCMS Alert Monitor thru which
    You can now configure one new CCMS Alert Monitor per Adapter Engine for
    adapter-specific processing errors.Alerts triggered by the Runtime Workbench can now be forwarded to the CCMS Alert
    Monitor and displayed there.
    See also SAP Note 824039.
    Thru Runtime Workbench we can access alert inbox, alert configuration
    In process Integration with Central SAP Monitoring Infrastructure we Drill down to individual process steps and Use SAP Web AS Alert Framework.
    In SAP Web AS Alert Framework, we Classify errors and Alert channels (such as e-mail) available.
    Alert-Configuration
    Objective: Active Monitoring
    CCMS Alerts + message-oriented alerts
    Based on SAP's Basis Alert Framework
    Alerts propagated through E-Mail, SMS,
    In Monitoring the SAP Exchange Infrastructure, Message Alerting is part of Runtime Workbench.
    Alerting Framework
    ?? Configuration of alerts to reflect the needs of specific processes
    ?? Part of SAP Web AS
    Alert Configuration
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Alert Inbox
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Alert Notification Step-by-Step
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Defining Alert Classifications
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Triggering Alerts
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Setting up alerts
    Setting up alerts in RZ20
    Alert Management
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e04141e8-0f11-2a10-adaa-9d97b062c2df
    Alert Notification
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90f449a8-a6db-2910-a386-d2b5999f5751
    Custom Alerts in CIC Win Client for CRM 5.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601db2b2-2839-2a10-0381-8807979f6ff8
    Understanding u'r SAP EarlyWatch Alert Report
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4b88cb90-0201-0010-5bb1-a65272a329bf
    For raising an alert you need to first configure the alert please follow the below weblog written by Michal Krawczyk
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    Regards,
    Phani
    Reward points if Helpful

  • My email isn't working on iOS 7, saying that my password is wrong when it is correct, I now can't send any emails but I can receive them and when I do I get three lots of them

    My email isn't working on iOS 7, it is saying that my password is wrong when it is correct, I retype it in settings and try again it still says it is wrong, although I can revive emails but when I do I get three of the same thing and I can't send any emails, this all started when I downloaded iOS 7.

    Hello,
    Actually i also had changed my gmail password like to the above. Andyour recommendation seems to be the same to rebooting iPod touch, which didn't work for me when i had the same gmail problem with the incorrect password error in the continuous manner. However the problem has gone when i removed the gmail account so as to create the same one.
    Thanks
    YH Kwon

  • Changing templates for outbound "Send something" emails ...

    T-mobile 8800 .
    How do I change the template used for "Send Location ... by email" ?
    When I use my built-in GPS and choose to "send location ... by email" it creates an email with this:
    >
    This is my current location.
    maps.BlackBerry.com?lat=37.87848&lon=-122.18098&z=1
    <
    I would like to send an email like this instead, of course putting the lat/long in the right places:
    >
    maps.google.com/maps?f=q&hl=en&geocode=&q=39.738346,-120.62439&ie=UTF8&z=16&iwloc=addr
    <
    is there a location on my blackberry where templates like this are stored and can be edited?

    Amog wrote:
    Yes, the changes are occurring inside the "data member access VI." Basically, if I change any VI template, the wizard will fail to load. I've added a short video of the wizard working correctly, my changing of a read VIT, and then the wizard failing to load even though it appears to find the VIT I modified.
    http://screencast.com/t/Y9zSKxlH
    I haven't tried this, but thanks for bringing this up. I get sick of the template having the error case structure around it so I was going to go in and modify some things, but now I think I'll wait...
    CLA, LabVIEW Versions 2010-2013

  • Change the Alert from Going to email to SMS

    Hello,
       Currently we have an interface that send an Alert to an email address when there are some processing errors on XI. I was wondering where I should change this to send the message to SMS instead of an email Address. I checked ALRTCATDEF and Alert Configuration in the RWB and dont see any reference to email or anything else. I would really appreciate it if someone can help me in this regard. All I need to do is toggle the email to SMS. I dont know where exactly to do that.
    Thanks.

    You need to configure SAPConnect for the same.
    Have a look at the following URL,
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    Thanks.

Maybe you are looking for

  • Regrding upgradation from sap r/3 4.6 to ECC 6.0

    Hi Friends, We want to upgrade from 4.6C to ECC6.0 . Pls can any one suggest me which tool i have to use . Possible pls send me some docs on this one. Thanks & Regards, Ramnaresh.P

  • Preview icons not appearing

    ust recently, the previews that show up for pictures and videos stopped appearing. For example, if I had a group of photos and I waited for a couple of seconds while looking at them, small thumbnails of the photos would replace the generic "preview"

  • Image Gallery Text Fields

    How do I change the font and size of text fields in creation of and image gallery?  I am able to change color.  I have Lightroom 3.  Thanks.

  • Download Oracle Grid Infrastructire 11gR2 linux 64-bit

    please somebody can tell me from where i can download Oracle Grid Infrastructire 11gR2 linux 64-bit.

  • TS5296 New macbook trackpad freezing up.

    I've had two new MacBooks int the last month. the first one was having issues with the trackpad freezing up. i returned it, got a new one and it's having the same issues. It's annoying and Apple won't provide a fix. I can't install the update because