Smart Forms - Attaching HTML file as an attachment in Mail

Hai,
I have following requirements. I have to send the Payment Advice document output as a HTML format to the vendors.
I am able to get the smartforms output as html file. The output of smartforms i am capturing
   call function '/1BCDWB/SF00000170'
      exporting
        control_parameters = w_control_parameters
        output_options     = w_output_options
        user_settings      = 'X'
        w_t001             = w_t001
        w_reguh            = w_reguh
        w_regud            = w_regud
        w_e1idrs1          = w_e1idrs1
      importing
        job_output_info    = w_job_output_info
      tables
        t_item             = t_item
      exceptions
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        others             = 5.
    w_xmloutput = w_job_output_info-xmloutput.
*-SAP Smart Forms: Result of XSF Transformation
    w_htmldata  = w_xmloutput-trfresult-content[].
Currently the w_htmldata informations are stored in the form of RAW 1024 characters.
Using the below mentioned FM the attachment information i am passing through
       contents_txt               = it_message
parameters.  The contents_txt support only 255 characters. But the smartforms returns RAW 1024 characters. When the HTML attachment is not showning the content properly and the data displays is misaligned. Kindly give me the suggestion how to overcome this issue !
  call function 'SO_DOCUMENT_SEND_API1'
      exporting
        document_data              = w_doc_data
        put_in_outbox              = 'X'
        sender_address             = ''
        sender_address_type        = ''
        commit_work                = 'X'
      importing
        sent_to_all                = w_sent_all
      tables
        packing_list               = t_packing_list
        contents_bin               = t_attachment
        contents_txt               = it_message
        receivers                  = t_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.

Have you upgraded to Yosemite?  Then you could send the attachment using Mail Drop.
You can use Mail Drop to send files that exceed the maximum size allowed by the provider of your email account. Mail Drop uploads the large attachments to iCloud, where they’re encrypted and stored for up to 30 days.
If you have an iCloud account and you’re signed in to iCloud when you click Send, Mail automatically sends the attachments using Mail Drop. Mail Drop attachments don’t count against your iCloud storage.
If you don’t have an iCloud account, or if you’re not signed in, Mail asks you whether to use Mail Drop (select “Don’t ask again for this account” to always use Mail Drop).
If a recipient uses Mail in OS X Yosemite, the attachments are automatically downloaded and included in your message just like any other attachment. For other recipients, your message includes links for downloading the attachments and their expiration date.
You can turn Mail Drop on or off for an account. Choose Mail > Preferences, click Accounts, select your account, click Advanced, then select or deselect “Send large attachments with Mail Drop.”

