Sending pdf via email: pdf is not returned from function module

Hi all.
I am having trouble sending a pdf form as an attachment to an email.
After calling the funtion module that is creating the PDF, field pdf of the return parameter /1bcdwb/formoutput should be used to create the attachment.
But the field PDF is empty after calling the function module - only the field xml is given back.
What did I miss?
Thank you for your help and best regards, Kathrin!

Hi Kathrin,
See below for the example:
ls_outputparams-getpdf = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
     CHANGING
       ie_outputparams = ls_outputparams
     EXCEPTIONS
       cancel          = 1
       usage_error     = 2
       system_error    = 3
       internal_error  = 4
       OTHERS          = 5.
If you setup the job like this then the pdf parameter will be filled with the XSTRING data for the generated PDF.
Regards,
Ryan Crosby

Similar Messages

  • Goodreader will allow me to send a PDF via email but my notes wont go?

    I do apologize as I am very new to this. I did just download goodreader onto my iPad 2. It is very simple to use but I do have an issue. I was forwarding a PDF via email. I attached a note along with it, just above my signature. The email did go to a PC and the attachment was their, but the note and signature was attached as another attachment as a .txt file. The odd thing is, if I copy the email to myself it shows the note and signature? I hope i explained this situation so that it is understandable and thanks for any advise. Really am a big fan of the Apple products, even have a new iPhone 4 being delivered tomorrow.
    G

    Yes, but selecting the icon only gives me the option to print.

  • To convert Sap Script output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Sap Script output to PDF format and send it via email. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Plese check this sample code from other thread.
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    The extension is put the it_mailpack-obj_name parameter of 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Refer the links -
    how to convert smartform into pdf and send through mail
    Smartform as PDF attachment to a mail.
    smartform pdf and mail
    smartform to pdf to mail
    Regrads,
    Amit
    Reward all helpful replies.

  • Sharing PDF via email in Pages 09

    This has not been a problem. However I just upgraded to Yosemite and now I cannot share as PDF via email; no problem with word or pages but this function seems to be lost

    Since Apple has retired all Pages applications prior to v5, they have no concern about backwards compatibility, or the effect of new operating systems, or newer applications on those retired applications. There is no guarantee that any point release to Yosemite, or subsequent OS X release would enable Pages ’09 functional continuity. It simply is not an Apple agenda item.
    For those who remain attached to Pages ’09, and do not have their documents duplicated in MS Word documents — and backed up — a sudden failure of Pages ’09 would mean opening those Pages ’09 documents in Pages v5, and risk loss of content due to unsupported features.

  • Submit PDF via email custom button

    I followed the instructions in LiveCycle guide but it is not working completely.  I set up a custom button and followed the instructions for Submitting a pdf via email.  When I click on the submit button, it pulls the pdf into an email  but has left off the email address and the subject. 
    The format I used was mailto:[email protected]?subject=blah blah blah.

    Thank you.  I finally got it to work!
    Sarah T. Love
    Grants & Contracts Director
    California Pacific Medical Center Research Institute
    475 Brannan Street, Suite 220
    San Francisco, CA   94107
    415-601-2555 cell phone
    415-600-1702 phone
    415-600-1681 fax
    Website:  http://www.cpmc.org/professionals/research/grants/index.html

  • Billing in PDF via Email

    Hi,
    How can i send an created bill as pdf via email?
    Can anybody suggest if there is any BADI/User Exit/Configuration exists in order to email Billing document as a PDF attachment while saving from VF01 or VF02?
    Thanks

    Hi Marcus,
    Did you try using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1 '.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = xs_gd_doc_data
          put_in_outbox              = lc_true
          commit_work                = lc_true
        IMPORTING
          sent_to_all                = lv_sent_all
        TABLES
          packing_list               = xt_packing_list
          contents_txt               = xt_message
          receivers                  = xt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc  0.
    *Do Nothing
      ENDIF.
    Hope it resolves your query.
    Regards,
    Manish

  • In iphoto my photos do no appear just a blank dated square. Somehow I messed up when trying to send a photo via email.I cannot not see any but 4 photos.

    Help!   In iphoto my photos do not appear just a blank dated square. Somehow I messed up when trying to send a photo via email.I cannot not see any but 4 photos.I tried all of the solutions that Apple suggested. Somehow I think that i am trying to send ALL my photos in an email.How do i unhide all of my photos?

    Did you launch iPhoto with the Option(Alt) and Commnad keys held down like Terence suggested?  If you did it properly you will get this window:
    The second option is the one you want to run.
    OT

  • Receive pdf via email

    I receive pdf via email I open and save as which selects device/documents. But how do I retrieve the files and can I create an icon on my z10 which would take me straight to the file where I store all pdf's?

    sli101 wrote:
    I receive pdf via email I open and save as which selects device/documents. But how do I retrieve the files and can I create an icon on my z10 which would take me straight to the file where I store all pdf's?
    You're posting in a 5+ year old thread. Quite old.
    You can retrieve those files from your File Manager app.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Ipad and iPhone not able to send photos via email or text

    My iPad2 and iPhone (5s) are not able to send photos via emails or texts. They communicate with each other in sharing the photos but I can't send them out anywhere. Anyone have suggestions?

    You can choose Outlook Express by following steps:
    1) Launch Starter Edition.
    2) Choose Edit menu >> Preferences or press Ctrl + K, to launch preference dialog.
    3) Choose Email from side menu on preference dialog.
    4) in Client, 'Send Email Using :' set"Outlook Express" and press 'Ok'
    You are reasy to share your images.Let me know if it helps.
    Cheers!!!
    Agrawal

  • HT1541 When i'm trying to send an application as gift using "send gift via email" option, it is not allowing me to buy the app. A pop up appears with message "Please contact itunes support to complete this purchase"

    When i'm trying to send an application as gift using "send gift via email" option, it is not allowing me to buy the app. A pop up appears with message "Please contact itunes support to complete this purchase"

    Okay, so do as it says, contact iTunes customer support.

  • Embedded Reader send copy via email

    Good morning,
    our users use embedded Reader XI (11.0.10) for displaying PDFs within an intranet homepage. They want to email the embedded pdf from there, too. 
    When the PDF is opened in the IE11 browser and the users click on the email button “Send copy via Email” , and get a question "How would you like to email this document: Link or copy".
    When clicked on copy nothing happens – when clicked on “send as link” it works fine.
    Does anyone know how to fix the issue?
    Kind regards,
    Tobias

    Good morning,
    our users use embedded Reader XI (11.0.10) for displaying PDFs within an intranet homepage. They want to email the embedded pdf from there, too. 
    When the PDF is opened in the IE11 browser and the users click on the email button “Send copy via Email” , and get a question "How would you like to email this document: Link or copy".
    When clicked on copy nothing happens – when clicked on “send as link” it works fine.
    Does anyone know how to fix the issue?
    Kind regards,
    Tobias

  • I am finish my project and want to end to another person by email the project so that they can burn a dvd to be displayed at our Church. Normally I would burn the DVD myself but have to send it via email. how to they press it to dvd.Thanks

    I have finished my FCP X project and in the past I would burn a copy but since I am out of town I need to send it via email. The peron is able to view the project when it comes by email but I am wondering how can they burn a dvd copy of it to display at the Church for our announcements.  The person I am sending it to has a Mac too. Thanks

    First off, you're not likely to be able to email it. Most email systems limit the size of messages (and their attachments) since email isn't really designed for large transfers. It's not uncommon to see 50MB as a cap. Unless you're working on an especially small project you're likely to exceed this limit.
    Instead you should consider creating a disk image of your DVD and using a public file service such as DropBox or YouSendIt.
    If you create a disk image (.dmg) file that simulates a full burned DVD, the reciever can burn that to disk using Disk Utility on their machine. They don't need FCP X on their side.

  • Problem sending photos by Email.  Received a response from T. Devlin.  Did not solve problem.  I had already done what he suggested.

    I had already entered my Email info under preferences.
    The screen comes up with the photos I want to send.
    I type my message and hit Send.  The blue bar appears "Sending".
    However,  don't know where the photos go, they don't reach destination.
    I tried sending to myself at another Email address - they didn't arrive, and they are not shown under Sent Emails either.
    How to resolve?
    Tried to respond to T. Devlin - but that didn't happen either.  Just a Like symbol was there (as in Facebook).

    You are referring to this discussion, right?
    Problem sending photos via email since I recently updated to iLife 11.
    Which MacOS X version are you using and which iPhoto version?
    If you are using Yosemite and have enabled up two-step verification for iCloud?  Then you may need to create an application specific password for iPhoto.  See this discussion:  Re: Unable to send photo through email using iphoto theme (designs)Re: Unable to send photo through email using iphoto theme (designs)Re: Unable to send photo through email using iphoto theme (designs)  Unable to send photo through email using iphoto theme (designs)

  • 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.

Maybe you are looking for