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

Similar Messages

  • How to send txt file  as attachement in email

    Hi Experts ,
    How to send  txt file  as attachement in email .
    which function module i use

    Hi,
    Try to use this one
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    Hope it can solve your problem!
    Good luck!
    Tao

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

  • .pdf file changed into .tmp when trying to send pdf file as attachment

    Dears,
    A few days now, .pdf files are exported as .tmp files if we try to send them as attachment directly from the adobe reader plug-in in internet explorer 8.
    Unfortunatly Outlook interprets .tmp files as harmfull, so we are no longer able to send pdf files directly.
    (screenshot in attachment)
    Is there any chance we can configure this so, pdf files are exported as .pdf instead of .tmp
    More details:
    OS               : Win XP SP3
    browser        : ie 8
    plug in          : Adobe PDF Link Helper (not sure this is the one that provides us the pdf reader functionallity dough)

    I cannot reproduce that (Adobe Reader 11.0.3, IE8, Win XP-SP3).  In fact, I cannot even see the Attach to Email option, but the file name is correct.

  • How to send word file as attachment in an email

    Hi All,
               I have a scenario where the a word document is sent using a file adapter and mail adapter puts it as an attachment and sends it to designated email group.
    Now the issue is the attachment that I am getting is text file, but i want it to be a word format file.
    Pls advice..
    Xier

    Hi,
    Just  give this a shot.
    In the file adapter.
    Set  Additional File(s) .
    and follow this document how to send additional file, rules and naming conventions and  parameters.
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Itz simple.
    <b>Cheers,
    *RAJ*</b>
    I

  • 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

  • In Adobe froms - Sending PDF file as Attachment  via email

    I have to develop a <b>PDF form</b> and one more requirement; I have to change the mail Content (body) and the Subject line which should have attached PDF file.The (Transaction Code VA21) Has the sending the Email part. My  Requirement is to <b>Change the Content (body) and the Subject</b>. 
    Requirement;
    When customer request for the quote, quote document is created in SAP (Transaction Code VA21). Promised Price, quantity, date is communicated to customer via quote output. Customer may decide to place firm order with reference to quote.
    So this form (PDF file and send via email) is used to communicate the AMAT quote to customer. The PDF file will be as a attachment in the mail. With change subject line, and content of the mail (Thanks for the Quote, Please don’t reply to this mail). It also consists of applicable terms & condition of the quote.
    Is it possible to handle the Content and the Subject of the mail in Program or Form layout (SFP). or it's Enhancement?
    How to go about it? I tried a lot. At last am contacting you. Please.............. Let me know. Very urgent.Point will be given sooon. Tnx a lot.....
    #Sinivas

    Hi,
    Yes But you can use ADOBE FORMS for that... Check this link for presentation...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0c139d3-3eae-2910-01a1-d253f2587b0e?prtmode=navigate
    Check this BLOG for sending Email through ABAP..
    Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface
    One more thing... You can download your data to a PDF file and send that PDF file via program...
    Search this Forum for more answers.. you would get plenty out of it...
    Check this thread for further information..
    Sending mail with 2 attachments
    Hope this would help you.
    Any queries plz revert back
    Good luck
    Narin

  • Sending PDF file as Attachment

    Hello Guys,
    My requirement is to send an PDF attachment which could have content in any of four languages( English,spanish,German or french).
    I am planning to use Function Module SO_NEW_DOCUMENT_SEND_API1 to send Email.
    Please let me know if it is possible to achieve this without using smartforms.
    If yes, how ?
    if no, how to achieve this using smartform.
    Appreciate your help in advance.
    Regards,
    Hema

    Hi,
    Yes But you can use ADOBE FORMS for that... Check this link for presentation...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0c139d3-3eae-2910-01a1-d253f2587b0e?prtmode=navigate
    Check this BLOG for sending Email through ABAP..
    Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface
    One more thing... You can download your data to a PDF file and send that PDF file via program...
    Search this Forum for more answers.. you would get plenty out of it...
    Check this thread for further information..
    Sending mail with 2 attachments
    Hope this would help you.
    Any queries plz revert back
    Good luck
    Narin

  • How to send pdf files from local dir through emails attachments

    I have some pdf documents in some directory, I want to send those pdf's as an attachment throu emails to the concerned person.
    Please let me know how to attach the files and send through email.
    Thanks.

    You are using Forms 4.5, which is a client/server configuration. When you create a pdf file, the file has to be written to a directory that is accessible from your PC. D:\ is acessible, /tmp/ not (that is a directory on some Unix server). If you want to write files to a Unix server, you have to set up Samba and map a drive from your PC to he Unix directory.
    Since you are creating multiple pdf files, you will have to wait until all reports are finished and mail them afterwards. You can create a batch script to mail the files.

  • How to send PDF file to XI

    Hi All:
    I need to send <b>pdf</b> file to SAP XI, can I achive it using FILE adapter??
    If not with File adapter then please let me know how I can send it to XI?
    Thanks
    Aditya

    Hey
    do you wnat to do some mapping in XI or simple transfer the file to the receiver system?
    if its simple transfer then do a bypass scenario without any IR objects
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Thanx
    Ahmad
    Message was edited by:
            Ahmad

  • How to send zip file as attachment through email

    Hi All,
    I am having a requirement that I need to download the internal table data into .txt file and I need to zip the text file. And this zip files needs to send to the customer through email.
    I am able download the data into .txt and able to zip the file. But I am not able send the .zip file through email.
    I know that we can send .xls, .txt, .csv and also .ppt, .doc file types we can send as an attachement through abap program. But I don't know about .zip files. Is there any possibilty to send .zip file as an attachment thorugh email.
    Can any one help me how to send a .zip file thorugh email as an attachment. 
    Regards,
    vinod

    hi Vinod,
    Can you please tell me how you have zipped the file.
    I am having a text file in application server. I need to zip that file. Then the middleware moves it to Legacy system.
    I used the following code. With this I am having the data in Binary format which my midleware cannot understand.
    What I need on the whole is just to reduce the size of the file.
    form ZIP_FILE .
    DATA: lt_data TYPE TABLE OF x255,
          lt_textdata TYPE TABLE OF x255.
    DATA: ls_data LIKE LINE OF lt_data.
    DATA: lv_dsn1(100) VALUE '/ECD/120/GIS/FTP/IB/DNBPAYDEX.TXT'.
    DATA: lv_dsn3(100) VALUE '/ECD/120/GIS/FTP/IB/DNBPAYDEXZIP.zip'.
    *DATA: lv_dsn3(100) VALUE '/interfaces/SM5/test.zip'. " Contains sample1.xls and sample2.xls
    DATA: lv_file_length TYPE i.
    DATA: lv_content TYPE xstring.
    DATA: lo_zip TYPE REF TO cl_abap_zip.
    CREATE OBJECT lo_zip.
    Read the data as a string
    clear lv_content .
    OPEN DATASET lv_dsn1 FOR INPUT IN BINARY MODE.
    READ DATASET lv_dsn1 INTO lv_content .
    CLOSE DATASET lv_dsn1.
    lo_zip->add( name = 'sample.TXT' content = lv_content ).
    lv_content = lo_zip->save( ).
    *clear lv_content .
    Conver the xstring content to binary
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = lv_content
    IMPORTING
    output_length = lv_file_length
    TABLES
    binary_tab = lt_data.
    OPEN DATASET lv_dsn3 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT lt_textdata INTO ls_data.
    TRANSFER ls_data TO lv_dsn3.
    ENDLOOP.
    CLOSE DATASET lv_dsn3.
    IF sy-subrc EQ '0'.
        MESSAGE s999(zfi_ap_gl) WITH text-t10.
      ENDIF.
    Can you please help.
    Thanks Aravind

  • Adobe Reader X v10.1.4 no longer sends pdf file to attached printer

    wants to save prn file.  (Adobe print command shows correct, default printer name.)  Printer works fine with other applications and used to print pdf files from Reader X even 2 weeks ago.  Windows 7 x64 with  MS Security Essentials - all systems up to date, no system changes (hard or soft) other than regular security and version updates.
    Ran Adobe Repair and rebooted - print command showing attached printer still asks where to save the prn file instead of sending job to turned on printer which works fine just before and just after Adobe fails to use it.  Will install older version of Reader, Adobe offers v9.5 if no one has a better solution since I am clueless.

    Thank you so much for trying to help.
    From your question I gather you have Reader X v 10.1.4 and have no trouble printing if you send to your printer.
    Alas I'm pointing to my one real printer, the Brother I'm sending the pdf file to print.  Worked fine for years until a few days ago.  Now when I hit "Print" on the bottom right of the below panel I get the "Save As" screen asking where I wish to save the pdf file name I'm trying to print followed by .prn.
    I have no problems in any other application printing.  If installing an earlier version of Adobe Reader proves it's not v 10.1.4 specifically, I'll have to try and send the prn file to the printer, perhaps by using the old DOS type command, or see if I can print pdf files on another system.
    You just made me think to try my backup PC with Adobe Reader X v10.1.0 - This works fine, both on its own printer and on the below named Brother attached to this system.  So the problem is either v10.1.4 or some interaction of Adobe with very recently installed Microsoft security or other OS updates for 64bit Windows 7.
    THANK YOU!

  • How to send pdf or excel attachment as saved alv layout in email

    Hi Guru,
    I am developing a report in which, i am sending report as excel attachment after clicking a button on top of alv grid, and pdf attachment after clicking another button on top of alv grid. I am sending mail by two ways they are:
    1) I am populating my internal table value in separate internal table and converting that to string and sending email as excel attachment.
    2) And am converting report as spooljob, and using abapspool 2 pdf function module i am converting spool to pdf, after that am send that pdf as mail attachment.
    Now my requirement is i need to send email attachment as layout which is displayed in the alv screen, even i hide a column and  change the  layout  it is going with all the columns. What should i do for this problem.
    Regards,
    Rithika

    Hi,
    Check if the below steps will solve the problem.
    * Get the run time ALV layout (field catalog) using the below method.
         data: r_grid TYPE REF TO cl_gui_alv_grid.
         CALL METHOD r_grid->get_frontend_fieldcatalog
              IMPORTING
                   et_fieldcatalog = t_fcat.
    * Adjust the download table according to t_fcat.

  • How to send pdf files to ipad on os x mavericks?

    Hi,
    Before uploading to Mavericks and having ibooks on my iMac I used to manage all my pdf files on iTunes and then put them on my iPad. It was all very simple and the same as music files management.
    Now the tag books was remove from itunes and with ibooks i cannot manage my pdf and send them to my ipad.
    1. I cannot manage the info on the pdfs I put on ibooks like I used to do on iTunes. I cannot change name, author, genre, etc...
    2. I cannot put them on the ibooks of my ipad.
    Thus I will have to stop using ibooks...
    Any ideas?

    Hi,
    the link in your post is broken, the trailing "a" should be removed. The correct URL is: https://discussions.apple.com/docs/DOC-3083
    I followed the instructions there and when navigating to "http://<your local host>/" I  get "It Works". However, when attempting to access my local user directory, I get a 403 Forbidden error:
    Forbidden
    You don't have permission to access /~<short user name>/index.html on this server.
    Of course I replaced <short user name> with my actual short user name. I'd reply there but I don't seem to be able to.
    The other link in your post relates to OS X Server, which I don't have, I'm running plain OS X 10.9.4. Any ideas?

  • How to send PDF file to fax number

    Hi
    I am using
    COLDFUSION 8," I have a  small screen to take the fax number and want to fax the PDF file  to that fax number from my system using  ColdFusion".
    I have no idea to implement this. Any help will be appriciated.
    Thanks

    I think you owe Paul a big ol' beer there, on your behalf he's managed to type "fax coldfusion" into Google.
    Did you even try this yourself? Or did you just want someone else to do it for you? Seriously, I don't know what it is on here lately but enough with everyone being too lazy to do their own jobs.
    Credit to Paul for bothering to reply.

