Smartforms via mails

Dear friends,
I have to send the mails vai my smartforms parameters.
that are...
ARCHIVE_INDEX          type     TOA_DARA
ARCHIVE_INDEX_TAB     TYPE     TSFDARA
ARCHIVE_PARAMETERS     TYPE     ARC_PARAMS
CONTROL_PARAMETERS     TYPE     SSFCTRLOP
MAIL_APPL_OBJ     TYPE     SWOTOBJID
MAIL_RECIPIENT     TYPE     SWOTOBJID
MAIL_SENDER     TYPE     SWOTOBJID
OUTPUT_OPTIONS     TYPE     SSFCOMPOP
USER_SETTINGS     TYPE     TDBOOL
please help me how we can use this paramaters.
Thanks and regards
vivek

hi,
check this:
FORM docu_send_email USING pv_otfdata  TYPE tsfotf
                           pv_emailid  TYPE any
                           pv_formname TYPE any.
  DATA: lv_filesize    TYPE i,
        lv_buffer      TYPE string,
        lv_attachment  TYPE i,
        lv_testo       TYPE i.
  DATA: li_pdfdata  TYPE STANDARD TABLE OF tline,
        li_mess_att TYPE STANDARD TABLE OF solisti1,
        li_mtab_pdf TYPE STANDARD TABLE OF tline,
        li_objpack  TYPE STANDARD TABLE OF sopcklsti1,
        li_objtxt   TYPE STANDARD TABLE OF solisti1,
        li_objbin   TYPE STANDARD TABLE OF solisti1,
        li_reclist  TYPE STANDARD TABLE OF somlreci1,
        li_objhead  TYPE soli_tab.
  DATA: lwa_pdfdata  TYPE tline,
        lwa_objpack  TYPE sopcklsti1,
        lwa_mess_att TYPE solisti1,
        lwa_objtxt   TYPE solisti1,
        lwa_objbin   TYPE solisti1,
        lwa_reclist  TYPE somlreci1,
        lwa_doc_chng TYPE  sodocchgi1.
  CONSTANTS: lc_u           TYPE char1  VALUE 'U',
             lc_0           TYPE char1  VALUE '0',
             lc_1           TYPE char1  VALUE '1',
             lc_pdf         TYPE char3  VALUE 'PDF',
             lc_raw         TYPE char3  VALUE 'RAW',
             lc_ordform     TYPE char15 VALUE 'ZORDCONFIRM_01',
             lc_attachment  TYPE char10 VALUE 'ATTACHMENT'.
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = lc_pdf
      max_linewidth         = 132
    IMPORTING
      bin_filesize          = lv_filesize
    TABLES
      otf                   = pv_otfdata
      lines                 = li_pdfdata
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      OTHERS                = 5.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  LOOP AT li_pdfdata INTO lwa_pdfdata.
    TRANSLATE lwa_pdfdata USING ' ~'.
    CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
    CLEAR lwa_pdfdata.
  ENDLOOP.
  TRANSLATE lv_buffer USING '~ '.
  DO.
    lwa_mess_att = lv_buffer.
    APPEND lwa_mess_att TO li_mess_att.
    CLEAR lwa_mess_att.
    SHIFT lv_buffer LEFT BY 255 PLACES.
    IF lv_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
Object with PDF.
  REFRESH li_objbin.
  li_objbin[] = li_mess_att[].
  DESCRIBE TABLE li_objbin LINES lv_attachment.
Object with main text of the mail.
  lwa_objtxt = space.
  APPEND lwa_objtxt TO li_objtxt.
  CLEAR lwa_objtxt.
  DESCRIBE TABLE li_objtxt LINES lv_testo.
Create the document which is to be sent
  lwa_doc_chng-obj_name  = text-008.
  lwa_doc_chng-obj_descr = text-008.
  lwa_doc_chng-sensitivty = lc_0.
  lwa_doc_chng-obj_prio = lc_1.
  lwa_doc_chng-doc_size = lv_testo * 225.
Pack to main body.
  CLEAR lwa_objpack-transf_bin.
header
  lwa_objpack-head_start = 1.
The document needs no header (head_num = 0)
  lwa_objpack-head_num   = 0.
body
  lwa_objpack-body_start = 1.
  lwa_objpack-body_num   = lv_testo.
  lwa_objpack-doc_type   = lc_raw.
  APPEND lwa_objpack TO li_objpack.
  CLEAR lwa_objpack.
