Send PDF file as an attachement en an email (only 1 st page send?)

Hi all !
I have a requirement to send a spool job as an .PDF attachement via email for my client.
I was using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert a spool into a PDF file
Then Convert PDF from 132 to 255 characters.
Then I use the following code from the forum to send the attachment to email
Document information.
          W_DOC_CHNG-OBJ_NAME = 'ATTACHMENT'.
          W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
          CONCATENATE TEXT-T07 PN-PABRP PN-PABRJ INTO W_DOC_CHNG-OBJ_DESCR separated by space.
          W_DOC_CHNG-SENSITIVTY = 'F'. "Functional object
         W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
          W_DOC_CHNG-DOC_SIZE = V_LINES_BIN * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
         CLEAR I_OBJPACK-TRANSF_BIN.
          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 = 'RAW'.
          I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          APPEND I_OBJPACK.
Packing as PDF.
          I_OBJPACK-TRANSF_BIN = 'X'.
          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 = 'PDF'.
          I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          CONCATENATE 'Remuneration_Statements_' PN-PABRP '_' PN-PABRJ  '.pdf'
          INTO I_OBJPACK-OBJ_DESCR.
          I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
          APPEND I_OBJPACK.
          clear I_OBJPACK.
Document information.
          CLEAR I_RECLIST.
e-mail receivers.
          read table it_pernr into wa_pernr
              with key pernr = pernr-pernr binary search.
          if sy-subrc eq 0.
            I_RECLIST-RECEIVER = wa_pernr-usrid.
          endif.
          I_RECLIST-COM_TYPE = 'INT'.                   "Internet Email
*I_RECLIST-notif_del  = 'X'.
*I_RECLIST-notif_ndel = 'X'.
          I_RECLIST-EXPRESS = 'X'.
          I_RECLIST-REC_TYPE = 'U'. "Internet address
          APPEND I_RECLIST.
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
              DOCUMENT_DATA                    = W_DOC_CHNG
          PUT_IN_OUTBOX                    = ' '
              COMMIT_WORK                      = 'X'
        IMPORTING
          SENT_TO_ALL                      =
          NEW_OBJECT_ID                    =
          TABLES
             PACKING_LIST                     = I_OBJPACK
   OBJECT_HEADER                    = W_OBJHEAD
       CONTENTS_BIN                     = I_OBJBIN
       CONTENTS_TXT                     = I_OBJTXT
  CONTENTS_HEX                     =
  OBJECT_PARA                      =
  OBJECT_PARB                      =
        RECEIVERS                        = I_RECLIST
The email did succesfully send to the receipents but only the first page of the PDF attachement file was sent not the 2nd page.
Can any body help ?
Thanks a lot

Hi all !
I have a requirement to send a spool job as an .PDF attachement via email for my client.
I was using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert a spool into a PDF file
Then Convert PDF from 132 to 255 characters.
Then I use the following code from the forum to send the attachment to email
Document information.
          W_DOC_CHNG-OBJ_NAME = 'ATTACHMENT'.
          W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
          CONCATENATE TEXT-T07 PN-PABRP PN-PABRJ INTO W_DOC_CHNG-OBJ_DESCR separated by space.
          W_DOC_CHNG-SENSITIVTY = 'F'. "Functional object
         W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
          W_DOC_CHNG-DOC_SIZE = V_LINES_BIN * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
         CLEAR I_OBJPACK-TRANSF_BIN.
          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 = 'RAW'.
          I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          APPEND I_OBJPACK.
Packing as PDF.
          I_OBJPACK-TRANSF_BIN = 'X'.
          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 = 'PDF'.
          I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          CONCATENATE 'Remuneration_Statements_' PN-PABRP '_' PN-PABRJ  '.pdf'
          INTO I_OBJPACK-OBJ_DESCR.
          I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
          APPEND I_OBJPACK.
          clear I_OBJPACK.
Document information.
          CLEAR I_RECLIST.
e-mail receivers.
          read table it_pernr into wa_pernr
              with key pernr = pernr-pernr binary search.
          if sy-subrc eq 0.
            I_RECLIST-RECEIVER = wa_pernr-usrid.
          endif.
          I_RECLIST-COM_TYPE = 'INT'.                   "Internet Email
