Sending mail to current user

Hi All,
I want to send the failure mail to the currently log in user.
I know how to send the mail for a perticular user,but my requirement was i want to send the mail to the currently logged in user.
Is there any way for this.Please help.
Thanks,
Ravi.

Assuming that the target user's e-mail address field is populated in his/her FDM user profile, you should be able to use the following:
strUserID = API.DataWindow.Connection.PstrUserID' This is the user ID of the active FDM user
strUserEmail = API.DataWindow.Security.fUserEmailGet(strUserID)' This returns the user's e-mail address

Similar Messages

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • Sending mail to all users

    Folks,
    In Communigate there was a default 'all' account which could be used to send mail to all users. I know I could set up a mailing list to do this but does the Apple Mail server have a built in option for sending an email to all users?
    /// kak
    powerbook   Mac OS X (10.4.7)  

    No there is no such option.
    You will either need to setup a mailing list or create an alias that forwards to all your users.
    Obviously both solutions require that you add new users to the mailing list or alias.

  • Send mail to multiple users in outlook through workflow

    Hello Experts,
    I have a requirement where I have to fetch all the email ID (abc@companycom) under support team in an org unit and send mail to these multiple email ids when a support message ticket is created in transaction CRMD_ORDER.The BO for this is bus2000116.Now I have created a ZBO with supertype as bus2000116 and a custom method where I am fetching the email Ids.I have also created an EXPORT MULTILINE parameter (EMAIL_ID) for this method of type ADR6-SMTP_ADDR.I have tested this ZBO and it is correctly fetching all the email ID in this parameter.
    Now in my workflow builder,I have created a Activity type and here I have created a custom task calling my ZBO and custom method of fetching email id.I have also created a container(EMAIL_ID) for this task of type ADR6-SMTP_ADDR.Here I have binded the task(fetch email step) to workflow.In the Agents I have given &&EMAIL_ID&& in expression as this is the container.
    After this step I have added the mail step and in the reciepient type I have given G organizational object and expression as &EMAIL_ID&.Here I have added a standard task(TS45308726) with BOR as (SELFITEM and method as SENDTASKDESCRIPTION)for sending mail to these multiple ids to outlook.
    I have activated the builder and tested it.In the log I can see,the event has been triggerred,workflow is started,but workflow status is set to error.The step fetch mail is getting executed correcttly with 4 email ids in the container.and the third step send mail is also failed.giving error as "Work item 000000066700: Object 000000066700 method SENDTASKDESCRIPTION cannot be executed".
    Kindly give your valuable suggestions to rectify this issue.In SBWP i could see the workflow started but mails are not reaching my outlook.Your solution will be highly appreciated.
    Thanks & Regds
    vlp

    Hello Everyone,
    I have another issue.My workflow when directly executed sends mail to all users very quickly.All steps gets executed very quickly.This I could see through the workflow log and SOST and SCOT.But when I try to trigger the workflow through my transaction CRMD_ORDER(i have given proper BO and event) it is taking hours and still in Inprocess status.Infact its not even going to the first step(fetch email ids).
    I am totally confused on this behaviour.Kindly provide your ultimate solutions and I am very thankful for giving such good solutions to all my queries.
    Regds
    VLP

  • How can i insure that job finished and good  and send mail to the user  ?

    how can i insure that job finished and good  ,
    and how can i send mail to the user "ok"   ?

    Hi Dakota.  We do something simular with our nightly MRP job.  Our MRP job runs around midnight,  then we kick off another job about 4am which checks to see if any of the jobs in question have abended, if so,  then it sends an email to the email addresses specify in the report variant.  Of course, this could be modified to check for successfully complete jobs, if that is your requirement.
    REPORT ZBCJOBMONITOR .
    TABLES: SOMLREC90,
            TBTCO.
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: I_TBTCO    LIKE TBTCO OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_JOB FOR TBTCO-JOBNAME.
    SELECT-OPTIONS: S_JOBC FOR TBTCO-JOBClass.
    SELECT-OPTIONS: S_REC FOR SOMLREC90-RECEIVER.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      CLEAR:    MAILDATA, MAILTXT, MAILREC, I_TBTCO.
      REFRESH:  MAILTXT, MAILREC, I_TBTCO.
      PERFORM GET_ABENDED_JOBS.
      PERFORM BUILD_RECEIVERS.
      LOOP AT I_TBTCO.
        PERFORM BUILD_TEXT_MESSAGE.
        PERFORM SEND_MAIL_NODIALOG..
      ENDLOOP.
    *      Form  BUILD_TEXT_MESSAGE
    FORM GET_ABENDED_JOBS.
      SELECT * FROM TBTCO
              INTO CORRESPONDING FIELDS OF TABLE I_TBTCO
                         WHERE JOBNAME IN S_JOB
                           AND STATUS = 'A'
                           AND JOBCLASS IN S_JOBC
                           AND SDLSTRTDT = SY-DATUM.
    ENDFORM.
    *      Form  BUILD_TEXT_MESSAGE
    FORM BUILD_TEXT_MESSAGE.
      DATA: DATE(10) TYPE C.
      DATA: TIME(10) TYPE C.
      MAILDATA-OBJ_NAME = 'MONITOR'.
      MAILDATA-OBJ_DESCR = 'Batch Job Monitor'.
      MAILDATA-OBJ_LANGU = SY-LANGU.
      CONCATENATE 'Job Name:' I_TBTCO-JOBNAME
                  INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      PERFORM FORMAT_DATE USING I_TBTCO-SDLSTRTDT
                                DATE.
      CONCATENATE I_TBTCO-SDLSTRTTM+0(2) ':'
                  I_TBTCO-SDLSTRTTM+2(2) ':'
                  I_TBTCO-SDLSTRTTM+4(2)
                     INTO TIME.
      CONCATENATE 'Start Date/Time:' DATE TIME
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      CONCATENATE 'Job Class:' I_TBTCO-JOBCLASS
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      MAILTXT-LINE = 'Job has terminated abnormally'.
      APPEND MAILTXT.
    ENDFORM.
    *      Form  BUILD_RECEIVERS
    FORM BUILD_RECEIVERS.
      LOOP AT S_REC.
        CLEAR MAILREC.
        MAILREC-RECEIVER = S_REC-LOW.
        MAILREC-REC_TYPE  = 'U'.
        APPEND MAILREC.
      ENDLOOP.
    ENDFORM.
    *      Form  SEND_MAIL_NODIALOG
    FORM SEND_MAIL_NODIALOG.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                DOCUMENT_TYPE              = 'RAW'
                PUT_IN_OUTBOX              = 'X'
           TABLES
                OBJECT_HEADER              = MAILTXT
                OBJECT_CONTENT             = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
      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.
    *      Form FORMAT_DATE
    FORM FORMAT_DATE USING IN
                           OUT.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
                DATE_INTERNAL            = IN
           IMPORTING
                DATE_EXTERNAL            = OUT
           EXCEPTIONS
                DATE_INTERNAL_IS_INVALID = 1
                OTHERS                   = 2.
    ENDFORM.
    Regards,
    Rich Heilman

  • Send Mails to Multiple Users

    Hi,
    I have a requirement where I need to send mail to multiple users, for this I was following below link
    Re: Email to Multiple Email Address through WF
    Followed the above link and created 2 users with Notification Preference as MAILHTML and added to a role having email id as NULL and Notification Preference as MAILHTML . But I am not able to send mails rather it is going as notifications to the user Worklist.
    Please help me to resolve this issue.
    Regards,
    Prateek

    Hi, Andy,
    Use the Oracle-supplied package utl_mail for sending email messages:
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/u_mail.htm#i1001258
    It would be easier if you did not use dbms_output, or, if you really wanted to, do not call it directly. Write your own procedure (let's call it add_to_message) that concatenates a string to the end of a message that will ultimately be sent as an email. If you want to display the string using dbms_ouptut.put line as well as append it to the message, then call dbms_ouptut.put line inside add_to_message.
    If you really must get the text from dbms_output, use dbms_output.get_line (or get_lines)
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_output.htm#i999346

  • How to send mail to multiple users in workflow

    Hi
    I have created a workflow for vendor details.
    after filling all the vendor details the mail should be sent to all managers
    involved in workflow.Can anyone tell me how to assign this task of sending mails to all users in organizational unit.

    hi
    user 1 has mailbox open when the work item arrives, then to user 2 it will apprear to be already read.
    Try using a logical AND in the definition of the responsibilites, so that when only both user 1 and user 2 (assuming that there can be two users) read their emails the work item is regarded as complete
    also check with the following link..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c6456e89-0a01-0010-0189-a7961fe42034
    reward if useful
    regards
    dinesh

  • Sending  mail to  Multiple User

    Hello Everybody ,
    I have Developed one Workflow for Material Creation ,
    Now the Problem is that After Creation of material By End User the mail  should to 3-4 User  for Display the Material.
    So how can we Maintain 3-4 user name in Workflow ..........?
    For one User  it's working Fine but I want that mail should  goes to  Multiple User .
    ASAP.
    Regrads,
    Sandeep

    Hi Krishna
    I completed the send   mail to Multiple User ,
    Here my three user  can see the  Material in his work item  .
    But when one user exeuted his  work item .
    othe user work item is automatically deleted ....................?  that should nt happened ?
    Actually My requriement is that   When  End User ( A1   )is created  material  ....
    After the creation of Material Worklfow should triggerd ...........
    After Creation of Material   Can be View by 3 Higher Level  Person of Different Department    i.e ( FI  ,  SD  , PP  ) 
    A1 ( Created By End User )  -
    >    A2  ,  A3 ,   A4  ( This Person Can view Material  in their  Respective  Inbox  Work Item )
    My Prb is that Work Item goes to (   A2 , A3 ,  A4  )  But anyone of this one executed his Work Item  .........then other two person Work Item is automatically Deleted ...........and this should nt happened...........
    I want that each and every person can view the Material in Display Mode at any time  and any Sequence ....Please help me Friend .............
    I  have done lot's of R/D  but didn't got any solution ...
    Regrads,
    Sandeep Jadhav

  • Sending Mail to Local Users via the Terminal mail Command

    I am having trouble sending mail to other user account via the terminal mail command. It seems to work with some accounts i.e. guest, etc, but fails with others i.e. Dennis. It will fail with no error message. Has anyone had any experience using the unix mail command locally ?
    Dennis

    I don't know the answer to this but you might try the -v option on the mail command in order to get verbose output. Perhaps a useful message would pop up.
    Also, you might consider posting this message in the Unix Forum. There is a good chance that someone there can help you with this issue.
    EMAC G4 1.0 GHz   Mac OS X (10.4.6)  

  • Subsciptions - Sending mail to a user using a specific group.

    Hello.
    We currently have SCSM 2012 R2 set up to send mail when an analyst updates a ticket with a comment. We have a template with specific verbage for the user. This works as designed. We've now taken on the role to support a different,  line of business.
     We've created a new connector to monitor our LOB 2 support mailbox.  We've got the workflow set up to assign the correct support group (LOB 2 support group) and email the LOB 2 end-user that a ticket has been created.  We're running into a
    snag now with subscriptions that are used to notify the end-user that the ticket has been updated by an analyst and needs a response. 
    We are trying to expand our subscriptions to do the following:
    Send email to an existing LOB 1 end-user with Template A (LOB 1) when the support group is (LOB 1 Support) - This is our base subscription, and is working correctly.
    Send email to LOB 2 - end-user with Template B (LOB 2) when support group is (LOB 2 Support)
    We are currently using the "when an object of a selected class is created"  and the targeted class = Trouble Ticket Analyst Comments.  However there's no way to filter out the group under additional criteria.
    Does anyone have a suggestion on how to do this?  We are not well versed in XML or PS so I'm hoping that it's something that can be managed inside the SCSM console.
    Thank you.
    Milnesy

    in the criteria window, look for the parent work item relationship in the tree on the left, then find the tier queue or support group value. this should allow you to filter by that value on the parent of the comment. 

  • Groupwise not send mails to external users

    Hello everyone.
    I did a clean install of SBE with eDirectory, iManager, and Groupwise. Just when the installation can send emails to a user outside the domain (external user), but after restarting the mail server does not come to any external users, but if I receive them.

    Originally Posted by amoron
    Hello everyone.
    I did a clean install of SBE with eDirectory, iManager, and Groupwise. Just when the installation can send emails to a user outside the domain (external user), but after restarting the mail server does not come to any external users, but if I receive them.
    Did you setup internet addressing? Currently you have to manually setup internet addressing in Console One when setting up groupwise8 (see the docs for a how-to, its very easy). Without internet addressing, you'll be able to send emails to internal users, but not to external users, which seems to be the problem you are having.
    Just FYI, this internet addressing problem is being addressed in the next patch, which is currently in testing.
    -Hart

  • Sending mail to all users in Messaging Server 5.2

    Hi,
    I'm trying to send mail to all the users in my mail server, but haven't been able to do it. I'm using a command called deliver which is found in /opt/iplanet/server5/bin/msg/store/bin . I've tried sending messages to all users but have been successful in sending only to one user. Got any ideas??

    To create a dynamic mailing list:
    http://docs.sun.com/source/816-6009-10/users.htm
    If you're familir with ldapmodify, you can locate the user's pab in the directory server, and remove what you find there, but, honestly, I'd talk to the user first.. . .. .
    A user can work around removal of such, very easily. Any mail client, and a copy/paste will do it.

  • Sending mail to the user-id

    Hi Guys,
           I Have The Requirement Like ,I need To Send The Data As A Mail From the ABAP Program,and also i need to set the  sender address different from the login-id,how to set the sender address different from login-id..please help with the coding..
    <REMOVED BY MODERATOR>
    thanks&regards
    srinivasulu.j
    Edited by: Alvaro Tejada Galindo on Jan 24, 2008 9:32 AM

    hi
    good
    pls check this report.
    : Report  ZSAPTALK                                                   :
    : Author  SAPdev.co.uk                                               :
    : Description :                                                      :
    : Send mail message to SAP mail inbox.                               :
    :                     Please visit www.sapdev.co.uk for further info :
    REPORT ZSAPMAIL NO STANDARD PAGE HEADING.
    TABLES: DRAD,
            QINF,
            DRAW,
            SOUC,
            SOFD,
            DRAP.
    DATA: P_RETURN_CODE LIKE SY-SUBRC.
    data: d_username LIKE DRAP-PRNAM.
    mail declarations
    DATA : BEGIN OF NEW_OBJECT_ID.         " the newly created email object
            INCLUDE STRUCTURE SOODK.
    DATA : END OF NEW_OBJECT_ID.
    DATA : BEGIN OF FOLDER_ID.             " the folder id of the outbox
            INCLUDE STRUCTURE SOODK.
    DATA : END OF FOLDER_ID.
    DATA : BEGIN OF REC_TAB OCCURS 5.     " the table which will contain the
            INCLUDE STRUCTURE SOOS1.       " information on the destination
    DATA : END OF REC_TAB.
    DATA : BEGIN OF OBJECT_HD_CHANGE.      " the table which contains the
            INCLUDE STRUCTURE SOOD1.       " info for the object we will be
    DATA : END OF OBJECT_HD_CHANGE.        " creating
    DATA : OBJECT_TYPE LIKE SOOD-OBJTP.    " the type of object
    DATA : BEGIN OF OBJHEAD OCCURS 5.      " the header of the object
            INCLUDE STRUCTURE SOLI.
    DATA : END OF OBJHEAD.
    DATA : BEGIN OF OBJCONT OCCURS 0.      " the contents of the object
            INCLUDE STRUCTURE SOLI.        " i.e. the text etc
    DATA : END OF OBJCONT.
    DATA : BEGIN OF OBJPARA OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SELC.
    DATA : END OF OBJPARA.
    DATA : BEGIN OF OBJPARB OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SOOP1.
    DATA : END OF OBJPARB.
    DATA : BEGIN OF T_MAIL_TEXT OCCURS 0,  "Message table for messages to
            STRING(255),                   "user via mailbox
           END OF T_MAIL_TEXT.
    Parameter: p_uname like sy-uname.
    **START-OF-SELECTION
    START-OF-SELECTION.
        d_username = p_uname.
        PERFORM POPULATE_EMAIL_TEXT.
        PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
        PERFORM CREATE_AND_SEND_MAIL_OBJECT.
          FORM POPULATE_EMAIL_TEXT                                      *
          Inserts text for email message                                *
    FORM POPULATE_EMAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      APPEND T_MAIL_TEXT.
    adds failed list  on to end of success list.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Header1    Header2    Header3'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = '----
      APPEND T_MAIL_TEXT.
    ENDFORM.
    *&      Form  SETUP_TRX_&_RTX_MAILBOXES
      Ensure that the mailboxes of the sender (INTMGR) are set up OK
    FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    get the user no of the sender in order to add the mail to the
    user name's outbox for future reference
      SELECT SINGLE * FROM SOUC
               WHERE SAPNAM = SY-UNAME.    "SAP name of a SAPoffice user
      IF SY-SUBRC NE 0.
        "Error finding the SAPoffice user info for the user
        MESSAGE E064(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    *Get the outbox No for the sender from the user No where the folder
                                           " type is an outbox
      SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP   "Owner type from ID
                           AND OWNYR = SOUC-USRYR   "Owner year from the ID
                           AND OWNNO = SOUC-USRNO   "Owner number from the I
                           AND FOLRG = 'O'."Output box
      ENDSELECT.
      IF SY-SUBRC NE 0.
        " Error getting folder information for the user
        MESSAGE E065(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    ENDFORM.                               " SETUP_TRX_&_RTX_MAILBOXES
    *&      Form  CREATE_AND_SEND_MAIL_OBJECT
    FORM CREATE_AND_SEND_MAIL_OBJECT.
      FOLDER_ID-OBJTP = SOFD-FOLTP.        " the folder type ( usually FOL )
      FOLDER_ID-OBJYR = SOFD-FOLYR.        " the folder year ( usually 22 )
      FOLDER_ID-OBJNO = SOFD-FOLNO.        " the folder no.
      OBJECT_TYPE     = 'RAW'.             " the type of object being added
    build up the object information for creating the object
      OBJECT_HD_CHANGE-OBJLA  = SY-LANGU.  " the language of the email
      OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
    mail subject 'Mass Linking of QA, pass/fail'
      MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
      OBJECT_HD_CHANGE-DLDAT = SY-DATUM.   " the date of the email
      OBJECT_HD_CHANGE-DLTIM = SY-UZEIT.   " the time of the email
      OBJECT_HD_CHANGE-OBJPRI = '1'.       " the priority ( highest )
      OBJECT_HD_CHANGE-OBJSNS = 'F'.       " the object sensitivity
    F is functional, C - company sensitive
    object_hd_change-skips  = ' '.       " Skip first screen
    object_hd_change-acnam  = 'SM35'.    " Batch imput transaction
    object_hd_change-vmtyp  = 'T'.       " Transaction type
    add the text lines into the contents of the email
      CLEAR OBJCONT.
      REFRESH OBJCONT.
    free objcont.      " added this to delete the mail contents records
      LOOP AT T_MAIL_TEXT.
        OBJCONT-LINE = T_MAIL_TEXT-STRING.
        APPEND OBJCONT.
      ENDLOOP.
      CLEAR OBJCONT.
    build up the table of receivers for the email
      REC_TAB-RCDAT = SY-DATUM.            " the date to send the email
      REC_TAB-RCTIM = SY-UZEIT.            " the time to send the email
    the SAP username of the person who will receive the email
      REC_TAB-RECNAM = D_USERNAME.
    the user type of the person who will send the email ( USR )
      REC_TAB-SNDTP = SOUC-USRTP.
    the user year of the person who will send the email ( 22 )
      REC_TAB-SNDYR = SOUC-USRYR.
    the user number of the person who will send the email
      REC_TAB-SNDNO = SOUC-USRNO.
    the sap username of the person who will send the email
      REC_TAB-SNDNAM = SY-UNAME.
    get the user info for the receiver of the document
      SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
      IF SY-SUBRC NE 0.
        WRITE : / TEXT-001, D_USERNAME.    "usnam.
        EXIT.
      ENDIF.
    the user number of the person who will receive the email ( USR )
      REC_TAB-RECNO = SOUC-USRNO.
    the user type of the person who will receive the email ( USR )
      REC_TAB-RECTP = SOUC-USRTP.
    the user year of the person who will receive the email ( USR )
      REC_TAB-RECYR = SOUC-USRYR.
    the priority of the email ( highest )
      REC_TAB-SNDPRI = '1'.
    check for delivery on the email
      REC_TAB-DELIVER = 'X'.
    send express so recipient knows there is a problem
      REC_TAB-SNDEX = 'X'.
    check for a return receipt
      REC_TAB-READ = 'X'.
    the sap username of the person receiving the email
      REC_TAB-ADR_NAME = D_USERNAME.       "usnam.
    add this receiver to the internal table
      APPEND REC_TAB.
      CLEAR REC_TAB.
    call the function to create the object in the outbox of the sender
      CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
                OBJECT_TYPE                = OBJECT_TYPE
                OWNER                      = SY-UNAME
           IMPORTING
                OBJECT_ID                  = NEW_OBJECT_ID
           TABLES
                OBJCONT                    = OBJCONT
                OBJHEAD                    = OBJHEAD
                OBJPARA                    = OBJPARA
                OBJPARB                    = OBJPARB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                DL_NAME_EXIST              = 4
                FOLDER_NOT_EXIST           = 5
                FOLDER_NO_AUTHORIZATION    = 6
                OBJECT_TYPE_NOT_EXIST      = 7
                OPERATION_NO_AUTHORIZATION = 8
                OWNER_NOT_EXIST            = 9
                PARAMETER_ERROR            = 10
                SUBSTITUTE_NOT_ACTIVE      = 11
                SUBSTITUTE_NOT_DEFINED     = 12
                SYSTEM_FAILURE             = 13
                X_ERROR                    = 14
                OTHERS                     = 15.
      IF SY-SUBRC NE 0.
        MESSAGE A063(ZR53) WITH SY-SUBRC.
        EXIT.
      ENDIF.
    call the function to send the already created email to the receivers
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_ID                  = NEW_OBJECT_ID
                OUTBOX_FLAG                = 'X'
                OWNER                      = SY-UNAME
           TABLES
                RECEIVERS                  = REC_TAB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC EQ 0.
        MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
      ELSE.
        MESSAGE I036(ZR53) WITH D_USERNAME."      sy-subrc.
      ENDIF.
    ENDFORM.                               " CREATE_AND_SEND_MAIL_OBJECT
    thanks
    mrutyun^

  • How we will send mails to Mutiple Users in One Department

    Hi,
    I don't want to send mails to Outlook/Lotusnotes.
    I want to send mails from my SAP user to my whole department internally.
    Only the message has to go to my whole Purchase depatmen. If i Change any Purchase Requisition then only message has to go them..as pur.req has been changed.
    Kindly give me the solution...
    Thanks and Have a Great day!!
    Soni

    Hi Soni,
    Think i have answered in your other post as well.
    May b u can proceed as Ajay had told u.
    But instead of creating a Postion.
    You can directly go to the Send Mail Step.
    Select "Organizational Unit" in the recipient type and select your production Department using F4 help (which will display all org units defined)
    This will enable the send mail step to send mails to everybody in your department.
    i.e. mails will be sent to all positions that are under the org.unit selected and are assigned to an employee and with a valid IT0105 (Communications type) record.
    Hope this solves your problem
    Regards,
    Raj

  • Send mail to multiple users

    Dear all,
    I'm using FM 'EFG_GEN_SEND_EMAIL' to send an Email, for a single user its working fine, but I want to know is it possible sending the same mail to multiple users with the same FM, I searched the forum for the same & ended up finding no satisfying results. Using FM ''SO_NEW_DOCUMENT_ATT_SEND_API1' we can attain this but I want to know if it is possible with the former FM.
    Thanks & Regards
    Ajai

    Hi,
    PFB the code that i have used to send mail. In case you need any additional clarification, please feel free to ask..Hope it will help you:
    *To fill the content message
      REFRESH i_message.
      wa_message = l_subject.      "Production Error Log Details for Error Code &
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = ' '.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = l_system.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = l_sdate.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = l_message.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = l_description.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = l_count.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = ' '.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
      wa_message = l_message2.
      APPEND wa_message TO i_message.
      CLEAR wa_message.
    * To populate the subject/generic message attributes
      wa_doc_data-obj_langu  = sy-langu.
      wa_doc_data-obj_name   = c_objname.
      wa_doc_data-obj_descr  = text-t20. "Production Error Log Details
      wa_doc_data-sensitivty = c_r.
    * Fill receipient information
      CLEAR wa_receivers.
      REFRESH i_receivers.
      LOOP AT i_emailid INTO wa_emailid.
        IF wa_emailid-email_id CA c_attherate.  "@
          wa_receivers-receiver = wa_emailid-email_id.
          wa_receivers-rec_type = c_u.  "U
        ELSE.
          TRANSLATE wa_emailid-email_id TO UPPER CASE.
          wa_receivers-receiver = wa_emailid-email_id.
          wa_receivers-rec_type = c_c.  "C
        ENDIF.
        wa_receivers-com_type = c_int.
        wa_receivers-notif_del = c_x.
        wa_receivers-notif_ndel = c_x.
        APPEND wa_receivers TO i_receivers.
        CLEAR wa_receivers.
      ENDLOOP.
    * Call the Function Module to send the e-mail alongwith the attachments if any
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_data
          put_in_outbox              = c_x
          commit_work                = c_x
        IMPORTING
          sent_to_all                = wa_sent_all
        TABLES
          contents_txt               = i_message
          receivers                  = i_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc EQ 0.
        MESSAGE text-t08 TYPE 'S'."Mail(s) Send Successfully
      ELSE.
        MESSAGE text-t09 TYPE 'E'."Error in Sending Mail
      ENDIF.
      REFRESH:
               i_message[],
               i_receivers[].

Maybe you are looking for

  • The type tool is not working on new projects - although I can use it on an existing one?

    My type tool has stopped working on projects - although I can see the letters in the layer grid when I press save - they are just not showing up on the project itself.  Thank you for any help you can give me!

  • XSLT and FOP in a 1.3 environment

    I've just set up a small proof of concept XSLT and FOP engine under the new JVM. But now I have to translate that back to a 1.3 environment for implementation and production. There were two things that I noticed. Java 5.0 = simple as hell. Java 1.3 =

  • Naming of folders in Photoshop elements 11

    Hello I am using the windows version of photoshop elements 11, in dutch, i am looking for an option to create folders during the import into the catalog with a naming template yyyy mmm dd, this would result in 2013 jun 26, this option is not in my se

  • [XSLT] No support for XSD substitutionGroup functionality?

    I'm getting started with BPEL Process Manager and am currently exploring the functionalities of BPEL JDeveloper. One thing I'm trying to do is see if it has the same capabilities as TIBCO's messagebroker. Although it looked very promising I ran into

  • I need linkability on an placed edge animation

    I brought in an edge animation that needs to link (on click) to a page within the site.  the animation has some interactive features that I established in Edge (and they are working fine) so I can't put a 0 opacity linking object over the top of it b