Email Links In Smartforms emailed as a PDF

All,
I have written a program that creates a smartform as a PDF attachment which gets sent as an email. Part of the content contains URL's for the recipient to click and navigate to an page on our erecruitment system. The problem is that the url is over a line long and does not look very user friendly.
What i would like to do is have the words "click here" appear as a link so when the user clicks on it, it will take them to the correct url. My question is how do I make those words appear with the correct URL behind it?
thanks
Shippy

Hi,
this can be achieved by using a replacement function module. This module writes the url and the link text which shall appear in the document in a global buffer. If you then write the link text in the smartform (directly or from a variable) and mark this as link the smartform processing automatically puts the ur behind the link.
In the output_options parameter of the smartfor there is a field urlcall this field has to be filled. As function module you can use HR_RCF_SF_URL_CALLBACK. As function module to set the link texts / url pairs to the context use HR_RCF_SF_URL_PREPARE_CALLBACK.
Best regards
Roman

Similar Messages

  • Email Invoice as PDF

    Hi folks,
    I'm trying to send a sapscript/smartform invoice as a PDF attached to an email.  I've been reading a number of posting on this topic but it is still unclear to me how to get this to work.  (R/3 4.7)
    I need to setup a new output type with transmission media 5.  Is that correct?  The email address will be pulled from the customer's master data record.  Correct?
    What do I use as the processing routine?  Do I have to create a custom routine?
    Do I need to define a communications strategy with communication type INT?
    As I understand it, the system will automatically convert to PDF as long as SCOT is configured that way (default). 
    What else am I missing?
    Thanks everyone,
    Clint

    Hi,
    1.No need to create the custom routine.
      2.The system default cann't generate the PDF.It generates OTF , Format.
      3.We need to convert the OTF into PDF.
      4.You have to maintain the Email in SCOT.
    The following is the code for sending through mail for script:
    Best LInk:
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
    Observe this:
    REPORT Z_SCRIPT .
    DATA: itcpo LIKE itcpo,
    tab_lines LIKE sy-tabix.
    Variables for EMAIL functionality
    DATA: maildata LIKE sodocchgi1.
    DATA: mailpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    DATA: mailbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: mailtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: mailrec LIKE somlrec90 OCCURS 0 WITH HEADER LINE.
    DATA: solisti1 LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    *PERFORM send_form_via_email.
    FORM SEND_FORM_VIA_EMAIL *
    FORM send_form_via_email.
    CLEAR: maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
    REFRESH: mailtxt, mailbin, mailpack, mailhead, mailrec.
    Creation of the document to be sent File Name
    maildata-obj_name = 'TEST'.
    Mail Subject
    maildata-obj_descr = 'Subject'.
    Mail Contents
    mailtxt-line = 'Here is your file'.
    APPEND mailtxt.
    Prepare Packing List
    PERFORM prepare_packing_list.
    Set recipient - email address here!!!
    mailrec-receiver = 'email.COM'.
    mailrec-rec_type = 'U'.
    APPEND mailrec.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = maildata
    put_in_outbox = ' '
    TABLES
    packing_list = mailpack
    object_header = mailhead
    contents_bin = mailbin
    contents_txt = mailtxt
    receivers = mailrec
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99.
    ENDFORM.
    Form PREPARE_PACKING_LIST
    FORM prepare_packing_list.
    CLEAR: mailpack, mailbin, mailhead.
    REFRESH: mailpack, mailbin, mailhead.
    DESCRIBE TABLE mailtxt LINES tab_lines.
    READ TABLE mailtxt INDEX tab_lines.
    maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
    Creation of the entry for the compressed document
    CLEAR mailpack-transf_bin.
    mailpack-head_start = 1.
    mailpack-head_num = 0.
    mailpack-body_start = 1.
    mailpack-body_num = tab_lines.
    mailpack-doc_type = 'RAW'.
    APPEND mailpack.
    Creation of the document attachment
    This form gets the OTF code from the SAPscript form.
    If you already have your OTF code, I believe that you may
    be able to skip this form. just do the following code, looping thru
    your SOLISTI1 and updating MAILBIN.
    PERFORM get_otf_code.
    LOOP AT solisti1.
    MOVE-CORRESPONDING solisti1 TO mailbin.
    APPEND mailbin.
    ENDLOOP.
    DESCRIBE TABLE mailbin LINES tab_lines.
    mailhead = 'TEST.OTF'.
    APPEND mailhead.
    Creation of the entry for the compressed attachment
    mailpack-transf_bin = 'X'.
    mailpack-head_start = 1.
    mailpack-head_num = 1.
    mailpack-body_start = 1.
    mailpack-body_num = tab_lines.
    mailpack-doc_type = 'OTF'.
    mailpack-obj_name = 'TEST'.
    mailpack-obj_descr = 'Subject'.
    mailpack-doc_size = tab_lines * 255.
    APPEND mailpack.
    ENDFORM.
    Form GET_OTF_CODE
    FORM get_otf_code.
    DATA: BEGIN OF otf OCCURS 0.
    INCLUDE STRUCTURE itcoo .
    DATA: END OF otf.
    DATA: itcpo LIKE itcpo.
    DATA: itcpp LIKE itcpp.
    CLEAR itcpo.
    itcpo-tdgetotf = 'X'.
    Start writing OTF code
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = 'Z08V3_COLLI'
    language = sy-langu
    options = itcpo
    dialog = ' '
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'START_FORM'
    EXCEPTIONS
    error_message = 01
    OTHERS = 02.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    window = 'MAIN'
    EXCEPTIONS
    error_message = 01
    OTHERS = 02.
    Close up Form and get OTF code
    CALL FUNCTION 'END_FORM'
    EXCEPTIONS
    error_message = 01
    OTHERS = 02.
    MOVE-CORRESPONDING itcpo TO itcpp.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    result = itcpp
    TABLES
    otfdata = otf
    EXCEPTIONS
    OTHERS = 1.
    Move OTF code to structure SOLI form email
    CLEAR solisti1. REFRESH solisti1.
    LOOP AT otf.
    solisti1-line = otf.
    APPEND solisti1.
    ENDLOOP.
    ENDFORM
    Below points is for ur testing purpose.
    U can check the status of the mail in the transaction SOST.
    Execute this transaction for the date range. If the traffic light is in yellow colour then do like this.
    Utilities->Start send process->Give trans method as INT and press enter. Mail will go immediately.
    If the above logic don't work for u then TRY FM SO_OBJECT_SEND for sending mail.
    for Smartform converting the OTF to PDF:
    REPORT zsuresh_test.
    Variable declarations
    DATA:
    w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
    w_fmodule TYPE rs38l_fnam,
    w_cparam TYPE ssfctrlop,
    w_outoptions TYPE ssfcompop,
    W_bin_filesize TYPE i, " Binary File Size
    w_FILE_NAME type string,
    w_File_path type string,
    w_FULL_PATH type string.
    Internal tables declaration
    Internal table to hold the OTF data
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    Internal table to hold OTF data recd from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    This function module call is used to retrieve the name of the Function
    module generated when the SMARTFORM is activated
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 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.
    ENDIF.
    Calling the SMARTFORM using the function module retrieved above
    GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    format of the output
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
    " for print preview
    w_cparam-getotf = 'X'.
    Printer name to be used is provided in the export parameter
    OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
    CALL FUNCTION w_fmodule
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = w_cparam
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = w_outoptions
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 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.
    t_otf] = t_otf_from_fm-otfdata[.
    Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    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.
    To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
    WINDOW_TITLE =
    DEFAULT_EXTENSION =
    DEFAULT_FILE_NAME =
    FILE_FILTER =
    INITIAL_DIRECTORY =
    WITH_ENCODING =
    PROMPT_ON_OVERWRITE = 'X'
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    USER_ACTION =
    FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    others = 4
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = T_pdf_tab
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    If helpful give points(Don't forget)

  • Email attachment in PDF problem with Images

    Hi All,
    Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
    Regards,
    Lakshmikanth.

    Hi All,
    Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
    Regards,
    Lakshmikanth.

  • How do I email an attached pdf file to stationary templates in mail.

    How do I email an attach PDF file using the stationary templates in mail on lion.
    I attached the PDF but when try to send it I get back a dialog box that sez:
    "This message cannot be sent because it uses stationery and contains attachments that are not images. Messages with stationery cannot contain attachments that aren’t images. You can cancel and return to editing the message or remove the stationery in order to send." My choice is to cancel or remove stationary.
    Is there a third party solution? Any suggestion?

    No
    Envoyé depuis Molto pour iPad
    De: pwillener
    Envoyé: jeudi, février 12, 2015 07:14 AM
    À: René Allamelle
    Objet:  how do I compress a large pdf file to fit in an email?
    how do I compress a large pdf file to fit in an email?
    created by pwillener in Adobe Acrobat.com Services - View the full discussion
    But generally it is never a good idea to send e-documents as email attachments.  Better use a file sharing service (Acrobat.com, Dropbox, Google Drive, Microsoft OneDrive, ..), upload the document, then send the shared download link via email.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187079#7187079 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187079#7187079
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Emailing Form in PDF format instead on xml? -need help!-

    I have a webpage that has a link that directs customers to a pdf form I created with Adobe Designer 7.0 and when the customer is done filling out their information in the form and click's the submit email button. It comes to my inbox in an .xml! is there a way I can have it to where the file comes as a .pdf or can I jus convert the .xml into a word .doc or .pdf?
    -Thank You SOoo Much!-

    Hi Rochelle,
    The forums are here to help all those in need, but Daniel has a point - this specific question has been posed countless times, and a search would have revealed that. None the less, I hope you find this helpful:
    In your form, do as follows:
    Add a button (not the email submit button, just the "button").
    Set the Control type to 'Submit' (under your Object tab).
    On the Submit tab (under your Object tab), add "mailto:[email protected]" in the Submit to URL box.
    Change the 'Submit As' drop down to 'PDF' (your other options are XML, XDP and FDF).
    Save the form.
    Zoe

  • FM to send an email with a PDF attachment

    Hello All,
        Please suggest me some FMs to send an email along with PDF attachment.
    Thanks,

    DATA: i_otf       TYPE itcoo OCCURS 0 WITH HEADER LINE,
          i_tline     TYPE TABLE OF tline WITH HEADER LINE,
          i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
          i_record    LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    * Objects to send mail.
          i_objpack   LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
          i_objtxt    LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objbin    LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_reclist   LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    **************Work Area declarations***********************
          w_objhead   TYPE soli_tab,
          w_ctrlop    TYPE ssfctrlop,
          w_compop    TYPE ssfcompop,
          w_return    TYPE ssfcrescl,
          w_doc_chng  TYPE sodocchgi1,
          w_data      TYPE sodocchgi1,
          w_buffer    TYPE string."To convert from 132 to 255
    data:     v_len_in     TYPE sood-objlen,
         v_len_out    TYPE sood-objlen,
         v_len_outn   TYPE i,
         v_lines_txt  TYPE i,
         v_lines_bin  TYPE i.
    start-of-selection.
      w_ctrlop-getotf    = gv_abaptrue.
      w_ctrlop-no_dialog = gv_abaptrue.
      w_compop-tdnoprev  = gv_abaptrue.
    PERFORM call_smartform.
      PERFORM convert_to_otf_format.
      PERFORM pdf_formatting.
      PERFORM build_mail_format.
      PERFORM send_mail.
    form call_smartform.
    DATA:fm_name  TYPE rs38l_fnam.
      DATA:formname TYPE tdsfname VALUE 'ZSD_CRM_PROFORMA_INVOICE_001'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = formname
        IMPORTING
          fm_name  = fm_name.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION fm_name
        EXPORTING
          control_parameters = w_ctrlop
          output_options     = w_compop
          user_settings      = ' '
          v_vbeln            = v_vbeln
          v_erdat            = gv_dat
          wa_custaddr        = gw_zcustaddr
          v_stceg            = gw_kna1-stceg
          v_total            = gv_total
          vbak               = vbak
          v_lifnr            = gw_kna1-lifnr
          vbrp               = vbrp
          v_head             = gv_heading
          v_taxtext          = gv_text
          v_tax              = gv_tax
          v_gtotal           = gv_gtot
        IMPORTING
          job_output_info    = w_return
        TABLES
          it_det             = gt_items
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 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.
    endform.
    form convert_to_otf_format.
      i_otf[] = w_return-otfdata[].
      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 <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    endform.
    form pdf_formatting.
    * Convert PDF from 132 to 255.
      LOOP AT i_tline.
    * Replacing space by ~
        TRANSLATE i_tline USING ' ~'.
        CONCATENATE w_buffer i_tline INTO w_buffer.
      ENDLOOP.
    * Replacing ~ by space
      TRANSLATE w_buffer USING '~ '.
      DO.
        i_record = w_buffer.
    * Appending 255 characters as a record
        APPEND i_record.
        SHIFT w_buffer LEFT BY 255 PLACES.
        IF w_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    endform.     
    FORM build_mail_format .
    DATA:lv_dash(1)         TYPE c VALUE '-'.
      DATA:lv_xtn(4)          TYPE c VALUE '.pdf'.
      CONSTANTS:lv_esacpe     TYPE so_escape  VALUE 'U'.
      CONSTANTS:lv_so_obj_tp  TYPE so_obj_tp  VALUE 'PDF'.
      CONSTANTS:lv_so_obj_tp1 TYPE so_obj_tp  VALUE 'RAW'.
      CONSTANTS:lv_so_obj_sns TYPE so_obj_sns VALUE 'F'.
    * Get Email ID's
      SELECT * INTO TABLE gt_address[] FROM adr6
      WHERE addrnumber = gw_kna1-adrnr.
      REFRESH:i_reclist,
              i_objtxt,
              i_objbin,
              i_objpack.
      CLEAR w_objhead.
    * Object with PDF.
      i_objbin[] = i_record[].
      DESCRIBE TABLE i_objbin[] LINES v_lines_bin.
    * Object with main text of the mail.
      i_objtxt = text-002.
      APPEND i_objtxt.
      DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    * Document information.
      w_doc_chng-obj_name = text-005.
      w_doc_chng-expiry_dat = sy-datum + 10.
      IF gw_flg = 'T'.
        w_doc_chng-obj_descr = text-003.
      ELSE.
        w_doc_chng-obj_descr = text-004.
      ENDIF.
      CONCATENATE w_doc_chng-obj_descr lv_dash v_vbeln INTO w_doc_chng-obj_descr.
      w_doc_chng-sensitivty = lv_so_obj_sns. "Functional object
      w_doc_chng-doc_size = v_lines_txt * 255.
    * Pack to main body as RAW.
    * Obj. to be transported not in binary form
      CLEAR i_objpack-transf_bin.
    * Start line of object header in transport packet
      i_objpack-head_start = 1.
    * Number of lines of an object header in object packet
      i_objpack-head_num = 0.
    * Start line of object contents in an object packet
      i_objpack-body_start = 1.
    * Number of lines of the object contents in an object packet
      i_objpack-body_num = v_lines_txt.
    * Code for document class
      i_objpack-doc_type = lv_so_obj_tp1.
      APPEND i_objpack.
    * Packing as PDF.
      i_objpack-transf_bin = gv_abaptrue.
      i_objpack-head_start = 1.
      i_objpack-head_num = 1.
      i_objpack-body_start = 1.
      i_objpack-body_num = v_lines_bin.
      i_objpack-doc_type = lv_so_obj_tp.
      i_objpack-obj_name = text-005.
      CONCATENATE w_doc_chng-obj_descr lv_xtn INTO i_objpack-obj_descr.
      i_objpack-doc_size = v_lines_bin * 255.
      APPEND i_objpack.
    * Document information.
      CLEAR i_reclist.
    * e-mail receivers.
      LOOP AT gt_address INTO gw_adr6.
        i_reclist-receiver = gw_adr6-smtp_addr.
        i_reclist-express =  gv_abaptrue.
        i_reclist-rec_type = lv_esacpe. "Internet address
        APPEND i_reclist.
      ENDLOOP.
    endform.
    FORM send_mail .
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_doc_chng
          put_in_outbox              = ' '
        TABLES
          packing_list               = i_objpack[]
          object_header              = w_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.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      COMMIT WORK.
    ENDFORM.  
    hi this is a program for sending smartform as pdf attachment.
    make the necessary modifications in the OTF part and use it
    Edited by: Keshu Thekkillam on Jul 10, 2009 7:17 PM
    Edited by: Keshu Thekkillam on Jul 10, 2009 7:17 PM

  • Send email from a PDF report

    I have a report that get customers, I have to call another report to print a pdf letter to send to that customer. In the master report I have the code in the Function AfterReport:
    srw.run_report('report=XXFACVEN.rdf batch=yes desformat=pdf
    desname=[email protected] destype=mail
    P_SET_OF_BOOKS_ID=' || '' || :P_SET_OF_BOOKS_ID || '' || ' DIAS_DESDE_HOY=' || '' || :DIAS_DESDE_HOY || '' || ' P_CLIENTE=' || '' || :P_CLIENTE || '');
    The master report execute ok and the report XXFACVEN is also executed. I get an email like this:
    %PDF-1.1
    1 0 obj
    <<
    /Creator (Developer 2000)
    /CreatorDate (Mon Feb 09 11:07:14 AM 2009)
    /Author (Oracle Reports)
    /Producer (Oracle PDF driver)
    /Title (srw00932622.pdf)
    >>
    endobj
    5 0 obj
    <</Length 6 0 R>>
    stream
    BT
    36.00 782.87 TD
    If I save this text, I think is EPS, in an editor and save the file like name.pdf and I double click to the new file I get the pdf file.
    Why I get the code (%PDF-1.1 1 0 obj << .....) and I don't get the pdf file.
    I am using Report Builder 6.0.8.26.0. I run the report like a request from the EBS.
    Thank you.

    I have a report that get customers, I have to call another report to print a pdf letter to send to that customer. In the master report I have the code in the Function AfterReport:
    srw.run_report('report=XXFACVEN.rdf batch=yes desformat=pdf
    [email protected] destype=mail
    P_SET_OF_BOOKS_ID=' || '' || :P_SET_OF_BOOKS_ID || '' || ' DIAS_DESDE_HOY=' || '' || :DIAS_DESDE_HOY || '' || ' P_CLIENTE=' || '' || :P_CLIENTE || '');
    The master report execute ok and the report XXFACVEN is also executed. I get an email like this:
    %PDF-1.1
    1 0 obj
    <<
    /Creator (Developer 2000)
    /CreatorDate (Mon Feb 09 11:07:14 AM 2009)
    /Author (Oracle Reports)
    /Producer (Oracle PDF driver)
    /Title (srw00932622.pdf)
    >>
    endobj
    5 0 obj
    <</Length 6 0 R>>
    stream
    BT
    36.00 782.87 TD
    If I save this text, I think is EPS, in an editor and save the file like name.pdf and I double click to the new file I get the pdf file.
    Why I get the code (%PDF-1.1 1 0 obj << .....) and I don't get the pdf file.
    I am using Report Builder 6.0.8.26.0. I run the report like a request from the EBS.
    Thank you.

  • How do i convert an email to a pdf file

    How do I turn an email to a pdf file

    You can't do that with Reader but there are various ways to get it done.
    One way, purchase Acrobat (which creates PDF files).
    Another way, use Google to find a lower cost or free PDF writer and use that.

  • How can I convert an email  in a PDF document?

    iOS
    How can I convert an email  in a PDF document?

    There is no "system solution" that turns an e-mail into a PDF file. In other words, it's not a functionality of the iOS. And there are some apps around that say they turn some documents into PDF files, but in every app that does that, I've never seen one that does so for the entire e-mail itself, but only for the "text" of the e-mail (which won't include the "to" and "from").
    BUT, you can get part of the e-mail through a screen shot and you can get more of the e-mail by going "portrait" style and not "landscape". Then after getting the screen shot, you can turn that into a PDF file by those apps I was referring to up above,

  • I get a weekly email with a PDF attachment and when I open it it's to large to print. To date I'm not able to find a way to shrink or adjust the size. The doc was created on M/S Office-excell

    I get a weekly email with a PDF attachment and when I open it it's to large to print and I know of no way to shrink or resize the doc. It's created in M/S excel. Can anymore assist....TX

    From: Test Screen Name [email protected]
    Sent: Sunday, August 04, 2013 11:32 AM
    To: gunner0490
    Subject: I'm not able to open PDF files in Adobe Reader XI.
    Re: I'm not able to open PDF files in Adobe Reader XI.
    created by Test Screen Name <http://forums.adobe.com/people/TestScreenName>  in Adobe Reader - View the full discussion <http://forums.adobe.com/message/5565198#5565198

  • I got an email with a pdf.  Is it possible to move it into Pages and be able to edit it?

    I got an email with a pdf.  Is it possible to move it into Pages and be able to edit it?

    You can import the pdf as an image but it is not editable.
    If you are after the text, open it in Preview and copy the text and paste it wherever you want, or open it in Adobe Acrobat Pro and convert it into a Word .doc.
    Peter

  • I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    This is the Microsoft forum site that parallels what Apple has:
    Office for Mac forums
    It's not uncommon for MS employees who work with the Mac side of the business to help there. All in all a useful resource for Office:Mac

  • Email printed to PDF, PDF appears accurate in Acrobat XI Pro, when PDF printed to paper text missing

    HELP!!!
    I have text disappear from Outlook emails printed to PDF when I print the PDF files from Acrobat XI Pro to a printer.
    Here is a sample png from the PDF file printed out of Outlook - all the text is showing.
    However when I print the PDF from Acrobat to a printer, the document comes out of the printer with text missing as shown:
    The Acrobat print window shows all of the text that should be there as does Acrobat's view of the document.
    Also, if I save the file to an image, all of the text is there.
    I have tried different emails as well as different printers and the paper printed copies of the PDF emails are always missing text.
    Additionally I have tried coverting the PDF file to a PDF/A file and printing that and the same problems occur.
    Please send some tips as to how I can fix this!

    Hello Atul -
    i am having similar printing issues with Acrobat 10.1.4.
    in my case both PDFs made by me (from InDesign files) and other PDFs made elsewhere and sent to me are missing text when printed to paper -though they look fine both on-screen and in the preview pane, as Katy noted above.
    these PDFs print fine when i open and print from an older version of Acrobat (9.5.2).
    they will also print fine from 10.1.4 if i send them to another printer in the office, (a Dell Color Laser 3110cn), the printer i have a problem with is a Kyocera Mita KM-5053 - which leads me to believe that this is some kind of communication error between Adobe Acrobat Pro 10.1.4 and this printer, or perhaps a driver issue. ?
    I don't believe it's merely a preferences/print settings problem as i've gone pretty carefully through all the dialog boxes that seem relevant and have had no luck in solving the problem. Also, the text that's missing seems arbitraty - meaning, it's not merely hyperlinks or certain layers or text in specific type faces that won't print -it's content in the same text box, where other text does print, and it's blacks and colors and various point sizes - in short there are no easily discernable unifying circumstances among the text that does not print.
    obvioulsy an easy work around is to just print to the other printer or use the older version of Acrobat, but my concern is more that other people may be experiencing the same issues with PDFs i send them. so if it is a problem in the way i'm generating PDFs (although, as i said, text is also missing from PDFs i have received from other people and printed) i'd like to fix it quickly, so that people trying to print my PDFs don't end up with critical content missing.
    i'm on a 2008 MacBook Pro running Mac OS X Lion 10.7.5, and using the Acrobat (X Pro v 10.1.4) that came with the CS6 Design & Web Premium package - although i'm looking at it online now and it's listed as Acrobat XI Pro..
    any input you have would be much appreciated.
    thank you,
    bethany

  • Convert Multiple Outlook Emails to Multiple PDF Files (Not Portfolio or Single PDF) for Archiving?

    Hi all, I am learning how to convert emails to PDF files and there is some great functionality there!!  I have not discovered how to convert multiple outlook emails into multiple PDF files (one PDF file for each email) - all at the same time (not one at a time)!!  Is there a way to do this using Acrobat X??  The purpose of this is for long-term business archiving.  When I search for an email in the archive, I do not want to pull up a portfolio containing 1000 emails or a 1000 page PDF file with multiple emails run together!!!  I want to pull up individual emails containing my search terms.  I have been searching for a way to archive emails and MS OUTLOOK .PST files are NOT the answer.  I get a lot of business emails with large attachments and I do not file my emails in separate sub-folders (by client or job).  I want to convert multiple emails (by date range) from my UNIVERSAL INBOX into multiple PDF files for long term storage (with each email being converted into its own, separate PDF file and named with the same name as the "Re: line" of the email).  This has been a HUGE problem for me....and Acrobat is sooooo close to the solution for me.  Can anyone help??  If so, will attachments be converted?  If not, is there a separate software program or add-in that I can buy that will do this??  I use MS Office 2010, Adobe Acrobat X Pro, Windows 7 64 BIT.  Thanks for your help!!

    I am a retired person and did'nt realize I already have a Adobe account, so you can scrap the entire information. Thanks for the trial anyway and have a great week.
    Frederick

  • Vendor payment Advice Email Sending with PDF

    Hi Experts,
    I need to develop a program when the user completes his transaction from F110.
    It need to trigger a email to vendor about the payment terms along with the Reference Number & Invoice no. & Currency, as a PDF Attachment.
    I have searched in the SCN before posting and I got lot of good results but I not found any PDF attachment and any coding,
    Please help me out.
    this is the BTE asked to implement,
    ZSAMPLE_PROCESS_00002040
    After implementing what to do.
    Server is comfigured well and we have a PO auto email now in the system.
    need a new program to send PDF attachment to vendor for payment advice.
    Thanks in advance.
    -Dunlop.

    Hi,
    The below standard function module is capable of sending the email with the pdf attachment.
    But it is your responsiblity how you fill the internal tables here.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = lwa_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = lw_sent_to_all
        TABLES
          packing_list               = lt_packing_list
          object_header              = lt_objhead
          contents_bin               = itab_255                
          contents_txt               = lt_objtxt
          receivers                  = lt_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,
    Santhosh.

Maybe you are looking for

  • Including Second Local currency in Report Painter

    Hi there, My client is using parallel currency and their LC2 is USD.  I am trying to create a Cost centre report using report painter and want to add LC2 amounts in this report.  Is it possible to add LC2 using report painter? The following is some a

  • Console Errors when using Aperture...

    Not sure if any one is getting this - but I have noticed that when accessing files from my imported Library - I have a few TIFFs from a previous import and some some reason, when I select any of those TIFFs I get errors at Aperture. 10-03-01 4:56:18

  • Firewire: no IEEE 1394 network adapter

    I have a Lenovo 3000 N200 (vista) laptop with firewire port. Whenever I plug in any device through this port, nothing happens. No drive, nothing. I noticed that the OHCI driver is active, but there is no "IEEE Network" adapter. It used to be when I h

  • Remote Launch

    Hi all I am wondering if anyone knows how I can launch an app on my Mac Mini e.g XBMC or EYETV from the ipad. It would be brilliant if there was a way to open launchpad from the ipad and then just click the application I want to open. Reason I am hop

  • IPhoto Crashing - Recovering Albums and Titles?

    I installed iPhoto 6 with about a half dozen problem photos. These photos were set in an album for me to review. After exiting from iPhoto and reopening the next day I had continued crashing. After about 1/2 hour with Apple Care I was able to reinsta