Create the attachment.
Fill the fields of the packing_list for the attachment:
  lwa_objpack-transf_bin = gc_x .
header
  lwa_objpack-head_start = 1.
  lwa_objpack-head_num   = 1.
body
  lwa_objpack-body_start = 1.
  lwa_objpack-body_num   = lv_attachment.
  lwa_objpack-doc_type   = lc_pdf.
  lwa_objpack-obj_name   = lc_attachment.
  lwa_objpack-obj_descr  = text-008.
  lwa_objpack-doc_size =  lv_attachment * 255.
  APPEND lwa_objpack TO li_objpack.
  CLEAR lwa_objpack.
  lwa_reclist-receiver   = pv_emailid.
  lwa_reclist-rec_type   = lc_u.
  lwa_reclist-notif_del  = gc_x.
  lwa_reclist-notif_ndel = gc_x.
  APPEND lwa_reclist TO li_reclist.
  IF li_reclist IS NOT INITIAL.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = lwa_doc_chng
        put_in_outbox              = gc_x
      TABLES
        packing_list               = li_objpack
        object_header              = li_objhead
        contents_bin               = li_objbin
        contents_txt               = li_objtxt
        receivers                  = li_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 sy-msgid TYPE 'I' NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
ENDFORM.                    " DOCU_SEND_EMAIL

