Regarding Send Email action in SharePoint designer

Hi All,
In one of my Designer workflow, I want to send email with all the list items field in a tabular format. Is it Possible.?

Check :
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f936a724-5f84-4f51-a3cd-dae328b37b21/sharepoint-designer-2010-workflows-html-email-deformed?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/en-US/457393c8-fe7d-4fcf-85e0-e464a74267e8/issue-with-tables-in-the-workflow-email?forum=sharepointgeneralprevious
http://blogs.technet.com/b/praveenh/archive/2010/12/11/set-up-your-workflow-to-send-an-e-mail-message.aspx

Similar Messages

  • Make send email action open in a different tab or window

    Made text a link in a smart shape with Cp7.Due to a shortcoming in the Google Chrome browser the email client doesn't open. So, I click the back button and it goes back to the first slide of the project. I am not looking for a resolution of the Chrome browser issue (but it would be nice to have:), I am wondering if the send email action can open a new tab or window to avoid the back-arrow-to-first-slide issue.
    thanks.
    Michael

    When you say: "Click the Back button", I'm assuming you're referring to the Back button in the browser, not a button in your Captivate slide, correct?
    If so, this will happen in all browsers when playing Captivate SWFs.  Clicking the browser back button essentially reloads the page, not just the slide.

  • Can we have approve/reject action button in email sent using SharePoint designer or do we need to custom code it?

    Hello,
    for particular item approval, when user receives an email, can email contain button of approve/reject or if user just replies to that mail using one word "Approve/Reject", so that item value should get updated in list and also get approved.
    Is it possible using SharePoint designer workflow or custom code workflow or Nintex workflow?
    Please guide.
    Thanking you in advance.
    Regards,
    Jayashri

    Follow these steps:
    You can create custom page with code to approve/reject item.
    Then you should pass item id (and other information if needed) in a query string.
    In a workflow you can generate a link to the created page and add it to email body.
    When a user will receive email, he/she will click on the button (link), then new tab with created page will be opened, where your custom code will approve an item.
    [custom.development]

  • Regarding sending email with priority

    hi experts,
    how to send email to multiple email ids with priority

    Dear thomson,
    i have developed report like bellow its working fine but when i send mail to multiple email ids it is sent sorted form i dont want like tat i want 2 send as per my input sequience
    thanks
    REPORT  zhrr_res_email.
    Infotypes                                                            *
    INFOTYPES : 0000, "Actions
                0001, "Organizational Assignment
                0002, "Personal Details
                0009, "Bank Details
                0587, "Provident Fund Contribution
                0185, "Personal IDs
                0041, "Date Specifications
                0105. "Communication
    TABLES : pa0105, pernr.
    Internal Tables                                                      *
    DATA :
           BEGIN OF t_output OCCURS 0,
              pernr LIKE pernr-pernr, " Personnel No.
              ename TYPE emnam,       " Employee Name
              kostl TYPE kostl,       " Cost Center
              ptext TYPE pktxt,       " Grade Text
              btrtl TYPE btrtl,       " Sub Area
              btext TYPE btext,       " Sub Area Text
              jdate TYPE begda,       " Joing Date
              ldate TYPE begda,       " releaving date
              stext TYPE stext,       " Designation
              dept TYPE stext,         " Department
              comp_name TYPE butxt,    " Company
             e_mail TYPE stext,
              e_pernr TYPE pernr-pernr,
              e_pernr1 TYPE stext,
              e_name TYPE emnam,
              fax TYPE stext,
              tel_extens TYPE stext,
              email TYPE stext,
           END OF t_output,
           BEGIN OF t_pa0000 OCCURS 0,
             pernr TYPE pa0000-pernr,
             subty TYPE pa0000-subty,
             begda TYPE pa0000-begda,
             massn TYPE pa0000-massn,
             massg TYPE pa0000-massg,
          END OF t_pa0000,
          BEGIN OF to_hrp1001  OCCURS 0,
            otype TYPE hrp1001-otype,
            objid TYPE hrp1001-objid,
            plvar TYPE hrp1001-plvar,
            begda TYPE hrp1001-begda,
            endda TYPE hrp1001-endda,
            sclas TYPE hrp1001-sclas,
            sobid TYPE hrp1001-sobid,
        END OF to_hrp1001,
        BEGIN OF tt_pa0105 OCCURS 0,
           usrid_long TYPE pa0105-usrid_long,
        END OF tt_pa0105,
        BEGIN OF t_zhrt_res_email OCCURS 0,
           pernr TYPE zhrt_res_email-pernr,
           edate TYPE zhrt_res_email-edate,
           etime TYPE zhrt_res_email-etime,
        END OF t_zhrt_res_email.
    DATA: tt_zhrt_res_email1 LIKE zhrt_res_email OCCURS 0 WITH HEADER LINE .
    DATA: tt_zhrt_res_email LIKE zhrt_res_email OCCURS 0 WITH HEADER LINE .
    DATA: t_pa0105 LIKE pa0105 OCCURS 0 WITH HEADER LINE .
    DATA: t_pa0001 LIKE pa0001 OCCURS 0 WITH HEADER LINE .
    DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
    DATA: objcont  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
    DATA: reclist1 LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
    DATA: doc_chng LIKE sodocchgi1.
    DATA : lines LIKE tline OCCURS 0 WITH HEADER LINE.
    Work Area                                                            *
    Working Variables                                                    *
    DATA :
          w_var TYPE i,
          w_no_days TYPE i,
          dt1(12) TYPE c,
          dt2(12) TYPE c,
          dt3(12) TYPE c,
          dt4(12) TYPE c.
    Selectin Screen                                                      *
    SELECTION-SCREEN COMMENT 1(20) ctxt.
    SELECTION-SCREEN COMMENT 23(5) ctxt1.
    SELECTION-SCREEN COMMENT 30(15) ctxt2.
    SELECTION-SCREEN COMMENT 48(10) ctxt3.
    SELECTION-SCREEN COMMENT 60(15) ctxt4.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-004.
    PARAMETERS :rl_dt LIKE sy-datum .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-007.
    PARAMETERS :rs_dt LIKE sy-datum .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-005.
    PARAMETERS :sf_note(10) TYPE c .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-009.
    PARAMETERS :rs_l(50) TYPE c .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-008.
    PARAMETERS :fr_by(30) TYPE c .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-015.
    PARAMETERS : ipc(3) TYPE c .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-016.
    PARAMETERS :pce(30) TYPE c .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(19) text-017.
    PARAMETERS :pcn(30) TYPE c .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-100.
    DATA : w_name TYPE pa0105-usrid_long.
    SELECT-OPTIONS : s_name FOR w_name NO INTERVALS.
    SELECT-OPTIONS :s_name1 FOR w_name NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN.                                                 *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ipc.
      DATA : BEGIN OF value1 OCCURS 0,
              status TYPE zhrt_res_email-status,
            END OF value1.
      DATA : value LIKE value1 OCCURS 0 WITH HEADER LINE.
      DATA  return_tab   LIKE ddshretval OCCURS 0 WITH HEADER LINE.
      DATA : val(3) TYPE c.
      DATA  retfield  TYPE  dfies-fieldname.
      retfield = 'STATUS'.
      value-status = 'YES'.
      APPEND value.
      value-status = 'NO'.
      APPEND value.
      DATA  dynpprog LIKE sy-repid.
      DATA  dynpnr   LIKE sy-dynnr.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
         ddic_structure   = 'ZHRT_RES_EMAIL'
          retfield         =  'STATUS'
          dynpprog         = sy-repid
          dynpnr           = sy-dynnr
         dynprofield       = 'IPC'
          value_org        = 'S'
          callback_program = sy-repid
        TABLES
          value_tab        = value
          return_tab       = return_tab
        EXCEPTIONS
          parameter_error  = 1
          no_values_found  = 2
          OTHERS           = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        READ TABLE return_tab INDEX 1.
        IF sy-subrc = 0.
          ipc = return_tab-fieldval.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN.
      IF  rs_dt NE '00000000' AND rl_dt NE '00000000'.
        CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
          EXPORTING
            beg_da        = rl_dt
            end_da        = rs_dt
          IMPORTING
            no_cal_day    = w_no_days
          EXCEPTIONS
            dateint_error = 1
            OTHERS        = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
      w_var = w_no_days.
      sf_note = 30 - w_var.
      IF ipc EQ 'YES'.
        SELECT SINGLE ename FROM pa0001 INTO pcn WHERE pernr EQ pce.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      SELECT SINGLE * FROM pa0001 INTO t_pa0001 WHERE pernr = pnppernr-low AND
                                                       begda LE pn-endda AND
                                                       endda GE pn-endda.
      READ TABLE t_pa0001 WITH KEY  pernr = pernr-pernr.
      ctxt = t_pa0001-ename.
      SELECT SINGLE ptext FROM t503t INTO ctxt1 WHERE persk = t_pa0001-persk AND sprsl EQ 'EN'.
      SELECT SINGLE ptext FROM t501t INTO ctxt3 WHERE persg = t_pa0001-persg AND sprsl EQ 'EN'.
      SELECT SINGLE btext FROM t001p INTO ctxt2 WHERE btrtl = t_pa0001-btrtl.
      SELECT SINGLE butxt FROM t001 INTO ctxt4 WHERE bukrs = t_pa0001-bukrs AND spras EQ 'EN'.
    INITIALIZATION.                                                      *
    INITIALIZATION.
      SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title
                                         AS WINDOW.
      SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-011.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETER : r1 RADIOBUTTON GROUP pr2 DEFAULT 'X'.
      SELECTION-SCREEN COMMENT 4(50) text-013.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETER : r2 RADIOBUTTON GROUP pr2.
      SELECTION-SCREEN COMMENT 4(55) text-012.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN END OF BLOCK b3.
      SELECTION-SCREEN END OF SCREEN 500.
      title = 'Selection'.
      CALL SELECTION-SCREEN '0500' STARTING AT 2 2.
      IF r1 IS INITIAL.
        CALL TRANSACTION 'ZHRR_RES_DELETE_EMIL'.
      ENDIF.
    Get Pernr                                                *
    GET pernr.
      IF pnppernr-low IS INITIAL.
        MESSAGE 'Enter Personal number' TYPE 'E'.
      ENDIF.
      SELECT * FROM zhrt_res_email INTO tt_zhrt_res_email1 WHERE pernr = pernr-pernr.
      ENDSELECT.
      READ TABLE tt_zhrt_res_email1 WITH KEY  pernr = pernr-pernr.
      IF pernr-pernr = tt_zhrt_res_email1-pernr.
        DATA: etxt(50) TYPE c,
              dt LIKE sy-datum.
        dt = tt_zhrt_res_email1-edate.
        CALL FUNCTION 'CONVERT_DATE_FORMAT'
          EXPORTING
            i_date      = dt
          IMPORTING
            e_calc_date = dt.
        CONCATENATE 'Already mail sent on- ' dt INTO etxt.
        MESSAGE etxt  TYPE 'E'.
      ELSE.
        PERFORM read_data. " Read Data
        PERFORM recepient.
        PERFORM send_mail.
        REFRESH t_output.
        PERFORM status_check.
      ENDIF.
    END-OF-SELECTION.                                                    *
    END-OF-SELECTION.
      MODIFY zhrt_res_email FROM TABLE tt_zhrt_res_email.
      DATA msg(200) TYPE c.
      LOOP AT reclist1.
        IF reclist-retrn_code = 0.
          CONCATENATE reclist1-receiver ': Sent Successfully'
            INTO msg SEPARATED BY space.
          IF reclist1-receiver IS NOT INITIAL.
            WRITE : msg.
          ENDIF.
          CLEAR msg.
        ELSE.
          WRITE : reclist1-receiver , 'Not sent'.
        ENDIF.
      ENDLOOP.
    *&      Form  send_mail
    FORM send_mail .
      REFRESH : objcont.
      LOOP AT t_output.
        CONCATENATE 'COMPANY NAME.....................:    't_output-comp_name INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'RESIGNATION RECEIVED FROM:' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '----
    ' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Employee Code.......................:'t_output-pernr INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Name.....................................: 't_output-ename INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Designation.............................:'t_output-stext INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE t_output-jdate0(2) '/' t_output-jdate2(2) '/' t_output-jdate+4(4) INTO dt1.
        CONCATENATE '* Date of Joining.........................:    'dt1 INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Grade......................................:    't_output-ptext INTO objcont SEPARATED BY space..
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Branch/Department...................:     't_output-dept '/' t_output-btext INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CALL FUNCTION 'CONVERT_DATE_FORMAT'
          EXPORTING
            i_date      = rl_dt
          IMPORTING
            e_calc_date = rl_dt.
        CONCATENATE rl_dt0(2) '/' rl_dt2(2) '/' rl_dt+4(4) INTO dt2.
        CONCATENATE '* Resignation Submitted on......... :     'dt2 INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CALL FUNCTION 'CONVERT_DATE_FORMAT'
          EXPORTING
            i_date      = rs_dt
          IMPORTING
            e_calc_date = rs_dt.
        CONCATENATE rs_dt0(2) '/' rs_dt2(2) '/' rs_dt+4(4) INTO dt3.
        CONCATENATE '* Asked Date of Release..............:     'dt3 INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Short Fall of Notice....................:     'sf_note INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Reason for leaving HCC..............:     'rs_l INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '* Forwarded by.............................:'fr_by INTO objcont SEPARATED BY space.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE '----
    ' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'This is Computer generated report' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'With Regards,' '' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE t_output-e_name '' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Personnel Manager' '' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Hindustan Construction Company Ltd' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Hincon House, LBS Marg' '' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Vikhroli (West)' '' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Mumbai 400083, India' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Tel:' t_output-tel_extens INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Fax:'t_output-fax  INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Email:' t_output-email  INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
        CONCATENATE 'Website: om' '.' INTO objcont.
        CONDENSE objcont.
        APPEND objcont.
        CLEAR objcont.
      ENDLOOP.
      doc_chng-obj_name = ''.
      doc_chng-obj_descr = 'Resignation'.
      doc_chng-priority   = 'X'.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          document_type              = 'RAW'
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          object_content             = objcont
          receivers                  = reclist
        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.
    DATA msg(200) TYPE c.
      CASE sy-subrc.
        WHEN 0.
          MESSAGE 'Mail has sent Succesfully' TYPE 'I'.
        WHEN 2.
          WRITE: / 'Document could not be sent to any of the recipients!'.
        WHEN 4.
          WRITE: / 'No authorization to send !'.
        WHEN OTHERS.
          WRITE: / 'Error occurred during sending !'.
      ENDCASE.
    ENDFORM.                    " send_mail
    *&      Form  recepient
    FORM recepient .
      LOOP AT s_name.
        TRANSLATE s_name-low TO UPPER CASE.
        reclist-receiver = s_name-low.
        reclist-rec_type = 'U'.
        APPEND reclist.
        CLEAR  reclist.
      ENDLOOP.
      LOOP AT s_name1.
        TRANSLATE s_name1-low TO UPPER CASE.
        reclist-receiver = s_name1-low.
        reclist-rec_type = 'U'.
        reclist-copy = 'X'.
        APPEND reclist.
        CLEAR  reclist.
      ENDLOOP.
      IF pce IS NOT INITIAL.
        SELECT SINGLE usrid_long FROM pa0105 INTO tt_pa0105-usrid_long WHERE usrty = '0010' AND
                                                                pernr = pce.
        APPEND tt_pa0105.
      ENDIF.
      LOOP AT tt_pa0105.
       CLEAR : reclist.
        TRANSLATE tt_pa0105-usrid_long TO UPPER CASE.
        reclist-receiver = tt_pa0105-usrid_long.
        reclist-rec_type = 'U'.
        reclist-copy = 'X'.
        APPEND reclist.
        CLEAR  reclist.
      ENDLOOP.
      reclist1[] = reclist[].
    ENDFORM.                    " recepient
    *&      Form  read_data
    FORM read_data .
    Actions
      PROVIDE * FROM p0000  BETWEEN pn-begda AND pn-endda.
        CASE p0000-massn.
          WHEN 'A1'.
            t_output-jdate = p0000-begda.
          WHEN 'B6'.
            t_output-jdate = p0000-begda.
          WHEN 'B3'.
            t_output-ldate = p0000-begda.
        ENDCASE.
      ENDPROVIDE.
      CALL FUNCTION 'CONVERT_DATE_FORMAT'
        EXPORTING
          i_date      = t_output-jdate
        IMPORTING
          e_calc_date = t_output-jdate.
    Organizational Assignment
      rp_provide_from_last p0001 space pn-begda pn-endda.
      IF pnp-sw-found EQ '1'.
        t_output-pernr = pernr-pernr.
        t_output-ename = p0001-ename.
    Company
        SELECT SINGLE butxt FROM t001
                      INTO t_output-comp_name
                      WHERE bukrs = p0001-bukrs.
    PSA
        SELECT SINGLE btext FROM t001p
                      INTO t_output-btext
                      WHERE btrtl = p0001-btrtl.
    Grade text
        SELECT SINGLE ptext FROM t503t
                      INTO t_output-ptext
                      WHERE persk = p0001-persk AND
                            sprsl = 'EN'.
    designation
        SELECT SINGLE stext
                    FROM hrp1000 INTO t_output-stext
                      WHERE otype = 'S' AND
                            objid =  p0001-plans AND
                            plvar  = '01' AND
                            langu = 'EN'.
    *Department text DEPT
        SELECT  otype
                objid
                plvar
                begda
                endda
                sclas
                sobid FROM hrp1001 INTO CORRESPONDING FIELDS OF
                TABLE to_hrp1001
                WHERE otype = 'O'    AND
                      plvar = '01'   AND
                      rsign = 'B'    AND
                      relat = '003'  AND
                      sclas = '94'   AND
                      begda LE pn-endda AND
                      endda GE pn-endda.
        READ TABLE to_hrp1001 WITH KEY objid = p0001-orgeh.
        IF sy-subrc NE 0.
          CLEAR : t_output-dept.
        ELSE.
          SELECT SINGLE stext FROM hrp1000 INTO t_output-dept
                        WHERE objid = to_hrp1001-sobid AND
                              otype = to_hrp1001-sclas AND
                              plvar = '01'  AND
                              langu = sy-langu AND
                              begda LE pn-endda AND
                              endda GE pn-endda.
        ENDIF.
      ENDIF.
      SELECT SINGLE usrid_long  FROM pa0105 INTO t_output-e_mail
                         WHERE pernr = pernr-pernr AND
                               subty = '0010'.
      SELECT SINGLE persnumber  FROM usr21 INTO t_output-e_pernr1
                         WHERE bname = sy-uname.
      SELECT SINGLE smtp_addr  FROM adr6 INTO t_output-email
                        WHERE persnumber = t_output-e_pernr1.
      TRANSLATE t_output-email TO UPPER CASE.
      SELECT SINGLE pernr  FROM pa0105 INTO t_output-e_pernr
                         WHERE usrid_long = t_output-email AND
                               subty = '0010'.
      SELECT SINGLE usrid  FROM pa0105 INTO t_output-fax
                         WHERE pernr = t_output-e_pernr AND
                               subty = '0005'.
      SELECT SINGLE usrid_long  FROM pa0105 INTO t_output-tel_extens
                      WHERE pernr = t_output-e_pernr AND
                            subty = '0020'.
      SELECT SINGLE ename  FROM pa0001 INTO t_output-e_name
                          WHERE pernr = t_output-e_pernr.
      APPEND t_output.
      CLEAR t_output.
    ENDFORM.                    " read_data
    *&      Form  status_check
    FORM status_check .
      tt_zhrt_res_email-pernr = pernr-pernr.
      tt_zhrt_res_email-edate = sy-datum.
      tt_zhrt_res_email-etime = sy-uzeit.
      APPEND tt_zhrt_res_email.
      CLEAR tt_zhrt_res_email.
    ENDFORM.                    " status_check
    Edited by: gopi sankuratri on Jun 26, 2008 10:44 AM

  • Question regarding sending email to multiple recipients

    Hi All,
    I am creating a workflow that will send an email notification everytime a new campaign is created. I've learned that R16 is capable of sending emails to multiple recipients, the only concern I have is I can't find any doumentation on how to do it. It is stated in the R16 Administrator Preview Guide that you can select 'Specific Email Address' and enter multiple email addresses directly, I tried to enter multiple email addresses separated by comma - [email protected],[email protected],[email protected] as an example, but it doesn't work and prompts me to enter a valid email address. Could anybody guide me on how to enter multiple email addresses once the 'Specific Email Address' is selected or how to do it in the expression builder to define the expression that will define the list of emails. I know that using group email addresses can be used as an alternative to this requirement but I hope theirs a way to do this with workflows.
    Thanks,
    Wayne

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • Urgent: Regarding Sending Email Notifications

    Hi all,
    We have scenario in which we have to search those users who has not accessed their accounts from last 2 years and then send them an email notification and after one month of notificatio we have to search those users who have been notified but yet not accessed their account and delete those accounts from LDAP.
    For this we are using JNDI to search users. Now we are facing two problems:
    1. The users email ids are in the form of List. When we refer this list in To address of Email Template then it gives us an exception: Saying that service not responding, No recepient addresses while in case of hard coded values it runs successfully. I think this is due to that it requires a semicolon(;) seperated list to send email notification. Thats why we thought that we have to use some looping to send the notifications to one user at a time. But if there is any other solution, please suggest.
    2. For the scenario of the users to be deleted, how will we come to know whether after two years the users have been notified successfully??
    This is really urgent. Please suggest any idea regarding the above issues.
    Thanks & Regards
    Gaurav Jain

    The way to do it would be to put your human task inside a while loop. This while loop would set a variable to the approver's userid and would continue till all the four approve it. In your human task you need just one approver and that would be the variable which the while loop sets.
    If you do it this way, then you can use the OOTB notification tab in the .task and select the 'Assignee' as the email notification receiver and you won't have to worry about getting the email ids as well.
    As for the current approach which you have, that is of using the sequential approvers in the human task, I haven't tried it, but just try setting the notification tab in the .task to 'Assignee' and event 'On Assignment'. That should do it as well.
    -Bikash

  • Regarding sending Email as attachment

    Hi guys.
    One unique issue.
    I meed to send a file as an attachment to one perticular address. Got to knowt that some function module like So_attmail would work. But that sends the content as body of the mail. But i want the file to be sent as attachment. Could someone help me this plz.
    If possible also let me know what are the parameters that i need to pass in short.
    Thanks in advance.
    Abhi.

    Hi Abhi,
    Have a look at this example:
    http://www.sap-img.com/abap/sending-email-with-attachment.htm
    http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm
    http://www.sap-img.com/fu016.htm
    1. We can send files with attachment.
    However, There is some trick involved
    in the binary files.
    2. I have made a program (and it works fantastic)
    ONLY 6 LINES FOR EMAILING
    BELIEVE ME
    ITS A FANTASTIC PROGRAM.
    IT WILL WORK LIKE OUTLOOK EXPRESS !
    3. The user is provided with
    a) file name
    b) email address to send mail
    and it sends ANY FILE (.xls,.pdf .xyz..)
    Instantaneously !
    4. Make two things first :
    1. Include with the name : ZAMI_INCLFOR_MAIL
    2. Report with the name : ZAM_TEMP147 (any name will do)
    3. Activate both and execute (2)
    4. After providing filename, email adress
    5. Code for Include :
    10.08.2005 Amit M - Created
    Include For Mail (First Req F16)
    Modification Log
    Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = reclist
    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 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    CODE FOR PROGRAM
    5.
    REPORT zam_temp147 .
    INCLUDE zami_inclfor_mail.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    <b>PS : Reward points if helpful</b>
    Thanks,
    Ramya.

  • Regarding Sending email from Sap system

    hi experts,
    i have developed one object for sending email from sap its working fine onlt to send TO option
    HOW TO SEND MAIL TO CC option
    thanks adv
    reg
    GOPI

    Use:SO_NEW_DOCUMENT_ATT_SEND_API1
    CC field in email using SO_NEW_DOCUMENT_ATT_SEND_API1
    How can I send mail to CC recipients
    Reward points..

  • Regarding sending email alert through RFC

    Hi,
    Iam creating an email alert to my Alert Inbox via RFC when Message mapping error occurs and I created a UDF which contains the following code
    public void UDF_ALERT (String[] message,String[] Category,ResultList result,Container container){
    try {
    Channel channel = LookupService.getChannel("RS6CLNT800","CC_UDFALERT_RFC");
    RfcAccessor accessor= LookupService.getRfcAccessor(channel);
    String rfcxml="<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:SALERT_CREATE xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><IP_APPLICATION_GUID/> <IP_CAT>ALERT_MESSAGE_MAPPING</IP_CAT> <IT_CONTAINER><item><ELEMENT>SXMS_ERROR_CODE</ELEMENT> <TAB_INDEX>0</TAB_INDEX> <ELEMLENGTH>250</ELEMLENGTH> <TYPE>C</TYPE> <VALUE>node not available</VALUE> </item> </IT_CONTAINER></ns0:SALERT_CREATE>"; //Generate XML Structure......
    InputStream inputStream= new ByteArrayInputStream(rfcxml.getBytes());
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    Payload rfcOutPayload = null;
    rfcOutPayload  = accessor.call(payload);
    catch(LookupException e)
              throw new RuntimeException(" Error in raising Alert", e);
    but still Iam not getting mail to my Alert Inbox
    and I created my Alert Category in R/3 system.Is it fine...
    please help me reagrding my UDF and also anything further needs to be done

    hi vikram,
    just see the below blog which explains how to trigger alerts from UDF using RFC(if you didnt see this blog yet)
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    also have a look at the following  links to see how to define alert category, alert rule etc properly
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    To test if your Alerts have been defined correctly, go to SE38.  type RSALERTTEST and then click on execute  it will ask you for your ALERTCATEGORY, give the name of your ALERT CATEGORY and click execute.
    If you configured  alerts properly you will get a message that tells "alert is generated" and will give the ALERT ID.Now, go to RWB open ALERT INBOX and see if you have got the alert message in your ALERT INBOX.
    Kind Regards
    Francis

  • SharePoint Designer Workflow to email multiple recipients listed in a custom list

    Hi all,
    I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the
    form library is created.
    I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".
    Thanks in advance!

    You will not be able to do this specific task with SharePoint Designer workflows.  Like you stated, it can only target a specific value, based on the value in anoter column.  The easiest work-around would be to create a SharePoint security group
    that contains the users, then target that group in the Send Email action.  Just make sure that the group is configured for membership to be visible by all users.  I know it is not ideal to manage information twice, but this is a limitation of SharePoint
    Designer.Chris Caravajal MCTS SharePoint911 Consulting & Support Services

  • How to send the folder url using SharePoint Designer WF??

    Hi,
    i am trying to send the folder url as a email link using SharePoint designer workflow. i already created the WF which is sending the item url attaching with email. is there anyway i can add folder url too, so that once user will click they can see all the
    files in that folder?
    Thanks

    I think you've got a quote in the wrong place, but you're close. 
    Do a 'set workflow variable', and create a new one called whatever - this one was called link
    Add that variable to your email:
     Of course you can set your text to whatever you want. I use this technique to do formatting in email - you can create a pretty complex bit of html in a string variable and insert it into email - Outlook/Exchange will interpret.
    And actually, I think there's another variable, maybe in the workflow context section, that would have your site address, so you wouldn't have to hardcode your https://xxxx.com . 
    Robin

  • Sharepoint Server 2013 not sending Email notification

    I have a Sharepoint 2013 farm that is not sending any kind of email notifications. I also have a Sharepoint 2010 farm whit the same Outgoing Email settings and it is sending emails notifications normaly.
    The SMTP service (the role) is in the same member servers of the 2013 farm, so it is reachable. The timer service is running well in both member servers of the 2013 farm. We don't have an On-premise Exchange enviroment because we use Office 365 (I cannot
    set the sharepoint servers as allowed to relay in Exchange). The 2010 farm and the 2013 farm have the same Outgoing Email settings, I don´t know why the 2013 does not send emails. It is driving me crazy!.
    How can I solve this?
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

    What about Relay and Authentication?
    Trevor Seward, MCC
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
    Look.
    I think this is the correct configuration because it sends emails normaly with SharePoint 2010.
    If I configure my own email account in Outbound Security, Sharepoint 2013 sends emails but just when I login to Sharepoint, if other users login it doesn't send emails.
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

  • Change display name of workflow email address in sharepoint 2010

    Hi
    How I can change display name of workflow email address in sharepoint 2010. I want to configure display name (from address)of email
     for each site collection separately.for example I want to change "software unit"
     in below pic to another name for my software unit site collection.
    How I can do this?
    Thanx.

    Hi,
    According to your post, my understanding is that you want to change display name of workflow email address in sharepoint 2010.
    In my environment, if I assign a task to a user, the email is as below:
    The “test” is the site name, the [email protected] is the “From” user.
    Do you want to change the “From” field in the workflow?
    If so, you can have a look at the "Send email extended" custom SPD workflow activity (http://www.codeplex.com/SPDActivities
    ) which allow you to specify the sender.
    Here are some similar threads for your reference:
    https://social.technet.microsoft.com/Forums/en-US/22d95510-95b7-4882-b988-4038e59fb031/how-to-change-the-display-name-for-sharepoint-emails-sent-using-workflows?forum=sharepointgeneralprevious
    http://sharepoint.stackexchange.com/questions/19186/changing-from-email-address-in-sharepoint-designer-2010-workflows
    http://sharepoint.stackexchange.com/questions/61964/how-to-change-the-from-address-in-feedback-workflow-email
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Send email when ownership is assigned' is not working

    Send email when ownership is assigned'
    is not working
    even though this option is disabled designer workflow task creation sends an email to the user when task is assigned to the user.
    We have october CU updates 2013.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    Per my knowledge, if the task is created from a workflow, then you may use the task actions in the workflow.
    And some task actions will send an email to the user who the task is assigned to, so the email is sent from the workflow and it is not sent from the option “Send email when ownership is assigned”.
    If you are using 2013 workflow, the send email action cannot be prevented from the workflow.
    If you are using 2010 workflow, you can go into the task process to delete the Send an Email action.
    https://support.office.com/en-nz/article/Use-the-task-process-editor-for-approval-workflows-8680b4a4-36b1-441c-b070-e515976078aa#__toc264538566
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • BRFPlus Email action : not triggering emails

    I executed the email action from within a rule set. Simulation shows that email action was called without errors.
    The email was never received in the inbox.
    Q1. Does the direct recipient field expect an email id or the user id?
    Q2. Can we pass in a table of email id's as dynamically determined recipients ?
    Q3. is there some system setting that needs to be active so as to send an email from BRFplus ?

    Hi Pratik,
    The send email action requires an explicit commit to send the mail. In simulation an explicit commit will not be called and hence a mail will not be sent. Please find the answers to your questions below;
    1. The direct reciepient field expects a mailid not the user IDs
    2. You can pass a table of IDs and dynamically determine the recipients
    3. There is a note mentioning the email configuration if it is not donein yur system already. The note number is 455140.
    Hope this helps you.
    Regards,
    Venu

Maybe you are looking for