*I_RECLIST-notif_del  = 'X'.
*I_RECLIST-notif_ndel = 'X'.
          I_RECLIST-EXPRESS = 'X'.
          I_RECLIST-REC_TYPE = 'U'. "Internet address
          APPEND I_RECLIST.
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
              DOCUMENT_DATA                    = W_DOC_CHNG
          PUT_IN_OUTBOX                    = ' '
              COMMIT_WORK                      = 'X'
        IMPORTING
          SENT_TO_ALL                      =
          NEW_OBJECT_ID                    =
          TABLES
             PACKING_LIST                     = I_OBJPACK
   OBJECT_HEADER                    = W_OBJHEAD
       CONTENTS_BIN                     = I_OBJBIN
       CONTENTS_TXT                     = I_OBJTXT
  CONTENTS_HEX                     =
  OBJECT_PARA                      =
  OBJECT_PARB                      =
        RECEIVERS                        = I_RECLIST
The email did succesfully send to the receipents but only the first page of the PDF attachement file was sent not the 2nd page.
Can any body help ?
Thanks a lot

Similar Messages

  • Need Help ASAP  my State tax form is in a PDF file and the attachment in my email says Please wait

    Need Help ASAP  my State tax form is in a PDF file and the attachment in my email says Please wait...
    I tried downloading updates like it said to but it still will not display the document.  How do I print the PDF file ASAP

    Can you give us a LOT more info?
    What email client? What version of Reader (I can only assume you even have Reader at this point)?
    Please wait? I'm sure it says more than that, right?
    Have you tried simply saving the PDF (it IS a PDF correct?) to your desktop and opening it from there?
    Did you get this form from the IRS or did it come from somewhere else? If the IRS again, what version of Reader?
    Help us help you.

  • I opened a PDFs file that was attached to an email message and now it will not close when I press "Done" as it usually does. Does anyone have a solution to suggest? Thanks.

    I opened a pdf file that was attached to an email message I received and now it will not close when I press "Done" as files usually do. Does anyone have a solution to suggest please? Thanks.

    Try double clicking your home button then force close the stuck PDF by swiping upward. Once you've done that just click the home button again to exit.

  • I've been attaching pdf's to emails forever.  All of the sudden my pdf files won't attach to any email.  I have tried from home, work, different providers, etc.  Nothing is working.  What could the problem be?

    I have been attaching pdf files to emails forever.  All of the sudden my pdf files won't attach to an email.  It just sits there and spins like it's trying to attach but quits half way through.  What could the problem be?

    Please try repairing Reader installation on your machine. Do you get any error message while attaching the pdf file?
    Regards,
    Deepak

  • 'send to' widget? I need to send pdf without downloading and attaching to an email (one click send function)

    Is there a 'send to' widget I can attach to a pdf document or form to send pdf without downloading and attaching to an email (one click send function)

    From this conversation's thread it appears that Acrobat is not the application / service at issue.
    As this user forum has as its focus "Acrobat" it seems that the OP is in the wrong place.
    Acrobat's one click send feature provides the user a "draft" email. The user still has to process ("click") through steps with the email client/service to actually get the email out and on its way.
    I'm sure that "one click" does everything is available somewhere. Considering all it'd have to do and do right it'd be rather expensive.
    Be well...

  • How to send PDF file as an attachment in email?

    Hi Folks,
    I have successfully configured SMTP and by now I can successfully send normal text messages along with .TXT files. However, when I am trying to send an email along with .pdf file as an attachment, I am getting the mail in my inbox, but I cannot open the .pdf file! I am getting the following Acrobat error:
    Acrobat could not open 'abc.pdf' because it is either not a supported file type or because the file has been corrupted
    Can any help me in solving this problem?
    Thanks in advance
    Regards,
    Faisal

    Hi Vajha,
    Thanks alot for your kind reply. I also express my apologies for responding to your reply lately.
    I beleive all the links you have sent me are talking about ABAP coding. what I am interested in is,
    is there any configuration that I am missing in SCOT (Basis side)?
    Since I am not an ABAPER, so I carry out these activities.
    Can anyone please answer the following queries of mine:
    1. Can't we send any PDF attachment in a mail from R/3?
    2. Do we have to do it through coding only?
    3. In scot we have option "All formats except fllw". But it does not work for me. Any inputs?
    Thanks in advance.
    Regards,
    Faisal

  • When I send pdf files to my iPhone 6 , I am only able to see the first page of the pdf file.

    When I send pdf files to my iPhone 6 plus (IOS 8.1.2), I am only able to see the first page of the pdf when I open the attachment on the phone.

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of OS X, select Go ▹ Go to Folder… from the Finder menu bar and copy the line below into the text box that opens:
    ~/Library
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/cups/error_log" from the file list. Post the messages from the time of the last printing attempt.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

  • I am unable to send pdf files as an attachment using Adobe Send.

    Adobe Send opens Entourage for my email which I no longer use and is in fact defunct, consequently I keep getting "Error" message from Adobe.
    I want Adobe Send to use Outlook but cannot find how I can make Adobe Send choose Outlook instead of Entourage.
    Please assist.
    Danonj

    I don't know if this is any help I have had a problem where the pdf files were not opening correctly which I think was the problem here. I spent hours of head scratching and have now found out what the problem is. Right click on the Adobe Reader Icon on the desktop. Select properties and then the compatibility tab. You will see the uppermost section in this screen is Compatibility mode. I have Windows 7 and mine was set to Windows XP. I changed that to Windows 7 and now the problem is resolved. In short use the above instructions to check you are using the right compatibility mode for the version of Windows you are using and your troubles should be over!!

  • Send .pdf-file from report query in an email

    i don't know how i can refer to a immediately created .pdf-file of a report query.
    if i klick a button following steps should happen (in background):
    1. create .pdf-file of an existing report query (where is this document stored?)
    2. send this file via email-attachment (how can i refer to the created file and use the apex_mail.add_attachment procedure)
    i hope somebody can help me!
    maddl
    Application Express 3.1.0.00.32
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

    Maddl,
    Typically, when you have a report query, associated with a report layout, you print it using a button that branches or links to a URL with a special request that initiates the download of the PDF document. In that case, you PDF is not stored anywhere on the server, it's passed from your rendering engine to your client PC / browser.
    If you want to render the PDF document on the server, and attach it to an email using add_attachment, then you would use the print API (introduced in APEX 3.1). You can call apex_util.get_print_document, with specifying the report query name and report layout name, and get back a BLOB, which you can then attach to an email. here's the links to the documentation of that API:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDDECIA
    Regards,
    Marc

  • Can you EXPORT A PDF file as an attachment in an Email to 1,000 subscribers

    Wish to send a PDF file to a group of subscribers ( 1,000 + ) thru an email attachment

    If this is the same PDF file for all the recipients then Sabian's reply is correct. If you're looking for a mail-merge operation (ie, send a customized version of the PDF to each recipient), that's a whole other matter.

  • Pdf files are not attaching correctly to emails. I have tried the reset firefox option but this has not worked.

    I use comcast for my email. I have attached scanned doc in pdf many times successfully. Now attachments will not display, when I check the attachment all I get is a blank page with the note the pdf docs may not display correctly

    Firefox 19 changed your default viewer for PDFs to the built-in viewer. Maybe it can't handle the scan due to size or other reasons?
    To change your PDF handler to the Adobe Acrobat plugin or an external application, you can update one of your application preferences. There is now a support article on this: [[How to disable the built-in PDF viewer and use another viewer]].
    Any luck?

  • Not able to send pdf file as attachment in my apple mail.

    Hi, I was easily able to attach pdf files to my apple mail.  infact I could just open a pdf file and then send it as attachment in the email earlier. but after downloading and upgrading to os X Mountain lion, I am neither being able to attach and send pdf files in my apple mail, nor can I send PDF file as an attachment.
    Is there any issue with OS X Mountain Lion.
    Issue 1.  I compose Email , then click attach > Browse > select pdf file > click attach > it shows in my Email body either as an icon or as first page of the pdf document > I send it. >>> But when the receipient opens the Email, that pdf attachment is missing. In fact When I put a cc to my self and I open the Email, the attachment is mssing in the incoming E amil.
    Issue 2. I open the PDF document > Click on File > send as attachment in E-Mail > on right, a menu appears where I select the File and click attach> I get a message
    The SendMail doesnot know how to talk to your default mail client. Please select a different mail application to use. Attaching a screen shot.
    I never had these issues earlier with my Lion OS . but since the time I have upgraded to mountain Lion OS, I am having these issues.
    Are these the Mountain Lion issues, how to fix these please.

    I believe, the software team forgot to put a button for send or share as an attachment to preview.

  • Why can't I open/see PDF files that are embedded in an email or sent through the internet?

    I can read/see PDF files that are attached to an email, but I can't see/read them if they are embedded in an email or sent through the internet.

    I have a similar problem. I can open, read, and save PDF files, but I can't view my online bank statement on my Mac. The statement opens automatically if I use a PC, but on my Mac the page says I need Adobe Reader to view my statement. I already have the latest version of Adobe Reader. The problem seems to be that that the plugin only goes to the Libray. It doesn't get installed into Safari or into FireFox either.

  • Sending a pdf file as an attachment in the workflow.

    Dear All,
    In my workflow , i want to send a pdf file as an attachment.I know this topic has been discussed in earlier threads but i couldn't make out from them.So plz if possible do give simple detailed solution for better understanding.
    Regards,
    Geet Bijlani.

    The SOFM Object should be created as follows.
    1) get the relationship using class 'CL_BINARY_RELATION' using method 'READ_LINKS'
    2) get the instance ID from INSTID_B
    3) split the value according to the keyfields in SOFM and create object SOFM
    4) bind each object to the Workitem or Email.
    with regards,
    Sudhahar R

  • How to Sender PDF file as attachment in Payload?

    Hi Experts,
         After I done some of PI scenarios, I'm stuck with one of my requirement... In requirement, "Web service" will send request to "SAP ECC 6" in order to get PO document print out in PDF file by call smartform or any form printing as usual.
         In my understand, I'm using SOAP adapter as sender and RFC adapter in receiver side, in  RFC function, I will call form and generate PDF file by using normal ABAP function, but here, how can I send PDF file as response message of SYNC call from web service.
         I try to search and read some of document and blog, some said I can attach file as Payload attachment, but no clear solution or guide to do so.
        Here is example blog that I found, I really useful
           /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
        Please suggest me in my case,
    Thanks in advance...
    Cheers,
    Terry

    Hi,
    >>In my understand, I'm using SOAP adapter as sender and RFC adapter in receiver side, in RFC function, I will call form and generate PDF file by using normal ABAP function, but here, how can I send PDF file as response message of SYNC call from web service.
    as per my blog you can attach PDF to a message only if you use abap proxy on ECC and not RFC
    the code is just copy and paste from my blog:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    so there is nothing spectacular there
    Regards,
    Michal Krawczyk

