How to create a BO for sending emails

Hi All,
           I want to create a Business Object which should have an event for sending emails.
          Please guide me on this.
Thanks in Advance,
Saket.

Hi Raj,
See i will explain why i want it.In the link it's done as below:
  IF ZCUST_INFO-COUNTRY = 'IN'.
    DATA: W_OBJTYPE TYPE SWETYPECOU-OBJTYPE,
          W_OBJKEY  TYPE SWEINSTCOU-OBJKEY,
          W_EVENT   TYPE SWETYPECOU-EVENT.
    W_OBJTYPE = 'YH355_BO'.
    W_OBJKEY  = ZCUST_INFO-CUSTNO.
    W_EVENT   = 'SENDEMAIL'.
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        objtype                       = W_OBJTYPE
        objkey                        = W_OBJKEY
        event                         = W_EVENT
    COMMIT WORK.
  ENDIF.
But here w_objtype is a custom BO and also w_event  = 'SENDEMAIL'  .This event too
is a custom event.
Now i want to know what code is there in this custom BO because it is this BO which triggers the email through  SENDEMAIL event.
Hope i am clear here.
waiting for your reply.

Similar Messages

  • Create Service CAF for send email

    Friends,
    I've to create a service-CAF that send email.
    I'll disable the default of BPM email notifications and put one WS for do it.
    Does anyone have any experience with it?
    []´

    Hi Tulio,
    Why not implementing a simple JEE5 web service for this? AFAIK there is no need to warp this into CAF as the CE stack would also allow you doing so with a simple POJO + annotations.
    Within your implementation you could access the standard java.mail APIs. Simply make sure that you set its properties accordingly in the java mail service setttings of the engine (NWA > Configuration Management > Infrastructure > Java System Properties - if I recap this correctly).
    So in theory (I did not do it myself yet) this should be a "no-brainer"
    As soon as it is deployed and set up correctly on the CE stack you could access the WSDL via the WS navigator (or via the SOA configuration), import it to your process project and make use of it in automated activities.
    Another - interesting - option would be using the EJB functions for this. I would imagine modelling the interface this way:
    boolean sendMail(String to, String title, String subject, String body)
    You could then use this in some (input or output) mapping and pass in some values. In addition the function will return a boolean (or maybe a String) that could tell you the outcome of sending out the mail (so that you know if it worked technically - this does not necessarily mean that the mail reached the recipient - that's depending on infrastructure and SPAM filters
    The more I type the more I like this idea - maybe I find two minutes to write some short document for this
    Cheers,
    Martin

  • How to create own event of sending email for IDI

    Hi Gurus,
    We have one requirement to navigate the screen to inbox once the user sends the email. Currently the screen goes back to initial incoming email screen after user clicks the send button.
    I added the event ZSENDEMAIL in IDI event repository (CRMC_IC_EVENT_REP) with below parameters:
    component: CRMCMP_CCS_EML
    view: CRMCMP_CCS_EML/MAILBODY
    UI event: SENDMESSAGE
    Also I created a IDI policy in IC_manager as below:
    if current event = ZSENDEMAIL
    navigate to IC webclient inbox:display
    However, it did not work. The screen still goes back to the initial incoming email screen. Did anyone have any similar expenrience? Could you help to share your successful example? Any suggestion or idea are welcome!
    Thanks in advance!
    Edited by: Zhijie Kong on May 31, 2011 11:12 PM

    Hi Hannes,
    I used below IDI rule to navigate to IR screen.
    (If Current Event Equals Contact Ended and
    MEDIA Equals "Email"
    Then Navigate To ( Navigation Object type:Action = Interaction Records:Edit ) )
    Thanks,
    ZJKong

  • How to add 'cc' field for sending emails

    STEP 1>
    I have created a PO and i m viewing it thru me23n. Now i want to send this PO thru email, so in me23n, i select the PO no. and on top I click on 'Messages'. In output type I select 'NEU' and in Medium I select 'External send' .
    STEP 2> Now on top I click on ' Communication Method' . In Communication Strategy I select 'CS01' and logical destination is 'LP01'
    STEP 3> Now when I save it, It automatically sends an email to the vendor. This email address is taken from vendor master's email address field.
    So, how can I add a 'CC' and 'BCC' field, so that emails can be sent to multiple person.

    Hi,
    use this FM SO_DOCUMENT_REPOSITORY_MANAGER .
    In that in the table parameters Receipents
    SOOS1-SNDCP = 'X'. (CC)
                  SNDBC = 'X'. (BC)
    For any needs refer the above FM.
    With Regards,
    Sumodh.P

  • How to configure Oracle Alerts For Sending EMail?

    Hi All,
    I am using Oracle Apps 12.1.1.
    I am configuring Oracle Alerts to sent a email.
    for that i have set
    Unix send mail :/usr/lib/sendmail
    Mail Database/Server Name:172.16.0.6
    Mail Priority:Normal
    In Accounts:
    User Name:My User Name
    Password:******
    Anything need to configure because after submitting a request It is showing that request is successfully completed but not receiving mail.
    Please Help.
    Thank In Advance.
    Regards,
    SHD

    Hi;
    please check below links:
    Alert-EBS
    General EBS Discussion
    Oracle Periodic Alert..
    Oracle Periodic Alert..
    Also see:
    Oracle Alert Documentation Resources, Release 12 [ID 396315.1]
    How to determine what email system is being utilized for Oracle Alert processing [ID 428193.1]
    Configuring the Oracle Workflow 2.6 Java-based Notification Mailer with Oracle Applications 11i [ID 231286.1]
    How to setup Email Notification from Microsoft Exchange with Oracle Alerts [ID  163249.1]
    Regard
    Helios

  • How to create a Index for KM documents

    Hi Experts.......
    I have two queries .
    1,How to create a Index for the KM Server documents so that when ever i am in need of particular document,i can be able to retrive the exact document within short time......
    2,What Is TREX? Need of TREX ?
    If any one have documents for the above said queries kindly send it to [email protected]
    Thanks in Advance,
    Jasmine

    Hi Jasmine,
    1.In the EP 6.0 you can create index System Administration -> System Configuration -> Knowledge Management -> Index Administration
    2.TREX is search engine that will proccess the documents that you have specified in the index Data sources when you have created the index.
    The status of TREX you can see in System Administration -> Monitoring -> Knowledge Management -> TREX Monitor or Index Monitor for indexing monitoring.
    If you don't have connected any TREX engine to J2EE, just start the visual administrator and configure the TREX service.
    To install the TREX you can follow the instguides for TREX service.sap.com/instguides SAP Netweaver->Release 04 or 2004s -> Installation -> Cross-NW
    I hope that it helps.
    Bye
    Dan

  • Problem configurationing Agents for sending email

    Hi,
    Do you know how can I configurate option for add email recipients, so that I can type an email address and send agent by email ?
    Nowadays the option: "add email recipients" is only enable for user administrator and I need enable for another users.
    I will appreciate your help
    Thanks

    hmm
    without creating user... I would suggest to change your email address to others for a ibot and revert it back when you are done.
    If not create dummy users and set profiles and use.
    If helps mark

  • How to create  a procedure to send a mail if the Database is down?

    Hi,
    I have created the below procedure to send a mail if the count is less than 1300. It scheduled daily @ 15 30 hrs. Its fine.
    CREATE OR REPLACE procedure SCOTT.hrsmail
    is
    v_count number;
    begin
    Select count(*) into v_count from emp;
    if v_count < 1300
    then
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'Testing the UTL_MAIL Package',
    message => 'If you get this, UTL_MAIL package
    else
    null; --what you want to do here
    end if ;
    end;
    Sometime the Database is down, so the job is not running.
    How to create a procedure to send a mail if the database is down?
    Pls help me. Its highly appreciated.
    Thanks
    Nihar

    nihar wrote:
    How to create a procedure to send a mail if the database is down?And what if the database is up, but the network down? Or the database up and mail server down? Or mail server undergoing maintenance?
    There are loads of "+What if's+" - and in that respect, playing "+What if database is down..+" in this case does not make any sense. You do not use the database to monitor its own up/down status. You do not rely just on SMTP as notification protocol that the database is down.
    The correct approach would be using something like SNMP as the monitoring protocol. A monitoring system that can process SNMP and perform some basic root cause analysis (e.g. network to the database server down, database server status unknown). And this system supporting notification methods like SMTP, SMS and so on.

  • How to create business operation for starting workflows

    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java class everything
    works fine(wlpi-ejb.jar is required), but when I call business operation from
    Studio I can't use classes from wlpi-ejb.jar.

    Business operation is called by WLIS. So, I include wlpi-ejb.jar into WLIS classpath.
    Studio uses deployed EJB from wlpi-*.jar, I don't know why Studio doesn't see
    methods from deployed EJBs when WLIS classpath contains wlpi-ejb.jar.
    "Andrew Pitonyak" <[email protected]> wrote:
    >
    When studio starts, what is your classpath? If you use the included batch
    file to start it, then your class path may not include this :-)
    Andrew
    "Raul" <[email protected]> wrote in message
    news:[email protected]..
    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java classeverything
    works fine(wlpi-ejb.jar is required), but when I call business operationfrom
    Studio I can't use classes from wlpi-ejb.jar.

  • How to create a Templates for Categories and Products In BCC

    Hi All,
    Could you please tell me How to create a Templates for Categories and Products In BCC and how Can I get those Templates details(Categories and Products)in jsp
    If possible can any one send the document or where we find in atg docs
    Regards,

    At product/category/sku level there is a property called template.
    Find the property in ACC/BCC and provide all the values including the URL property.
    In you jsp, you can use this property from product/sku like the way you retrieve any other property from sku/product.
    <dsp:valueof param="product.template.URL" />
    Using that property with <dsp:include> includes that page.
    Peace
    Shaik

  • Function module for sending email

    Hi all,
    Can I know list of function modules for sending emails.
    Other than "SO_DOCUMENT_SEND_API1"
    pls let me know

    Hi Praveen,
    Below is the sample code to send the external mail.
    &**********Reward Points if helpful**********&
    DATA: ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des .
           ld_receiver LIKE  sy-subrc.
      DATA:   it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
              w_cnt TYPE i,
              w_sent_all(1) TYPE c,                             "#EC NEEDED
              w_doc_data LIKE sodocchgi1.
      REFRESH it_receivers . CLEAR it_receivers .
      IF v_trip_send = 'X'.
        it_receivers-receiver = it_trip_dload-approver_email .
      ELSE .
        it_receivers-receiver = it_adv_dload-approver_email .
      ENDIF.
      it_receivers-rec_type = c_u .
      APPEND it_receivers. CLEAR it_receivers.
    it_receivers-receiver = " ------> pass your reciever email id.
      IF v_trip_send = 'X' .
        it_receivers-receiver = it_trip_dload-requester_email .
      ELSE .
        it_receivers-receiver = it_adv_dload-requester_email .
      ENDIF .
      it_receivers-rec_type = c_u .
      it_receivers-copy     = 'X' .
      APPEND it_receivers. CLEAR it_receivers.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = c_saprpt.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = c_saprpt.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = c_f.
      CLEAR it_attachment.
      REFRESH it_attachment.
      it_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR it_packing_list.
      REFRESH it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES it_packing_list-body_num.
      it_packing_list-doc_type = c_raw.
      APPEND it_packing_list.
    Create attachment notification
      it_packing_list-transf_bin = c_x.
      it_packing_list-head_start = 1.
      it_packing_list-head_num   = 1.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
      it_packing_list-doc_type   =  ld_format.
      it_packing_list-obj_descr  =  ld_attdescription.
      it_packing_list-obj_name   =  ld_attfilename.
      it_packing_list-doc_size   =  it_packing_list-body_num * 255.
      APPEND it_packing_list.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data = w_doc_data
          put_in_outbox = c_x
          commit_work   = c_x
        IMPORTING
          sent_to_all   = w_sent_all
        TABLES
          packing_list  = it_packing_list
          contents_bin  = it_attachment
          contents_txt  = it_message
          receivers     = it_receivers.

  • ABAP program for sending emails

    Hello SAP developers,
    I need ABAP program for sending emails to my internet adress in background - just some simple header with no body and no attachement. Recipient should be specified due the parameter etc... Does program like this exist or i have to create it? I am not familiar with ABAP. I am basis admin so I am little bit lost in this. I have tried program code from this page ->
    http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
    But anyway it does not work - there is an exception "no message send". SCOT is configured, mails are working fine from transaction SBWP.
    Thanks in advace
    JM

    I have already solved my issue through CCMS agents and RZ20 central autoreaction (sms) in Solution Manager.
    Regards
    JM

  • How to create Process chain for Aggregate for Master data

    Hello friends,
    I created Aggregates on Navigational Attributes.
    Now they are working fine, but i need to know that how shall i create the Roll up for Aggregates on Navigational Attributes.
    The point is the master data changes frequently a lot of time for e.g. for 0customer etc.....
    So if any one can send me the step by step documents so as to know how to roll up the Aggregates for Navigation attributes or for aggregates created on Master data....
    How to create process chains for the same ?????????
    Because if master data changes, then rolling up the aggregates straight forward will not help.
    So we need to write a process chain so that it deactivates the aggregate and reactivate again and fill up again..........
    If i mis interpreted something please rectify it.......
    Please advise

    Hello,
    the changerun that you have to schedule in order to activate the master data will adjust the aggregates automatically.  There is no need to deactivate them after master data loads.
    Best regards,
    Ralf

  • Setting default account for sending email

    I have 4 accounts I use for sending email, but would like to have one be the default and can't figure how to do that. there is a check box next to the outgoing server dropdown that says use only this account. I don't think that is what I want, nor am i clear what that would do.
    Is there a way to set a preferred outgoing account?
    Does that require a plug in or helper app of some sort.
    thanks for any suggestions.

    In Mail>Preferences>Composing:
    Use Send new messages from: to select an account.

  • How you create a group to send many txt msg at the same time?

    How you create a group to send many txt msg at the same time?

    The iPhone does not support groups for messaging. There are apps in the app store which purport to be able to do this.

Maybe you are looking for

  • Colors in News Browser

    Hi I have an KM-navigation iView which is using the lauout set for News Browser. I have further diferent XML-Forms which again have a unique color. The meaning is to display the xml fomrms with diferent colors in the same iView. But when I have set a

  • Why can't I hook up to my own WiFi network?

    I am unable to hook up to my own home WiFI from Brighthouse. I have my phone set on auto to ask to join networks and always in the past it has gone immediately to my network, but now says" unable to join network." Is this an iPhone problem, Brighthou

  • Connect to MS Access using External Content Type

    I am trying to establish connection to an Access 2013 DB from SharePoint 2013 Designer. I am in External Content Type. My database is on local drive. When I click on Add Connection, I have the following choices, .Net Type SQL Server WCF Service Which

  • In FF 23.0, Bookmarks (with dropdown menu) does not stick.

    Why would mozilla peeps would make this very useful button disappear? In what way it helps the users? It looks like their Vista moment. For now, I have re-installed FF 22.0 version. Hope they fix this bug soon.

  • Learning Management System Suggestions

    Does anyone have suggestions for LMS that works well with Adobe eLearning Suite. Audience is about 500 expected to grow to 1000. Tracking and testing are very important