Similar Messages

  • How to Email a remote html file as an attachment

    Hi ,
    I want to mail an html file as an attachment using JAVAMail. I have only the URL of the remote file.How can i do this? Please show me a way.......

    I basically want to send a multipart object as an attachment using java mail.My multipart object contains a remote html file contents and related gifs. I want to send the whole object as attachement so that the user can save it locally and view the html and embedded gifs.this is what i did
    MimeMultipart multipart = new MimeMultipart("related");
    messageBody.setContent(totContent,"text/html");//totContent is the html file contents.
    multipart.addBodyPart(messageBody);
    //loop to embed the gifs
    messageBody.setDataHandler(new DataHandler(new URL(imagepath)));
    messageBody.setHeader("Content-ID", imgName);
    multipart.addBodyPart(messageBody);     
    //loop ends
    i want this multipart to be send as an attachment. Please enlighten me.......this is a bit urgent........

  • Emailing attached HTML file with embedded applet

    Are there any mail servers that could reject emails with attached HTML file that includes embedded applet in a Java Plug-in Object tags? It has an absolute path to a server where the applet resides.
    I have seen very few cases where Symantec Anti Virus filter is dropping the messages because of a mime problem. It appears that only two workarounds are to upgrade the Symantec product and to bypass our domain.
    Is there anything I could do to prevent the mime problem issue? I hope the Java applet is not an issue.
    John

    pberardi1,
    I hope you get better soon from the accident you must have had. Surely you must be in the hospital or something, otherwise by now surely you'd have had the courtesy to say a simple
    "Thank you".
    So,
    "You're welcome".

  • Attaching HTML file and sending through mail

    Hi
    My Requirement is
    I want to attach HTML File and send through mail id's.
    But there are number of html files
    user can select any  one file.
    it has to attach and send to the mail id.

    Hi V,
    check the link:
    http://wiki.sdn.sap.com/wiki/display/Snippets/SendEmailwithHTMLattachment.

  • How can i convert  my invoice which is in smart forms to xml file

    how can i convert  my invoice which is in smart forms to xml file.

    Hi Anil,
    Please go through this link:
    1. XSF stands for XML for Smart Forms. It is important to contrast XSF with .... The eDocx script engine can provide a script to convert the file format to an 
    http://www.ossincorp.com/Black_Box/Black_Box_4.htm
    please rewrds if found helpful.
    Regards,
    Alok

  • Service cannot be reached while sending a smart form in html format

    Hello,
    I'm trying to send a smart form as email in html format and I'm getting the following error message at the beginning of the message:
    Service cannot be reached
    What has happened?
    URL http://localhost/SAP/BC/BSP/SAP/SMART_FORMS/DEFAULT.CSS call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XD1 with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    Error code:ICF-NF-http-c:100-u:MYUSER-l:D-i:my_test_system:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team
    .SYSTEM div#B.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.SYSTEM div#L.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.SYSTEM a.SYSTEM span#H.char{ font-weight : bold ;}.SYSTEM span#I.char{ font-style : italic ;}.SYSTEM span#U.char{ text-decoration : underline ;}#PAGE1-001.page@media screen {#MAIN.win{ overflow : auto ;}}@media print {#MAIN.win{ overflow : hidden ;}}#PAGE1-001.page #MAIN.win.AGGR-BILL div#B.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.AGGR-BILL div#F.par{ font-family : "Arial" ; font-size : 8pt ; font-weight : normal ; line-height : 3.39mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#L.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#R.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : right ; clear : both ;}.AGGR-BILL a.AGGR-BILL span#H.char{ font-family : "Arial" ; font-size : 12pt ; font-weight : bold ;}.AGGR-BILL span#I.char{ font-family : "Arial" ; font-size : 12pt ; font-style : italic ;}.AGGR-BILL span#K.char{ font-family : "Arial" ; font-size : 8pt ;}.AGGR-BILL span#M.char{ font-family : "Arial" ; font-size : 10pt ;}.AGGR-BILL span#U.char{ font-family : "Arial" ; font-size : 12pt ; text-decoration : underline ;} div#PROJEKTE.tab@media screen { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media print { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media screen { div#PROJEKTE.tab table.tr{ margin-top : -1px ;}}@media print { div#PROJEKTE.tab table.tr{ margin-top : 0px ;}} div#PROJEKTE.tab table.tr div#PROJEKTE.tab .topline{ border-top : 1pt solid black ;} div#PROJEKTE.tab .bottomline{ border-bottom : 1pt solid black ;} div#PROJEKTE.tab .leftline{ border-left : 1pt solid black ;} div#PROJEKTE.tab .rightline{ border-right : 1pt solid black ;}#PROJEKTE.tab #sf--LTYPE1.tr td#C1
    and here comes the email's body: bla,bla,bla... bla.
    Do you have any idea how can I solve the problem with the css file? Any suggestion is welcome!
    Regards,
    Jaime

    I just solved the problem by activating the service  /SAP/BC/BSP/SAP/smart_forms/ through the transaction SICF. So I close the thread!
    Jaime

  • Attaching .pdf files in the workflow e-mail

    Hi,
    I have a custom workflow which sends a notification to the external vendor.In this scenario,i need to send the details as an attachment(.pdf files).
    I have installed CMSDK and iAS.Is there any sample code / example to integrate workflow with CMSDK??
    or atleast can i find the exact workflow document where can get this info?
    Please help.
    Thanks,
    lakshmi.

    Hi Raja,
    Thanks for your input.
    I have done some work on this but i am getting the following error..i am sending you the sample code too..
    please help.
    Error
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'TEST_LOB'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Error Name: -6550
    Error Stack:
    Wf_Notification.GetAttrDoc(40486, TEST_DOC, text/html)
    table : bob_lob
    c2 : column in bob_lob where i stored the .pdf document
    create or replace procedure test_lob (document_id in varchar2,
    display_type varchar2,
    document in out clob,
    document_type in out varchar2)
    as
    doc_lob clob;
    itemkey VARCHAR2(20);
    itemtype VARCHAR2(10);
    begin
    itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
    itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
    document_type := 'application/pdf';
    select c2
    into doc_lob
    from bob_lob
    where c1 = 5;
    document := doc_lob ;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end;

  • How do I email an attached pdf file to stationary templates in mail.

    How do I email an attach PDF file using the stationary templates in mail on lion.
    I attached the PDF but when try to send it I get back a dialog box that sez:
    "This message cannot be sent because it uses stationery and contains attachments that are not images. Messages with stationery cannot contain attachments that aren’t images. You can cancel and return to editing the message or remove the stationery in order to send." My choice is to cancel or remove stationary.
    Is there a third party solution? Any suggestion?

    No
    Envoyé depuis Molto pour iPad
    De: pwillener
    Envoyé: jeudi, février 12, 2015 07:14 AM
    À: René Allamelle
    Objet:  how do I compress a large pdf file to fit in an email?
    how do I compress a large pdf file to fit in an email?
    created by pwillener in Adobe Acrobat.com Services - View the full discussion
    But generally it is never a good idea to send e-documents as email attachments.  Better use a file sharing service (Acrobat.com, Dropbox, Google Drive, Microsoft OneDrive, ..), upload the document, then send the shared download link via email.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187079#7187079 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187079#7187079
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How to Attach a File Without Embedding It on Mail?

    How to Attach a File Without Embedding It on a Mac?
    Tamer is not working and I prefer not to use TERMINAL (defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes)
    Right click send as icon is not a solution.
    Any other options? Thanks!

    bbp@bcn wrote:
    I always receive the same response, "Can you send it as an attachment?"
    and I think It does something to do with the way I send files.
    Thanks
    It's nothing to do with the way you send them. Every mail client chooses how to cope with attachments: in some there is a preference setting but in many cases it automatically displays embedded images. Even where there is a preference setting it's up to the person receiving the email: you can't control it. Why are they so fussed about your sending as an attachment? The image can be saved easily enough, usually by dragging it to the Desktop, or by a button to save attachments. If they really want this you are going to have to zip it, there isn't any other way round it.

  • Sending a smart form as html

    Hi experts
    I have created a smart form which includes a logo (graphics). when this form is sent, through the system, the logo is not shown.
    Instead, the space of the logo is there but empty.
    I need you advice!
    best regards;
    Husainoh;;

    Hi,
    if you send the smartform as an html document pictures are AFAIK not embedded. They are just linked. If you use a picture from the sap mime repository you have to make it accessable. This requires that the receiver of the mail has a web access to the sap server and the ICF services for the mime repository have to be open and need a service user so the picture can be read.
    Rgds.
    Roman

  • How can I attach a file while replying to a mail ?

    Hello experts,
    I just got an iPad 3 and I am trying to figure out how to attach a file to an email that is already drafted or while replying to a mail.
    Am still exploring the features. If it is not there is Apple planning to add this feature ? I wonder how this basic feature is not available in iPad..
    -Durjay Mishra

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

  • AppleScript: Change an order of texts and HTML file in the body of Mail

    I would like to know how to insert a HTML file below the Signature in the body of Email.
    This is my code,,,,
    set the clipboard to (read (choose file) as «class RTF »)
    set theBody to "Hello"
    tell application "Mail"
    activate
      set theMessage to make new outgoing message with properties {content:theBody, visible:true, subject:"mysubject"}
    end tell
    tell application "System Events"
      tell process "Mail"
      set focused of UI element 1 of scroll area 1 of window 1 to true
      keystroke "v" using command down
      end tell
    end tell
    What I would like to do is an order of body going like
    From the top:
    Body
    Signature
    HTML rtf file
    Please teach me how to do!
    Cheers,

    Hi,
    murrayshimada wrote:
    Wondering how about inserting a HTML between body and signature? If you have a free time, please give me a tip again. Anyway, thank you for your help. Cheers,
    You can set the order like this:
    set the clipboard to (read (choose file) as «class RTF »)
    set theBody to "Hello" & return & return -- need two return character to paste the clipboard after the body
    tell application "Mail"
        activate
        set theMessage to make new outgoing message with properties {content:theBody, visible:true, subject:"mysubject"}
        my pasteToEnd()
        delay 0.6 -- need a delay to not remove the pasted text.
        set message signature of theMessage to signature 1 -- this put the signature after the text
    end tell
    on pasteToEnd()
        tell application "System Events"
            tell process "Mail"
                set focused of UI element 1 of scroll area 1 of window 1 to true
                key code 125 using command down -- (arrow down + command down) to set the insertion point to the end of text 
                keystroke "v" using command down
            end tell
        end tell
    end pasteToEnd
    Here's another example, the order =  the HTML, the body and the signature:
    set the clipboard to (read (choose file) as «class RTF »)
    set theBody to "Hello"
    tell application "Mail"
        activate
        set theMessage to make new outgoing message with properties {content:"theBody", visible:true, subject:"mysubject"}
        my pasteAtBeginning() -- at beginning
        delay 0.6 -- need a delay to not remove the pasted text.
        set message signature of theMessage to signature 1 -- this put the signature after the text
    end tell
    on pasteAtBeginning()
        tell application "System Events"
            tell process "Mail"
                set focused of UI element 1 of scroll area 1 of window 1 to true -- this set the insertion point at beginning
                keystroke "v" using command down
                keystroke return & return -- to put a blank line between the RTF and the body
            end tell
        end tell
    end pasteAtBeginning

  • How to send an Html File as an Attachment tht has style included?

    Hi Friends,
    If anybody has sample code ...
    please post it here..

    Not sure what you're asking for but have you seen the sendhtml.java
    demo program included with JavaMail?

  • The attach a file button (in netzero e-mail) does not work in firefox but does in explorer

    The "attach file button" (in net zero e-mail) does not work in firefox but does in explorer.
    == URL of affected sites ==
    http://

    *Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
    *Tools > Options > Privacy > History: "Remember search and form history"
    See also [[Form autocomplete]]

  • I am unable to attach any files to my Gmail or Mail

    When I try to attach any kind of file to my Gmail account it locks up and I get the spinning ball of death. I tried using MacKeeper to clean my PC but no change. I have tried using Firefox, Safari, Google Chrome, Mail - they all have the same same problem. I then have to force close the programme I have not been able to send any documents with any attachments. I am running Mavericks X and all my updates are up to date.
    When the Finder window opens in Gmail to select the file it does not load fully as it lists the files but greyed out so that I cannot select the required file at the same time the spinning ball appears - time out!!
    My laptop is a MacBook Pro
    Please help I am going mad

    Step 1
    Remove "MacKeeper" as follows. First, back up all data.
    "MacKeeper" has only one useful feature: it deletes itself.
    Note: These instructions apply to the version of the product that I downloaded and tested in early 2012. I can't be sure that they apply to other versions.
    IMPORTANT: "MacKeeper" has what the developer calls an “encryption” feature. In my tests, I didn't try to verify what this feature really does. If you used it to “encrypt” any of your files, “decrypt” them before you uninstall, or (preferably) restore the files from backups made before they were “encrypted.” As the developer is not trustworthy, you should assume that the "decrypted" files are corrupt unless proven otherwise.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A. The "MacKeeper" application is in the folder that opens. Quit it if it's running, then drag it to the Trash. You'll be prompted for your login password. Click the Uninstall MacKeeper button in the dialog that appears. All the functional components of the software will be deleted. Reboot.
    ☞ Quit MacKeeper before dragging it to the Trash.
    ☞ Don't empty the Trash. Let MacKeeper delete itself.
    ☞ Don't try to drag the MacKeeper Dock icon to the Trash.
    Step 2
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

