PDF attachment in MAIL when report generate

Hi, i have following problem:
I have form "Students, with parameters. In form is Print button which creates report and prints it .
I need to make new button, which would acted following when button is pressed : "could just launch the creation of the mail(outlook) and added attachment PDF file for "Students" form"
Send to and subject field doesn't need to be filled.
Can someone help, how this could be done.
BR.

Hi,
I didn't configure anything.
Yes i understand that mail must send to someone but i want that contact TO field always at start is empty so user can manually write contact for what send mail.
But till modifications mail generation had following property: set_report_object_property(repid, DESNAME, p_desname); where p_desname was a variable from form. After i removed that p_desname variable from report_object_property and set it to set_report_object_property(repid, DESNAME, '') mail generation is broken...
i hope you understood what i thought
BR,
Raivis

Similar Messages

  • Sending Cheque as PDF attachment in Mail using F110.

    Hi all,
    We have a requirement to send the cheque as as PDF attachment in Mail while printing it through transaction F110.Mail has to be triggered when the payment run is done through F110.Is there any config setting to do this without doing any changes to Print program RFFOUS_C.
    Thanks and Regards
    Kiran

    Hi,
    check below link
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/email%2bfrom%2bsap 
    Regards,
    Madhu

  • How to send pdf attachment through mail using Webdynpro-Java

    How can i send the Adobe Interactive Form with data involved as a PDF attachment to mail? using Webdynpro-Java.
    Is there any Adobe API or jar file for generating pdf?
    Helpful answer is highly appreciable and rewarded with points.!

    Hi Sankar,
    try [Offline Interactive PDF Form Using E-Mail|/docs/DOC-8061#49]
    Michal

  • I am unable to open my PDF attachment in mail.

    I cannot open my PDF attachment in mail. I am able to on all of my other apple products but not my air. Is there a setting that i might have wrong?

    If it is your own pdf and you are unsure of your password, you are out of luck. You will need to create a new file from the original documents. I suggest using password managers, if you need to create many different documents with different passwords.

  • Pdf attachment from mail to ibooks?

    hmm, how do you 'import' pdf attachment from mail into ibooks 1.1? i hit downloaded on iphone mail, it loaded with img, not even a pdf. flip back to ibooks, hit pdf tab, its not there. am i missing something here?
    thanks guys
    Message was edited by: Tran Hoang Long

    I have the latest version of iTunes with iBooks, and it doesn't have anywhere to drag PDF files into iTunes. Where are you seeing this? I tried every imaginable PDF, include a text document, I printed to PDF from textedit, then dragging it into the pane of grayed out books in iTunes.
    What gives?
    Here's a screenshot:
    http://drp.ly/1eMh5M

  • Sending SAP Script output as a PDF attachment through mail

    Dear Guru,
    I am using SAP 4.0B version, DATABASE Oracle 8i, OS is sun solaris 7.5.
    I want to send SAP script output as a
    PDF attachement through mail.Please suggest a solution.
    Regards,
    Rajesh

    Hi Rajesh,
    In your print program, while calling OPEN_FORM, pass options-TDGETOTF = 'X'. This is used for returning print output in OTF format.
    Then in CLOSE_FORM, get the table OTFDATA returned from the function module. for example
    DATA: OTF_DATA LIKE ITCOO OCCURS 0 WITH HEADER LINE.
        CALL FUNCTION 'CLOSE_FORM'
          IMPORTING
            RESULT  = RESULT
          TABLES
            OTFDATA = OTF_DATA.
    now you can convert this OTF data to PDF using function module CONVERT_OTF
    Then send this data as attachment to a mail using function module SO_NEW_DOCUMENT_ATT_SEND_API1
    Regards,
    Komal.

  • I have a monthly recurring event, it has a PDF attachment to it, when ever i delete one of the events it crashes iCal

    I have a monthly recurring event, it has a PDF attachment to it, when ever i delete one of the events it crashes iCal

    I have a monthly recurring event, it has a PDF attachment to it, when ever i delete one of the events it crashes iCal

  • My Form generate no pdf attachment in mail

    Hello all.
    I as newbe have designed an form in livecycle 8.
    My problem is that as i submit by mail i get no warning wich emailclient has te be used.
    But my hotmail wil start up and the form will amke a email with everting in it exept te pdf attachement.
    I did try everting what i could find here on the forum but noting works.
    Olso with a other form in PDF what i not designed, works evertyting well.
    Please help.
    Marcel

    Hello all.
    I as newbe have designed an form in livecycle 8.
    My problem is that as i submit by mail i get no warning wich emailclient has te be used.
    But my hotmail wil start up and the form will amke a email with everting in it exept te pdf attachement.
    I did try everting what i could find here on the forum but noting works.
    Olso with a other form in PDF what i not designed, works evertyting well.
    Please help.
    Marcel

  • PDF attachment in mail

    Hi All,
    I am able to send the PDF file in mail attachment, but the problem is the logo is not getting displayed correctly. Pls find my code below
    REPORT  ztestmail.
    DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
    DATA: objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
    DATA: objbin  LIKE solisti1   OCCURS 45 WITH HEADER LINE.
    DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
    DATA: doc_chng LIKE sodocchgi1.
    DATA: tab_lines LIKE sy-tabix.
    DATA : it_lines TYPE STANDARD TABLE OF tline,
           it_line TYPE tline.
    Creating the document to be sent
    doc_chng-obj_name = 'Invoice'.
    doc_chng-obj_descr = 'Invoice'.
    objtxt = 'Invoice as Attachment'.
    APPEND objtxt.
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    Creating the entry for the compressed document
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = 'RAW'.
    APPEND objpack.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'U:\PDF\2.PDF'
        filetype                      = 'BIN'
      TABLES
        data_tab                      = it_lines
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DATA : gd_buffer TYPE string.
    LOOP AT it_lines INTO it_line.
      TRANSLATE it_line USING ' ~'.
      CONCATENATE gd_buffer it_line INTO gd_buffer.
    ENDLOOP.
    TRANSLATE gd_buffer USING '~ '.
    DO.
      objbin = gd_buffer.
      APPEND objbin.
      SHIFT gd_buffer LEFT BY 255 PLACES.
      IF gd_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    objhead = 'Invoice.PDF'. APPEND objhead.
    Creating the entry for the compressed attachment
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 1.
    objpack-body_start = 1.
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size   = tab_lines * 255.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = 'EXT'.
    objpack-obj_name   = 'ATTACHMENT'.
    objpack-obj_descr = 'Reproduction object 138'.
    APPEND objpack..
    Entering names in the distribution list
    reclist-receiver = 'mail address'.
    reclist-rec_type = 'U'.
    APPEND reclist.
    * sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = doc_chng
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list               = objpack
        object_header              = objhead
        contents_bin               = objbin
        contents_txt               = objtxt
        receivers                  = reclist
      EXCEPTIONS
        too_many_receivers         = 1
        document_not_sent          = 2
        operation_no_authorization = 4
        OTHERS                     = 99.
    Thanks,
    Raju

    Hi Raj008,
    When you create post or reply, on right hand side all the markups are given...how to format text and all,
    for code to be seen in readable format,
    simply type the lines between  
    <open brace bracket > <the word 'code'> <closing brace bracket>
    program lines
    <open brace bracket > <the word 'code'> <closing brace bracket>
    hope that helps you
    sorry cant actually type the bracket, as it shows in code format
    Please try replying again to 1 of the replies and check on right hand side of the editor.
    Regards,
    Radhika

  • Sending a PDF attachment by mail

    Hello Experts,
    I need to write down a report in which you can generate an e-mail attaching automatically one or more PDF already downloaded on my PC (generated by a previous report) i.e. c:\test.pdf
    For info, this is the last part of a report that generates PDF from a standard report result:
    - I call RFZALI20 for a specific set of parameters (LAUFD, LAUFI, LIFNR)
    - I generate a spool with the results (customer wants exactly the "screenshots" of report result) and then convert it in pdf with a submit to RSTXPDF4
    - Now I have to send it by mail to the vendor...how can I do that??
    thanks in advance
    Chiara

    hi
    Store all your texts like dear sir , please find the attachment in text elements example text-001 contains please find the attachments and text-002 contains thank you and so on.
    Once you do this the place where you call your pdf palce them there and concat them.
    example:
    data: wa_msg type solisti1,
    i_msg type standard table of solisti1.
    wa_msg-line = text-001.
    append wa_msg to i_msg.
    then you fill the receivers and call the FM for sending pdf mail
    regards
    Sachin Sharma

  • PDF attached in Mail changes suffix

    This is a really strange problem. When sending PDF files attached per Mail, the suffix will be automatically changed from .pdf into .pdf0, .pdff and so on. It happens randomly. What can be done here, has someone observed the same issue in his Mails?!

    I have not experienced the problem, but others have. It appears to relate to special characters (such as umlauts) that are used in the filename - combined with a mail format that is text only.
    This post is helpful: http://discussions.apple.com/message.jspa?messageID=7358148#7358148
    Solutions thus appear to be:
    1) Avoid special characters in filenames (not practical in some languages), or
    2) Use HTML elements in every email (the preference alone is not enough), or
    3) Use a program other than Mail for sending emails.
    Cheers,
    Rodney

  • Send PDF  attachment through mail

    i have one PDF document on my desktop, i want to sent that PDF as attachment to mail through SAP.
    can anybody have idea how to get?

    i also had the same requirement... the following code is to attach a pdf file from PC. 'PDF' has been hard coded. to attach a text file change it to 'TXT'.
    *& Report  Y_FILE_FROM_PC
    REPORT  y_file_from_pc.
    * This program will allowed you to send email with attachment.
    First, specify the attachment file from your local hardisk and execute.
    Next, specify the sender email address and click the send button.
    DATA: method1 LIKE sy-ucomm,
    g_user LIKE soudnamei1,
    g_user_data LIKE soudatai1,
    g_owner LIKE soud-usrnam,
    g_receipients LIKE soos1 OCCURS 0 WITH HEADER LINE,
    g_document LIKE sood4 ,
    g_header LIKE sood2,
    g_folmam LIKE sofm2,
    g_objcnt LIKE soli OCCURS 0 WITH HEADER LINE,
    g_objhead LIKE soli OCCURS 0 WITH HEADER LINE,
    g_objpara LIKE selc OCCURS 0 WITH HEADER LINE,
    g_objparb LIKE soop1 OCCURS 0 WITH HEADER LINE,
    g_attachments LIKE sood5 OCCURS 0 WITH HEADER LINE,
    g_references LIKE soxrl OCCURS 0 WITH HEADER LINE,
    g_authority LIKE sofa-usracc,
    g_ref_document LIKE sood4,
    g_new_parent LIKE soodk.
    DATA: BEGIN OF g_files OCCURS 10 ,
    text(4096) TYPE c,
    END OF g_files.
    DATA : fold_number(12) TYPE c,
    fold_yr(2) TYPE c, fold_type(3) TYPE c.
    PARAMETERS ws_file(4096) TYPE c DEFAULT 'c:\debugger.PDF'.
    can me any file fromyour pc ....either xls or word or ppt etc ...
    g_user-sapname = sy-uname.
    CALL FUNCTION 'SO_USER_READ_API1'
    EXPORTING user = g_user
    prepare_for_folder_access = ' '
    IMPORTING
    user_data = g_user_data
    *EXCEPTIONS
    user_not_exist = 1
    parameter_error = 2
    x_error = 3
    OTHERS = 4
    IF sy-subrc NE 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    fold_type = g_user_data-outboxfol+0(3).
    fold_yr = g_user_data-outboxfol+3(2).
    fold_number = g_user_data-outboxfol+5(12).
    CLEAR g_files.
    REFRESH : g_objcnt, g_objhead, g_objpara, g_objparb, g_receipients, g_attachments, g_references, g_files.
    method1 = 'SAVE'.
    g_document-foltp = fold_type.
    g_document-folyr = fold_yr.
    g_document-folno = fold_number.
    g_document-objtp = g_user_data-object_typ.
    *g_document-objyr = '27'.
    *g_document-objno = '000000002365'.
    *g_document-objnam = 'MESSAGE'.
    g_document-objdes = 'attach file from pc'.
    g_document-folrg = 'O'.
    *g_document-okcode = 'CHNG'.
    g_document-objlen = '0'.
    g_document-file_ext = 'PDF'.
    g_header-objdes = 'attach file from pc'.
    g_header-file_ext = 'PDF'.
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
    EXPORTING method = method1
    office_user = sy-uname
    ref_document = g_ref_document
    new_parent = g_new_parent
    IMPORTING
    authority = g_authority
    TABLES
    objcont = g_objcnt
    objhead = g_objhead
    objpara = g_objpara
    objparb = g_objparb
    recipients = g_receipients
    attachments = g_attachments
    references = g_references
    files = g_files
    CHANGING
    document = g_document
    header_data = g_header
    folmem_data =
    receive_data =
    file from the pc to send..
    method1 = 'ATTCREATEFROMPC'.
    g_files-text = ws_file.
    APPEND g_files.
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
      EXPORTING
        method       = method1
        office_user  = g_owner
        ref_document = g_ref_document
        new_parent   = g_new_parent
      IMPORTING
        authority    = g_authority
      TABLES
        objcont      = g_objcnt
        objhead      = g_objhead
        objpara      = g_objpara
        objparb      = g_objparb
        recipients   = g_receipients
        attachments  = g_attachments
        references   = g_references
        files        = g_files
      CHANGING
        document     = g_document
        header_data  = g_header.
    method1 = 'SEND'.
    g_receipients-recnam = 'ABAP'.
    g_receipients-recesc = 'B'.
    g_receipients-sndex = 'X'.
    APPEND g_receipients.
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
      EXPORTING
        method       = method1
        office_user  = g_owner
        ref_document = g_ref_document
        new_parent   = g_new_parent
      IMPORTING
        authority    = g_authority
      TABLES
        objcont      = g_objcnt
        objhead      = g_objhead
        objpara      = g_objpara
        objparb      = g_objparb
        recipients   = g_receipients
        attachments  = g_attachments
        references   = g_references
        files        = g_files
      CHANGING
        document     = g_document
        header_data  = g_header.
    hope this helps!

  • PDF attachment in mail adapter

    Hi
    I am reading mailbox using mail adapter. But i cannot read the PDF attachment in that mail. I use "PayloadSwapBean" in the module, but it is packing the mailbody to the text file, but they is no sign of PDF attachment. How to read the attachment.
    Regards
    Andy

    Hi Anandan,
    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

  • Need to sent alv output as html or as pdf attachment in mail

    +Hello
    I want to send an ALV output as attachement in html or as pdf format. how to do that? line size is greater than 600(nearly 40 fields).
    +please help me in this query.
    Regards
    Guruvayurappan
    Moderator Message: Please search before posting your question. Thread locked.
    Edited by: Suhas Saha on Dec 29, 2011 4:57 PM

    Hi,
    For sending the ALV output as PDF attachment, you can create a spool (proper page size in print parameters) and convert the spool to PDF using the FM CONVERT_ABAPSPOOLJOB_2_PDF and then send the same as attachment in mail.
    For send the data as HTML attachment, try the below FMs
    WWW_ITAB_TO_HTML_HEADERS & WWW_ITAB_TO_HTML_LAYOUT to create the HTML layout
    WWW_ITAB_TO_HTML to create the HTML for the actual data.
    Hope this helps you.
    Regards,
    Sachinkumar Mehta

  • To send the Payload as PDF Attachment in mail in PI 7.1

    Hi All,
    I have to send a file as PDF attachment using a mail adapter. I gave the Content_Type as 'application.pdf'. I am receiving the mail, but I am unable to open the PDF. It says 'Could not open because the type is not supported or unable to decode'. How do I resolve this?
    Thanks,
    Geetha

    Hi,
    You need to perform the conversion usign the PayloadSwapBean in the  Module tab.
    Please refer to the following link
    /people/sravya.talanki2/blog/2006/11/28/e-mail-xml-messages-in-pdf-format-from-sap-xi
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/content.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    hope this helps,
    Regards,
    Bhanu
    Edited by: nanduri bhanu on May 21, 2009 5:21 AM

Maybe you are looking for

  • Is is possible to recover bookmarks from a backup in Time Machine?

    I completely re-installed my HD from a previous back-up in Time Machine. The only problem is that I think I lost some of my Safari bookmarks. I still have the more recent back-up from before I did the re-install on my Time Machine external HD. My que

  • Toplink Warning - how to stop logging?

    I'm just getting started with JPA and TopLink so I need a little help here. Here's the situation. I want to build a simple Rich Client Application and have it use JPA for persistence. I am developing in NetBeans and using the built in Derby database

  • Business Partner : Mass upload

    Hi Experts,      I have to upload some15 million Business partner through BP transaction . I want to know what will be the most suitable method to attain that. Should I use BAPI, BDC , LSMW ?? I am not clear at all, what should be the most appropriat

  • Batch Management Configuration Change

    Dear Experts We have 180 plants around the world. right now the batch settings is material level. we need to set it into plant level, the same material used by other plants but procuring from  different different soruce, Pls help me in detial how I c

  • OAM : Access management of Print Server and Shares

    Hi Experts ! Our customer is providing our user printing and storage facilities in their windows accounts besides many web based applications. We are planning to evaluate OAM for this environment as an access management solution. Web based applicatio