Similar Messages

  • Sapscript/Smartform via mail with PDF attachment: logo is missing

    Hi all
    I'm implementing my function to send Sapscript/smartform via mail.
    I need to do it because when a message needs to be sent, I have to insert the message as attachment but also to add a text in the body mail.
    So I've just created a simple sapscript having a logo (as graphic) and a little text.
    I use the fm CONVERT_OTF to convert the OTF to PDF format and the following code to increase the pdf string from 132 to 255 char:
    LOOP AT t_pdf.
          TRANSLATE t_pdf USING ' ~'.
          CONCATENATE l_buffer t_pdf INTO l_buffer.
        ENDLOOP.
        TRANSLATE l_buffer USING '~ '.
        DO.
          MOVE l_buffer TO l_attachment.
          APPEND l_attachment TO x_attachment.
          SHIFT l_buffer LEFT BY 255 PLACES.
          IF l_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
    All seem to work fine, but as soon as I open the pdf file attached to the mail I can't see the logo
    So after calling fm CONVERT_OTF, I've created a pdf file by method GUI_DOWNLOAD, and then upload this file (by GUI_UPLOAD) into internal table for attachment and send the mail.
    Now really all work very fine, becaus I can see the logo
    Of course I don't want to dowload the file before sending a mail, but I need to send my print directly as pdf attachment
    The two ways seem to be equal, they use the same print and the same functions, only the way to upload the internal table for attachment is different:
    1) tha abap code above to expand the line from 132 to 255
    2) the method GUI_UPLOAD
    So something seems to be wrong in the first way because ithe logo is missing in the pdf attachment generated for the mail
    Max

    Hi
    I'm not working on unicode system, anyway I didn't see that parameter BIN_FILE, so I didn't use it
    I've read the note 1324547 and I've done just as it explaines: now works fine
    I don't know why it doesn't work with old manner (i.e data is treated as character-type), but it worls with the new one (If the data is treated as xstring-type)
    I can only suppose the data are corrupted while being elaborated for expand to 255 char....but I don't why
    Anyway your suggestion works for me
    Thank
    Max

  • Need to send the logo in smartform via mail.

    Hi All,
    I have smartform with the company logo uloaded. I have requirement to send the smartform with logo output via mail .
    Points will be rewarded....
    thanks,
    mahantesh

    hi,
    1. check if are getting the logo in the print preview, ifso
    2. use the following piece of code to send the mail (by converting otf to pdf)
    *For sending email
    DATA:
      i_otf type  standard table of itcoo ,"OCCURS 0 WITH HEADER LINE,
      i_tline type table of tline with header line,
      i_receivers type standard table of somlreci1 ,
      i_record type table of solisti1 initial size 0 with header line,
    Objects to send mail.
      i_objpack type table of sopcklsti1 initial size 0 with header line,
      i_objtxt type table of solisti1 initial size 0 with header line,
      i_objbin type table of solisti1 initial size 0 with header line,
      i_reclist type table of somlreci1 initial size 0 with header line,
    Work Area declarations
      wa_objhead type soli_tab,
      w_ctrlop type ssfctrlop,
      w_compop type ssfcompop,
      w_return type ssfcrescl,
      wa_doc_chng type sodocchgi1,
      wa_buffer type string, "To convert from 132 to 255
    Variables declarations
      v_len_in like sood-objlen,
      v_lines_txt type i,
      v_lines_bin type i.
      clear v_len_in.
      i_otf[] = w_return-otfdata[].
      clear v_len_in.
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
          max_linewidth         = 132
        importing
          bin_filesize          = v_len_in
        tables
          otf                   = i_otf
          lines                 = i_tline
        exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          others                = 4.
      if sy-subrc eq 0.
        loop at i_tline.
          translate i_tline using '~'.
          concatenate wa_buffer i_tline into wa_buffer.
        endloop.
        translate wa_buffer using '~'.
        do.
          i_record = wa_buffer.
          append i_record.
          shift wa_buffer left by 255 places.
          if wa_buffer is initial.
            exit.
          endif.
        enddo.
    Attachment
        refresh: i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
        clear wa_objhead.
        i_objbin[] = i_record[].
    Create Message Body Title and Description
        i_objtxt = 'PFA are the Service Entry Sheet details.'.
        append i_objtxt.
        append initial line to i_objtxt.
        describe table i_objtxt lines v_lines_txt.
        read table i_objtxt index v_lines_txt.
        wa_doc_chng-obj_name = 'Service Entry Sheet '.
        wa_doc_chng-expiry_dat = sy-datum + 10.
        wa_doc_chng-sensitivty = 'F'.
        wa_doc_chng-doc_size = v_lines_txt * 255.
        concatenate 'Service Entry Sheet' nast-objky(10) into wa_doc_chng-obj_descr separated by space.
    Main Text
        clear i_objpack-transf_bin.
        i_objpack-head_start = 1.
        i_objpack-head_num = 0.
        i_objpack-body_start = 1.
        i_objpack-body_num = v_lines_txt.
        i_objpack-doc_type = 'RAW'.
        append i_objpack.
    Attachment (pdf-Attachment)
        i_objpack-transf_bin = 'X'.
        i_objpack-head_start = 1.
        i_objpack-head_num = 0.
        i_objpack-body_start = 1.
        describe table i_objbin lines v_lines_bin.
        read table i_objbin index v_lines_bin.
        i_objpack-doc_size = v_lines_bin * 255 .
        i_objpack-body_num = v_lines_bin.
        i_objpack-doc_type = 'PDF'.
        i_objpack-obj_name = 'smart'.
        i_objpack-obj_descr = 'Service Entry Sheet '.
        append i_objpack.
    Get email id .
                  clear i_reclist.
                  i_reclist-receiver = '[email protected]'. "email address
                  i_reclist-rec_type = 'U'.
                  append i_reclist.
        if i_reclist[] is not initial.
          call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            exporting
              document_data              = wa_doc_chng
              put_in_outbox              = 'X'
              commit_work                = 'X'
            tables
              packing_list               = i_objpack
              object_header              = wa_objhead
              contents_bin               = i_objbin
              contents_txt               = i_objtxt
              receivers                  = i_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.
       Error When Sending the File
            retcode = sy-subrc.
            perform protocol_update1 .
          endif.
        endif.
      else.
       Error When generating the File
        retcode = sy-subrc.
        "perform protocol_update .
      endif.
    Reward if u find it useful
    Regards
    Arun T

  • Sending Smartform via Mail as PDF

    Hi at all,
    how can I realize the sending of a smartform as a PDF file via Mail as attachment?
    This is the functiom module I call:
          IF p_mail EQ 'X' AND p_adress IS NOT INITIAL.
            CLEAR: wa_ssfcompop,
                   wa_ssfctrlop,
                   ls_tab_otf_data.
            wa_ssfcompop-tdprinter    = 'PDF1'.
            wa_ssfctrlop-langu        = 'D'.
            wa_ssfctrlop-no_dialog    = 'X'.       "KEIN DIALOG
            wa_ssfctrlop-preview      = 'X'.
            wa_ssfctrlop-getotf       = 'X'.          "NUR DAS OTF IST INTERESSANT
          ENDIF.
    CALL FUNCTION fm_name                                     "'/1BCDWB/SF00000033'
            EXPORTING
              output_options             = wa_ssfcompop
              control_parameters         = wa_ssfctrlop
              user_settings              = space
    *         im_redat_von               = so_redat-low
    *         im_redat_bis               = so_redat-high
              im_beleg_waers             = rb_beleg             "DV_M964
              im_sum                     = p_summe              "DV_M1464
              im_wert                    = p_ertrag             "DV_M1464
              im_stueck                  = p_stueck             "DV_M1464
              im_period                  = p_monat              "DV_M1464
            IMPORTING
    *         DOCUMENT_OUTPUT_INFO       =
              job_output_info            = ls_tab_otf_data      "DV_M1464
              job_output_options         = wa_ssfcompop2        "FE 20100429
            TABLES
              i_umsatz                   = it_umsatz_ergebnis
              i_faknr                    = it_faknr
            EXCEPTIONS
              formatting_error           = 1
              internal_error             = 2
              send_error                 = 3
              user_canceled              = 4
              OTHERS                     = 5
    After this I have a otf string that I convert with the following coding:
    lt_tab_otf_final[] = ls_tab_otf_data-otfdata[].
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lv_filesize
          bin_file              = lv_file
        TABLES
          otf                   = lt_tab_otf_final
          lines                 = lt_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
    But now I am stuck. How can I send this xString to the next function module? The other structures / tables are still filled, only the it_attachment has to be filled, but how?
    wa_receivers-receiver = p_adress.
      wa_receivers-rec_type = 'U'.
      APPEND wa_receivers TO it_receivers.
      CONCATENATE 'Umsatznachweis Druck' sy-datum sy-uzeit INTO wa_document_data-obj_descr SEPARATED BY space.
      wa_message = 'Dies ist ein Test'.
      APPEND wa_message TO it_message.
      wa_packing_list-transf_bin = space.
      wa_packing_list-head_start = 1.
      wa_packing_list-head_num   = 0.
      wa_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES wa_packing_list-body_num.
      wa_packing_list-doc_type = 'RAW'.
      APPEND wa_packing_list TO it_packing_list.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data                    = wa_document_data
          put_in_outbox                    = 'X'
    *      sender_address                   = sy-uname
    *      sender_address_type              = 'B'
          commit_work                      = 'X'
    *    IMPORTING
    *      SENT_TO_ALL                      =
    *      NEW_OBJECT_ID                    =
    *      SENDER_ID                        =
        TABLES
          packing_list                     = it_packing_list
    *      OBJECT_HEADER                    =
    *      CONTENTS_BIN                     =
          contents_txt                     = it_message
          contents_hex                     = it_attachment
    *      OBJECT_PARA                      =
    *      OBJECT_PARB                      =
          receivers                        = it_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.

    Hi,
        After
              CALL FUNCTION 'CONVERT_OTF'
                EXPORTING
                  format                = 'PDF'
                  max_linewidth         = 132
                  archive_index         = ' '
                  copynumber            = 0
                  ascii_bidi_vis2log    = ' '
                  pdf_delete_otftab     = ' '
                IMPORTING
                  bin_filesize          = ls_bin_file
                  bin_file              = bin_file   <-- get this
    Convert this to string ...
      DATA : lv_strlen TYPE i.
      DATA : it_raw    TYPE STANDARD TABLE OF char255,
             ia_raw    TYPE char255.
      lv_strlen = STRLEN( bin_file ).
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer                = bin_file
        APPEND_TO_TABLE       = ' '
       IMPORTING
         output_length         = lv_strlen
        TABLES
          binary_tab            = it_raw.
      CALL FUNCTION 'QCE1_CONVERT'
        TABLES
          t_source_tab = it_raw
          t_target_tab = lt_objbin.
    *call the FM ... to send mail ..
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data          = lv_doc_chng
       put_in_outbox          = 'X'
            commit_work            = 'X'
          TABLES
            packing_list           = lt_objpack
            object_header          = lv_objhead
            contents_txt           = lt_objtxt
            contents_bin           = lt_objbin
            receivers              = lt_reclist
          EXCEPTIONS
            document_not_sent      = 1
            OTHERS                 = 2.
    Regards,
    Srini.

  • Smartforms in pdf and send via mails

    Dear friends
    I have to send the smartforms via mail.
    but only have a preview of the smartform.
    please help.
    no spool no is generated.
    please help.
    thanks and reagrds
    vivek

    Hi Vivek,
    After the FM 'SSF_FUNCTION_MODULE_NAME' and fm_name,
    Change  smartform preview formate(OTF) to PDF . call FM.
    *---Function module to convert OTF data to PDF data format
            call function 'CONVERT_OTF'
              exporting
                format        = 'PDF'
                max_linewidth = 132
              importing
                bin_filesize  = l_v_pdf_size     "l_v_pdf_size    type i,
              tables
                otf           = l_it_otf_data         "l_it_otf_data   type standard table of itcoo initial size 0,
                lines         = l_it_pdf_data.      "l_it_pdf_data   type standard table of tline,
    then
    *---Function module to chnage width of PDF file to 255
            call function 'SX_TABLE_LINE_WIDTH_CHANGE'
              exporting
                line_width_dst              = '255'
              tables
                content_in                  = l_it_pdf_data[]
                content_out                 = l_it_pdf[]
              exceptions
                err_line_width_src_too_long = 1
                err_line_width_dst_too_long = 2
                err_conv_failed             = 3
                others                      = 4.
    and finelly.
    *---Function module to send mail
            call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
              exporting
                document_data              = l_wa_doc_chng 
                put_in_outbox              = c_check
                commit_work                = c_check
              tables
                packing_list               = l_it_objpack
                object_header              = l_wa_objhead
                contents_bin               = l_it_pdf
                receivers                  = l_it_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.
    Thanks.
    Mona.
    Edited by: Mona Singh on Dec 4, 2008 3:06 PM

  • Smartforms: send form via mail

    Hi,
    I need help at filling structure of MAIL_SENDER, MAIL_RECIPIENT and MAIL_APPL_OBJ. Exist any Functionmodule for filling this field for sending forms with smartforms via  email. How/where can I get the parameters info for  MAIL_SENDER,MAIL_RECIPIENT and MAIL_APPL_OBJ?
    Regards
    Hüsniye

    Here is an example to add text and to put a name to the attached file.
    ... Before that Get OTF ...
    CLEAR: reclist, reclist[],
             objhead, objhead[],
             objtxt,  objtxt[],
             objbin,  objbin[],
             objpack, objpack[].
    Create the PDF File
      CLEAR objbin.
      REFRESH objbin.
      objbin[] = it_mess_att[].
      DESCRIBE TABLE objbin LINES righe_attachment.
    Text in the mail.
      objtxt = 'Text - Line 1'.APPEND objtxt.
      objtxt = 'Text - Line 2'.APPEND objtxt.
      objtxt = 'Text- Line 3'.APPEND objtxt.
      DESCRIBE TABLE objtxt LINES righe_testo.
    Armo informacion del documento.
      doc_chng-obj_name = 'URGENT'.
      doc_chng-expiry_dat = sy-datum + 10.
      CONCATENATE 'FILE_NAME' 'HELLO'
                  INTO doc_chng-obj_descr SEPARATED BY space.
      doc_chng-sensitivty = 'F'.
      doc_chng-doc_size = righe_testo * 255.
    Create Pack to text in mail body.
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = righe_testo.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    Create Pack to PDF Attach.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = 1.
      objpack-body_num = righe_attachment.
      objpack-doc_type = 'PDF'.
      objpack-obj_name = 'TEST'.
      CONCATENATE 'File Name' '.pdf'
                  INTO objpack-obj_descr.
      objpack-doc_size = righe_attachment * 255.
      APPEND objpack.
      CLEAR reclist.
      reclist-copy = 'X'.
    Receivers
      reclist-receiver = '[email protected]'
      reclist-express = 'X'.
      reclist-rec_type = 'U'.
      reclist-notif_del = 'X'.  " request delivery notification
      reclist-notif_ndel = 'X'. " request not delivered notification
      APPEND reclist.
    Send Mail.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_hex               = objbin
          contents_txt               = objtxt
          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.
    Regards
    PabloX

  • Send smartforms via email using action profiles

    hi,
    i am trying to send smartforms via email using action profiles and i would like to know if anyone has any document or know any steps to do the same. i have created the smartform and i created the action in an action profile. i selected the option "Smartforms Mail". and i have mentioned my smartform in it.
    I have previously worked with action profiles to trigger workflows which sent a mail. That was relatively easier as i could mention that the mail be sent to my mailbox. But in the smartforms option, i dont know how to give the instruction that it be sent to my mailbox.. is there any place i can set it? The action is not person dependant and is done whenever saving a document.
    Please guide.
    Thanks,
    Nisha

    Hi Nisha,
    As u worked on Action profiles, i recommend u use action profile with permitted Process type as Smart Forms Mail to send the mails which contains the data in Smartform u created.
    Use below mail setting
    Form Name              (u r ZSmartform)
    Processing Class      CL_DOC_PROCESSING_CRM_ORDER
    Processing Method    CRM_ACTIVITY_EXEC_SMART_FORM
    Archive Mode            1 Mail only User
    In Action definition details u can mentioned the Processing time, Partner dependent for action to who u want to send the mail, further in action condition using schedule and start condition u can set the criteria to mail trigger.
    Hope it'll help u.
    Regards,
    Dipesh.

  • Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.

    Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.

    Hi there
    I'll pass your details to our Russian team and they'll contact you to assist further.
    Kind regards
    Bev

  • Report to send a List via mail

    Hi everybody,
    at the moment we hava a report which we have to start every day to generate a customer List. Via SAP Office we can send this list via email to a specific person. Now I like to automate this report and start it as a job which automativly send this list via mail.
    Do you have an idea how this will work?
    Thanks a lot for your help.
    Kind regards
    Christian

    Hi Christian.
    You could put the lines of your list in a table of type SOLISTI1 and then use the function module SO_NEW_DOCUMENT_SEND_API1 to send the content of this table. You have to fill the table RECEIVERS with the address you want to send the report to.
    Hope that helps,
    Timo.

  • I want to email a Pages document as a Word doc. I used to be able to do this by clicking on share then send via mail then on Word and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    I want to email a Pages document as a Word doc. I used to be able to do this by clicking on 'share' then 'send via mail' then on 'Word' and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    It's difficult to do more than guess when you don't say what version of OS X or Pages you're running, but if you're on the latest, have you tried the Share menu -> Send via Mail command?
    If that doesn't help, you may have better luck if you ask in the Pages forum:
    Pages
    When you repost, be sure to include full details about your versions so that people know what it is you're working with.
    Regards.

  • Error to send a report via mail with BI Publisher

    Hello,
    I am working with BIP 10.1.3.4 over Windows Server 2003 Standard Edition, and I would like to send a report via mail.
    I added one Email server navigation via Admin>Delivery Configuration > Email with the server name and host.
    Then Send report via Email, got error.
    oracle.apps.xdo.service.delivery.DeliveryException: oracle.apps.xdo.delivery.DeliveryException: smtp
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:228)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1190)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: oracle.apps.xdo.delivery.DeliveryException: smtp
         at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(Unknown Source)
         at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:222)
         ... 4 more
    Caused by: javax.mail.NoSuchProviderException: smtp
         at javax.mail.Session.getService(Session.java:764)
         at javax.mail.Session.getTransport(Session.java:689)
         at javax.mail.Session.getTransport(Session.java:632)
         at javax.mail.Session.getTransport(Session.java:612)
         ... 7 more
    I have followed this SR, and I applied the solution, but it isn't solved the issue (ID: 1072742.1)
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome%28page=KBHome&id=%28%29%29,%28page=KBNavigator&id=%28from=BOOKMARK&viewingMode=1143&bmDocTitle=BI%20Publisher%20With%20JDE%20Fails%20To%20Send%20Email,%20Error:%20javax.mail.NoSuchProviderException:&bmDocID=1072742.1&bmDocType=PROBLEM&bmDocDsrc=KB%29%29
    Regards,
    Mónica.

    Hi Christian.
    You could put the lines of your list in a table of type SOLISTI1 and then use the function module SO_NEW_DOCUMENT_SEND_API1 to send the content of this table. You have to fill the table RECEIVERS with the address you want to send the report to.
    Hope that helps,
    Timo.

  • How can i send multiple videos and photos, via mail, at the same time?

    you allowed to send only one video or 10(+) photos via mail.
    but can you send both at the same time? so 10(+) photos and a video (or more than one) in one mail?
    because if my mom has birthday pictures or something like that. She likes to be able to send it directly from her iphone to every person she knows in just one mail.
    anyone any tips or tricks?

    Those restrictions are generally part of the email provider, not just the phone. Attachments are restricted due to size, bandwith use, etc. Trying to send that much information in an email attachment is even restricted on a computer. Sharing via photo sites is generally a better option for large amounts of pictures and large video files.

  • Gmail no longer working via Mail in Mountain Lion

    Not sure what the problem is, but can only imagine ML is in some way involved.
    Gmail stopped working via mail (not immediately after upgrade to ML, but a few days later).
    First, kept asking for PW, which it decalred to be invalid. I tried restarting, to no avail. All was working fine via mail on iPad 2 and iPhone 4, plus no problem logging into web version of gmail.
    I decided to try deleting the whole gmail account on the MBP, closing mail, and restarting, but this has now resulted in me not being allowed to set up my gmail acocunt at all, since (via SysPref) I am told the gmail username/PW is invalid, so my MBP is now completely incapable of accessing any of the family of services from gmail (incl gCal etc.). But all remains aOK via iOS / gmail via web.
    Can anyone suggest a fix? I've looked around the various discussions and although some people say they are having need to try gamil tweaks now, with Mail, none of the solutions I saw seem to work for my case.
    I am using the correct gmail address (i.e. there's no conflice re @googlemail vs @gmail) - this seemed to have been a problem for some people, but not in this case.

    Troubleshooting sending and receiving email messages

  • Share via Mail not working after Yosemite upgrade

    Hi all,
    I recently upgraded from Lion to Yosemite and now I cannot use the Send via Mail option in Pages (or Numbers for that matter).
    I searched for this already in another tread but the answer (permission repair) did not work. The Exporting option still works, although it wants to save the file in a strange location, namely LIBRARY - CACHES - CLEANUP AT STARTUP - COM.APPLE.IWORK.PAGES.8572.TEMP.XXXXXXX    instead in DOCUMENTS or DESKTOP.
    Any and all advice on this small but annoying inconvenience is welcome :-)
    Thanks
    Ray

    Pages '09 v4.3 has lost this capability on Yosemite. Export to desired document format, and then drag/drop into Mail body.

  • How to Send Appointment via mail adapter

    Hi Guys,
         I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
    This is payload content of appointment which got from Exchange server to gmail:
    _=_NextPart_001_01C71EC0.97A011C6
    Content-Type: text/plain;
        charset="GB2312"
    Content-Transfer-Encoding: quoted-printable
    When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
    Where: China
    ~*~*~**
    This is calendar content
    _=_NextPart_001_01C71EC0.97A011C6
    Content-class: urn:content-classes:calendarmessage
    Content-Type: text/calendar;
        method=REQUEST;
        name="meeting.ics"
    Content-Transfer-Encoding: 8bit
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0100
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0200
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20061213T141132Z
    DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
    SUMMARY:This is calendar test
    UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
    010000000CA9F127EA8947844BC4DD47F269BDEA9
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
    ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
    LOCATION:Shanghai
    DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
    DESCRIPTION:This is calendar content\N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20061213T141132Z
    LAST-MODIFIED:20061213T141133Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    X-MICROSOFT-CDO-OWNERAPPTID:367904726
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
    END:VEVENT
    END:VCALENDAR
    _=_NextPart_001_01C71EC0.97A011C6--
    My question is
      1. How to generate this kind of payload in mail adapter module?
      2. It is possible to send appointment via mail adapter?
    Following i can get from other system, even using mail package check or not using mail package check.
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+08.00) Kuala Lumpur/Singapore
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20070608T025852Z
    DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
    SUMMARY:This is meeting request with attachment
    UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
    010000000C5E16D144D1612498C0EF7E2115EFEC4
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
    ":MAILTO:roc*@**
    ORGANIZER;CN="Xu,y":MAILTO:roc*@**
    LOCATION:India labs
    DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
    DESCRIPTION:This is content!  &#60;&#60;shanghai.txt&#62;&#62; \N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20070608T025925Z
    LAST-MODIFIED:20070618T033505Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
    X-MICROSOFT-CDO-OWNERAPPTID:1468557271
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
    END:VEVENT
    END:VCALENDAR
    Thanks & regards
    Rocky

    Hi
    have a look at this
    You can use Java/ABAP proxies to do this job for you..
    Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
    Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
    If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
    Thanks

Maybe you are looking for