Maybe you are looking for

  • Time Machine : Deleting all local backups of one of several computers leaves files behind

    Hi, I'm in the process of transitioning my Time Machine setup. For the moment, I have a local Time Machine volume backing up three Macs to the same Backups.bakupdb folder (I had set that up two years ago before reading Pondini's Time Machine FAQ). Ba

  • How do I install a Adobe pdf printer?

    Upgrade from Acrobat Pro X to Pro XI destroyed my prior Adobe pdf printer. How do I reinstall the printer instance without reinstalling Acrobat XI? I found a reply for an earlier version of Acrobat, but I have no interest in installing the PDF printe

  • Samsung S3 - Android Phone : Problem of synchronization

    Hi, On my new Samsung S3, I use the native app to read my emails (with the "not delete" option to keep them on the server to read them on my PC with outlook). 2 different problems : 1 - When I synchronize my message, I only have some mails in my box.

  • Selective Color panel is unavailable (greyed out) in PS CS5

    Hi! I've had this problem occur in previous versions as well. I work on an image and use Selective Color to make adjustments, then, out of nowhere, the panel no longer operates. I can no longer select the colors from the drop down menu for adjustment

  • RDP on SA520 Router

    Hi Techies, Pardon me because I am just new to Cisco. Is it possible to configure RDP on SA520 Router? I did try once but no luck. Here my configuration: My objective to login to a server on a local network on VLAN 10 via RDP at home connecting to th