Maybe you are looking for

  • How to remove hyperlink in Reports Region

    How to remove hyperlink in a Report region (Based on some filter condition) Example : In Report Region, I am getting value as 10, 20, 30, 0, 44, 55, 0 In the above value, I need to remove the hyperlink for 0 values. Can anyone help me to resolve this

  • I can't remember my passwords for macbook pro

    just recieved a mac pro from my brother in law, ialso have a macbookpro, having a hard time trying to get the mac pro to see the macbook.  seems ther are pass word problems. i dont rember putting a pass word on the macbook at all.

  • Doubt on Effective Dated (data pertaining to a specific point in time)

    Dear Members, 1/ I have created a table using the below SQL Command create table XXEMP EMP_NO                  NUMBER(12), EFFECTIVE_START_DATE    DATE, EFFECTIVE_END_DATE      DATE, EFFECTIVE_DATE_SEQUENCE NUMBER(12), EFFECTIVE_DATE_SEQ_FLAG VARCHAR

  • QT 7 PRO?

    If i get Quick Time 7 Pro, can i convert my movies that i purchase off of iTunes to regular ol' MP4 so i can play it on my Cell Phone and my PSP?

  • How to set currency template in CT04

    I'd like to ask a question about how to set currency template in CT04 Coz i have a material classification --- cost i'd go to CT04 to create ...set data type is CURR Currency Format but i don't know how to set the template if i want to show like this