Maybe you are looking for

  • Windows and iTunes do not recognize iPod

    Help! I have read everything in this forum and have not found the solution yet. I have the 30gb ipod video and I've had it for almost a month now and it doesnt work. I've tried the 5r's.. didnt do anything.. when i connect it to my laptop, it says it

  • Sleep of Death?!?   Please Help!

    Hi guys i have this strange behavior of my Macbook Pro...  its there since some weeks. (Latest Apple Update?!?) When i put it to sleep by command (applesymbol topleft) it will nearly instantly crash to a grey screen with crash warning on it.. Thers a

  • How to Branch to next page in Smartforms

    Hi all,      In Smartform, i want to go to next page when all the records in the main window is displayed. For this I did Following thing, 1) created command node, did the neceeasry things like go to next page ...condtions given.     I did this in ma

  • File type .cbv displays contents rather than gives download options

    I've just changed website hosting supplier; both old and new suppliers run Linux services. My site is scottishcca.co.uk - a correspondence chess site - and I'm using Win7 and Firefox 26.0. There's a page (members/downloads) where members can download

  • Restore Point?

    I use a G5 and have Skype installed. Over the weekend we lost power and after re-start I noticed Skype did not re-start as usual and I was being asked to re-install. After I did all my bookmarked and recent chats were deleted. I would like to restore