Sending documents as attachments via email

Hi,
I have a selection screen with purchase order number as "select-options" and 2 radio buttons one for downloading and opening the SAP Script output to the local file and the other raido button would convert the SAP Script output into .pdf file and send that file as an attachment via e-mail to the receipent(only one).
I'm through with the first operation. Now need to know about the e-mailing procedure and the function module(s) to be used and their import, export, etc. parameters.
Thanks & Regards,
Rajesh

Hi Rajesh,
You can use standard SAP program <b>RSTXPDFT4</b> to convert SAPSript spools request to PDF.
Also please check this link for sample code to sending an attachment (PDF) via email:
http://www.sapgenie.com/abap/code/abap31.htm
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • Attachments via email from my ipad?

    How can I send pages and numbers documents as attachments via email from my ipad?

    There are instructions for Pages here http://help.apple.com/pages/ipad/1.4/#tan72489eaa , but basically it's down via the document itself in the Pages app. Numbers help is here http://help.apple.com/numbers/ipad/1.4/#tan727195cd

  • I'm having a problem sending a word doc via email. I have Mac for Office 08, when I save the document as a .doc or .docx, and send it to someone, they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon. How do I fix?

    I'm having a problem sending a word doc via email. I have Mac for Office 08, and I'm using Mavericks OS. When I save the document as a .doc or .docx, and send it to someone, (doesn't matter if its safari, chrome or firefox or on my yahoo or gmail accounts) they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon and I can read it. How do I fix?

    I suggest you post on the Microsoft Mac forums since it's their software you're having issues with.
    http://answers.microsoft.com/en-us/mac

  • Word saving documents as binary files- can't send documents as attachments

    I've had my Macbook for about 9 months. During the first 6 months, I could send attachments via email perfectly fine. After about 6 months, something happened and the files could no longer be opened after being attached. I tried sending some attachments to myself and found out that the documents were being sent as binary files.
    I also backed up my documents onto an external hard drive. When I opened the documents on a Windows computer, the Word documents that I created during the first 6 months could be opened. However, the most recently created documents couldn't be opened by my computer.
    I decided to do an erase and install on Saturday. Afterwards, Word was working fine and I was able to send documents as attachments. This morning (Tuesday) I tried to send attachments again and it didn't work! Again, the documents were binary files.
    I'm not sure what to do because it was working fine for three days, but now it's not working anymore. I think something must have happened during those three days that corrupted my computer?
    Has anyone had a similar problem? Can anyone help?
    Sorry I know it was a long post but I wanted to give more information in case it would give some clues. I feel I should add that I've been having quite a few problems with my Macbook, e.g. screen freezing, DMGs not loading properly, getting some pop ups
    Message was edited by: MissIndecisive
    Also wanted to add that I've had my logicboard replaced recently because of problems such as freezing, so I don't think it should be a hardware problem.

    Since Word is not an Apple product, you'll get better response if you use a forum dedicated to Microsoft's Mac products such as <http://groups.google.com/groups/dir?sel=33607053> rather than an Apple forum that focuses on compatibility between Macs and Windows.
    Be sure to search the forum first in case someone has already had a similar question answered. You'll get your answer faster this way. Post your question in the forum if you don't find anything that helps you

  • Sending a binary attachment via email, looking for a more clean way

    Hi experts.
    I finally managed to send a binary attachment via email. Why "finally"? Never done before!
    Also I got to manage the "not standard" .SAP file extension, because the attachment is a transaction link.
    So let me explain how i did it:
    take SO_NEW_DOCUMENT_ATT_SEND_API1, filling following input data:
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = st_docdata
          commit_work                = 'X'
        TABLES
          packing_list               = lt_packlist
          contents_hex               = lt_hex
          contents_txt               = lt_content
          receivers                  = lt_recv
        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.
    But how to fill lt_hex? Well I did not found a way to transfer text data into raw data structure (lt_hex is type SOLIX).
    So, here is the trick:
    fill another table, lt_bin type SOLISTI1, with attachment content (text data);
    dump lt_bin content to a file on application server, having care to specify TEXT MODE and UTF-8 encoding;
    now reopen the same file in BINARY MODE and transfer content to lt_hex.
    Why I did not use parameter
    content_bin
    ? Because SAP ECC 6 is unicode enabled (I think UTF-16) and file has got to be UTF-8 or ASCII. Also, packing_list for attachment must specify binary tranfer mode. And doing so each UTF-16 character (2 bytes) is split into 2 characters (1 char + 1 NUL byte). Attachment is now unusable.
    What is the question? Here it is: how to fill lt_hex data directly from text (UTF-16) data, avoiding conversion errors?
    Thank you in advance.

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • Send CSV or table via email in daily job?

    Hello,
    I built a application where our employees can order meals. In case the whole application and everything crashes down, the DBA has 2 days to restore the application, database, etc...
    To "survive" the 2 days I want to make a daily export of the necessary data, that the kitchen can continue its work.
    Now I planned to make a view with the necessary data and export this as plain text in an email.
    Is there another better possibility? Maybe create a CSV file and attach this to a email and send it via a daily job? Or is it possible to send a whole table via email?
    Everything should work automatically via a job.
    Thank you so much,
    Lisa

    You could have a daily batch job run, where the job pulls the required info into a report, generates the report and sends it to required folks..: http://nzchaudhry.wordpress.com/2011/06/28/sending-report-as-email-attachment-in-oracle-apex/
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How to generate payment advice in F110 and send it to Vendors Via Email

    Dear SAP Experts
    Could anybody tell me how to generate payment advice in F110 and send it to Vendors Via Email?
    It would be much appreciated if someone can provide the configuration procedure, thanks so much in advance.
    Cheers & Best Regards
    Ray

    Hi Sama,
    Thanks for your post, here I just share some of my idea.
    The following step is to configure the payment advice.
    In OBVU (payment methods in cpy code) I entered my payment advice form
    In OBVU (payment methods in cpy code)  set  "Always pyt advice"
    In OBVCU (payment method by country)  leave the payment medium program (RFFOD__T)
    For the email sending program, should develp some customized program to realize that, Thanks.
    Cheers & Best Regards
    Ray

  • Why cant I send a vid clip via email, it just won't attach ?

    Why can't I send a vid clip via email, it just won't attach ?

    You could compress it by creating a zip file - right click on the file and then select 'Compress' - a zip file will be created. Although when you're compressing a single file the resulting .zip files tends only to be a litlle small than the original.
    A much better alternative would be to sign up for dropbox.com - which literally puts a folder on a desktop that syncs with 'the cloud'. Then you can share your files from there (as well as have them available form any browser whereever you are!. It's super easy to use - but really useful!

  • Please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    Hi kevinv1987,
    It doesn't sound like the PDF was password protected (or Adobe Reader would prompt you for a password). Instead, it sounds like that file may be marked locked by your operating system. Are you on Mac OS or Windows? In either case, here are instructions for removing the lock icon from the file:
    Remove the Lock Icon from a Folder in Windows 7 (check Microsoft's website if you have a different version of Windows)
    On Mac OS, select the file in the Finder, and choose File > Get Info. Then, just deselect the Lock checkbox.
    Please let us know how it goes.
    Best,
    Sara

  • I cannot send a Pages document, Word format via email from my ipad if it has a picture in the the doc.  I can send a Word doc if it does not have a pic in it or pdf with a pic.  Any thoughs why a word doc with a pic in it won't email in Pages?  thanks

    I cannot send a Pages document, Word via email if the doc contains a picture.  If I email a Pages doc without a pic in Word format or pdf with a pic it with go through to sender?  Not sure why Pages won't send Word doc with a picture in it.  I check the security on the email recipient and the email doesn't get blocked or throw in the junk box?
    thanks,
    drainguy41

    If you have upgraded to Mountain Lion, Save As… has returned to the File menu when you hold down the Option/alt key. But you don't really "save" as other file types, you translate & export as Word or RTF or text or PDF & that is easily done by going to File > Export or Share > Export.
    Also, please do us all a favor & don't use all capitals in your posts, either the body of the post or the title. All caps is the internet equivalent of shouting & is very hard to read.

  • Sending Pics From iPad via email

    I send 10 pictures from my iPad via email.  I open the email and all 10 pics arrive as attachments.  All the attachments have the same file name "image.jpg".  how can I change this so all the pics I send have a distinct filename?

    Welcome to Apple Discussions
    iWork documents are packages, a special type of folder. Even though with iWork '09 & iWork for iPad they no longer appear as packages, they still are. On a Mac right-click on the file & look for show package contents. If that option is not there it is a "flat-file" but it can still be unzipped.
    Anyone with Stuffit Expander installed with default settings & who saves Pages files to the Desktop will find folders instead of just the document. This is because Stuffit "sees" the file for what it really is, a package. You can check for yourself by changing the extension from .pages to .zip & unzip the file. You can't e-mail a folder which is why many mail clients balk. Apple Mail will automatically zip a folder, other e-mail clients don't, especially web-based e-mail. I think you may be mailing as a Pages document rather than Word or PDF.

  • Viewing Word documents from attachments in email

    I received a Word document as an attachment via email. I clicked on the document (.doc) and my iPhone doesn't allow me to view it. Any suggestions?

    People can not open my pages attachments in their emails. It was working fine but now they cant be opened. What is going on?

  • Sending attached pdf format via email

    Hi,
    i got one requirement. i have one program. When i execute the program it has to send the
    Employee1, Employee2,employee3 data to Manager1 email id via email. The employee1, employee2, employee3 data should be stored in one folder and send it via email. I can send it individually like employee1 data manager1,again employee2 data to manager1 and again employee3 data to manager1.
    But what i want is i have to store all these three pdf data  in one folder and send at one time.
    similarly i have manager2,manager3...under managers some employess are there?
    is it possible? if yes, could you please help me in this regard? Thanks in advance.

    HI,
    Please find below sample code..it may help you..but you need to do bit modification
    DATA : LS_DOCDATA LIKE SODOCCHGI1,
             LT_DOCDATA TYPE STANDARD TABLE OF SODOCCHGI1,        " Table for subject
             LS_CONTENTS_MSG LIKE SOLISTI1,
             LT_CONTENTS_MSG TYPE STANDARD TABLE OF SOLISTI1,     " table for attachement
             LS_PACKING_LIST LIKE SOPCKLSTI1,
             LT_PACKING_LIST TYPE STANDARD TABLE OF SOPCKLSTI1,   " Table for Document type and length
             LS_OBJECT_HEADER LIKE SOLISTI1,
             LT_OBJECT_HEADER TYPE STANDARD TABLE OF SOLISTI1,     " Table for Header
             LS_CONTENTS_TXT LIKE SOLISTI1,
             LT_CONTENTS_TXT TYPE STANDARD TABLE OF SOLISTI1,      " Table for mail contents
             LS_RECEIVERS LIKE SOMLRECI1,
             LT_RECEIVERS TYPE STANDARD TABLE OF SOMLRECI1,        " Table for receiver,
    Subject line
      LS_DOCDATA-OBJ_LANGU = sy-langu.
      LS_DOCDATA-OBJ_NAME = text-002.
      LS_DOCDATA-OBJ_DESCR = 'bunu'.
      LS_CONTENTS_MSG-LINE = 'BUNOO' .
      APPEND LS_CONTENTS_MSG TO LT_CONTENTS_MSG.
    LS_CONTENTS_TXT-LINE = text-009.
      APPEND LS_CONTENTS_TXT TO LT_CONTENTS_TXT.
      clear LS_CONTENTS_TXT.
    BREAK-POINT.
    Content structure
      LS_PACKING_LIST-TRANSF_BIN = space.
      LS_PACKING_LIST-HEAD_START = 1.
      LS_PACKING_LIST-HEAD_NUM = 0.
      LS_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE LT_CONTENTS_TXT LINES LS_PACKING_LIST-BODY_NUM .
      LS_PACKING_LIST-DOC_TYPE = 'RAW'.
      append LS_PACKING_LIST to Lt_PACKING_LIST.
    Create attachment notification
      LS_PACKING_LIST-TRANSF_BIN = 'X'.
      LS_PACKING_LIST-HEAD_START = 1.
      LS_PACKING_LIST-HEAD_NUM   = 1.
      LS_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE LT_CONTENTS_MSG LINES LS_PACKING_LIST-BODY_NUM.
      LS_PACKING_LIST-DOC_TYPE   =  'PDF'.
      LS_PACKING_LIST-OBJ_DESCR  =  'PDF ATTACHEMENT'.
      LS_PACKING_LIST-OBJ_NAME   =  'DEMO'.
      LS_PACKING_LIST-DOC_SIZE   =  LS_PACKING_LIST-BODY_NUM * 255.
      APPEND LS_PACKING_LIST TO Lt_PACKING_LIST.
      LS_RECEIVERS-RECEIVER = 'WRITE THE MAIL ID HERE'.
      LS_RECEIVERS-REC_TYPE = 'U'.
      APPEND LS_RECEIVERS TO LT_RECEIVERS.
      LS_RECEIVERS-RECEIVER = 'WRITE THE MAIL ID HERE' TO SEND IN CC FIELD'  .
      LS_RECEIVERS-REC_TYPE = 'U'.
      LS_RECEIVERS-COPY = 'X'.
      APPEND LS_RECEIVERS TO LT_RECEIVERS.
    Send mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA                    = LS_DOCDATA
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
        TABLES
          PACKING_LIST                     = Lt_PACKING_LIST
      OBJECT_HEADER                    =
       CONTENTS_BIN                     = LT_CONTENTS_MSG
         CONTENTS_TXT                     = LT_CONTENTS_TXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
          RECEIVERS                        = LT_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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Ansumesh

  • How do I send entire pdf form via email from web browser

    How do you send a pdf completed form on your web browser via email to email address?

    Hello Wayne, see no offense in this message
    There is a faster scheme.
    Copy the range of cells to send (it may be an entire table)
    Enter the application entitled Preview.
    File > Create a new doc from the clipboard
    File > Send the selected PDF document (I'm not sure of the exact wording).
    It's the highlighted one.
    Bingo, it will create a mail with the PDF embedded.
    Yvan KOENIG (VALLAURIS, France) jeudi 3 novembre 2011 22:32:21
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

Maybe you are looking for

  • Can I take my new MacBook Pro retina to an apple store for them to transfer files

    Can I take my new MacBook Pro retina to an apple store for them to transfer files from my PC? I am migrating from window 7. I was planning on doing myself but it looks like you need two thunderbolt to Ethernet adapters and two Ethernet cables? What i

  • Subtitles in iTunes 11.

    I have a movie file that has subtitles in multiple languages, however, when played in iTunes 11, only one option is available.  How do I enable the other subtitle tracks?

  • Wenever i try to install 2.0, i get backup error

    guys, when i try to install the new 2.0 update, i get this backup error (-5000) which says that it like wont work, and if i continue it will erase like everything on my ipod? i click cancel cuz i think that would be horibble if it did that! what shou

  • Close window with a keystroke?

    Is it possible to close out a window using a keyboard shortcut? also for that matter is there a list of keyboard shortcuts for Leopard?

  • MS Analysis Services data extract

    <p>Hi,</p><p> </p><p>Anyone have any idea why after running CreateStarSchema functionvia API call, it creates an empty FACT table yet doesn't errorout?</p><p>This is for HFM 9.2 extracting data to MS SQL AnalysisServices.</p><p> </p><p>thanks</p><p>