EMail report in HTML format in Background

Hi all,
We have a report which sends the output in HTML format to the internet email address. We use the function module SO_NEW_DOCUMENT_ATT_SEND_API1 for doing this.
When we are executing this in foreground the entire output is available in the HTML file, but when we execute this in background only the last page of the spool request is sent in the HTML file. Please help us in what way we can avoid this.
There are 5 pages in the report. Please advise us what exactly has to be done.
Thanks in advance.
Regards,
Vivek ...
Message was edited by:
        Vivek Krishnan Kandasamy

Hi Vivek,
have a look at this thread ...
Issue facing background email attachment.
Regards
Sudheer

Similar Messages

  • Send report in HTML format not in MHTML

    Hi all,
    I need to send report in email in HTML format not in MHTML format.
    Kindly help me.
    Thanks

    Hello,
    As far as I know, we cannot change the rsreportserver.config file to achieve this effect.
    In SSRS, the HTML rendering extension renders a report in HTML format. The HTML rendering extension is the default rendering extension for reports that are previewed in Report Builder and viewed in a browser, including when run in Report Manager.
    There is an article about Rendering to HTML, you can refer to it.
    http://technet.microsoft.com/en-us/library/dd255269.aspx
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to export the report in HTML format for desktop application

    Hi,
    i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
    i would like to know is there any API there which can export the report in HTML format.
    i know it would be possible with web based application of JRC, but how can i do it in desktop application?

    There's no mechanism for static HTML pages that displays the report.
    You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
    Sincerely,
    Ted Ueda

  • How to generate my report in HTML format

    Hi
    I am using Forms and reports 6i . How to generate a report in Html format.
    Please explain what are the option available in reports and the way to do
    thanks in advance
    prasanth a.s.

    *specify  desformat=html  in cmd line
    refer
    * Forms Reports integration 6i
    http://otn.oracle.com/products/forms/pdf/277282.pdf
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • Scheduling deski report to html format fails

    We're running boxi 3.1 SP4 on a Linux redhat machine. When scheduling a deski report to html format to unmanaged disk, the report stays in processing state for 10 minutes and then it goes to failed state with error "Object failed to run due to an error while processing on the Job Server" . Additionally I get the message "The scheduler component failed the object identified by <jobnumber>. The job associated with the object was unresponsive."
    Scheduling to other formats works fine. I have tracing on but there's not any hint in the logfiles. The htm file and it's subdirectories are created on the temporary location /data/procSched/<name>.DesktopIntelligenceJobServer but it's not copied to the configured destination. It is not an issue with permissions, the server has write permissions to the directory.

    Hi Clive,
    since your are in XI R2 you can only try to modify the layout of your report. In XI 3.x a new feauture was introduced, which allows the user to choose between keeping the layout or facilitating further processing in Excel when exporting a document in Excel.
    Regards,
    Stratos

  • Desktopintelligence report in HTML format

    Hello Gurus,
    I have to schedule a Deski report in HTML format. But when I schedule the report, the html format will will be saved in 'section by section' mode automatically.
    Waht properties should I change to save in 'All in one page' mode?
    Thanks,
    Naveen
    Edited by: NR on Apr 30, 2009 8:33 PM

    Hi Naveen,
                      Even I am facing a similar problem while exporting the reports to HTML format. All the sections in the report appear on different pages,and there's no option for getting them on a single page. As of now, there does'nt seem to be a direct solution for this issue, however, I got rid of this problem by using 'Breaks' in my report instead of 'Sections'. For example, if you are having a report which displays section-wise data, and you have applied the section on say, 'Cities' (which means you will get the city-wise data). You can remove the section and drag the 'City' field into the table, and then apply a break on it. You may also enable the option of 'Centre Value Across Break' which would give the report a better look.
    Regards,
    Alok.

  • WebIntelligence report in HTML format

    Hello Gurus,
    Can we schedule the WEBI reports in HTML format. If so how? I do not see the option to schedule the WEBI reports in HTML format.
    We are using BOE 3.1 version.
    Thanks in advance,
    Navin
    Edited by: NR on Jun 5, 2009 9:30 PM

    Hi Navin,
    The short answer is no. It is not supported by default. Desktop Intelligence does this. I think it is seen as a competition for the InfoView portal. There are however some good SDK examples that you might be able to use.
    Regards
    Alan

  • Webi report into HTML format

    Hi Frns,
    I wanna convert webi report into html format...
    Is there any possibility in bo???
    I'm using sap bo 4.1 sp2
    Regards
    Riaz

    Hi Riaz,
    As per my knowledge Webi report export to HTML format is not possible in BI 4.1
    You can raise a request in SAP IDEA's place
    Refer the below links for workaround solution
    [WebI XI 3.x] Export report to HTML or XML
    Does BOE XI 3.1 supports exporting WebI to XML format?

  • Email smartform in html format

    Hello all,
    I've been searching SDN for help with creating an email in html format via smartforms. Pavan Bayyapu's blog was really helpful and I've also used program SF_XSF_DEMO_MAIL as the basis for my program.  I followed their examples exactly but my emails always appear as a .MTL attachment, never as just the body of the email. 
    I tried removing the file name from lo_mime_helper->set_main_html and from lo_mime_helper->add_binary_part as suggested by some other folks but I haven't had any success.
    Has anyone solved this same issue?  Maximum points will be given to helpful suggestions. 
    Thank you.

    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/59/cd7da407d711d5b66f006094192fe3/content.htm">converting SF to html format</a>
    Here is the code to send the Smartform to mail as PDF attachment.
    *& Report ZTEST_PDF_MAIL
    REPORT ZTEST_PDF_MAIL.
    Internal Table declarations
    DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
    WA_OBJHEAD TYPE SOLI_TAB,
    W_CTRLOP TYPE SSFCTRLOP,
    W_COMPOP TYPE SSFCOMPOP,
    W_RETURN TYPE SSFCRESCL,
    WA_DOC_CHNG TYPE SODOCCHGI1,
    W_DATA TYPE SODOCCHGI1,
    WA_BUFFER TYPE STRING, "To convert from 132 to 255
    Variables declarations
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZTEST'
    IMPORTING
    FM_NAME = V_FORM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I_OTF[] = W_RETURN-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    IMPORTING
    BIN_FILESIZE = V_LEN_IN
    TABLES
    OTF = I_OTF
    LINES = I_TLINE
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    ENDIF.
    LOOP AT I_TLINE.
    TRANSLATE I_TLINE USING '~'.
    CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
    ENDLOOP.
    TRANSLATE WA_BUFFER USING '~'.
    DO.
    I_RECORD = WA_BUFFER.
    APPEND I_RECORD.
    SHIFT WA_BUFFER LEFT BY 255 PLACES.
    IF WA_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Attachment
    REFRESH: I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    CLEAR WA_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    Create Message Body Title and Description
    I_OBJTXT = 'test with pdf-Attachment!'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    READ TABLE I_OBJTXT INDEX V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    Main Text
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    Attachment (pdf-Attachment)
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    READ TABLE I_OBJBIN INDEX V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smart'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = '[email protected]'.
    I_RECLIST-REC_TYPE = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    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.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    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.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Jasper Report in HTML format

    Hi
    When I try to open the jasper report on browser ,It displays
    the report but not clear.The image does not display on the client.
    below is my code ,please help me......
    MY Code:
    /*3 Preview in HTML format */
    File imagedir=null;
    JRHtmlExporter exp = new JRHtmlExporter();
    StringBuffer sbuf = new StringBuffer();
    exp.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print);
    exp.setParameter(JRHtmlExporterParameter.OUTPUT_STRING_BUFFER, sbuf);
    exp.setParameter(JRHtmlExporterParameter.IMAGES_DIR,imagedir);
    exp.exportReport();
    out.print(sbuf.toString());
    Thanks
    By sathesh

    Alright there is a dedicated ImageServlet(provided in jasper reporting framework) which is used to Link Static image content along with your HTML report content.
    and here is how you have to do it is ??
    is by setting few parameters for JRExporter Object and making use of image servlet provided under jasper libraries.
    ImageServlet configurations in web.xml:
    <servlet>
            <servlet-name>ImageServlet</servlet-name>
            <servlet-class>
                net.sf.jasperreports.j2ee.servlets.ImageServlet
            </servlet-class>
    </servlet>
    <servlet-mapping>
            <servlet-name>ImageServlet</servlet-name>
            <url-pattern>/imageServlet</url-pattern>
    </servlet-mapping>Html Exporter code..
    JRExporter exporter = null;
    JasperPrint jasperPrint = null;
    Connection conn = null;
    String sourceFile = ReportService.getReportSourceFile(request);
    Map map = ReportService.getParameterMap(sourceFile,request);
    String contentType = ReportService.getContentType(sourceFile,request);
    if(contentType.startsWith("text/html")){
    PrintWriter printWriter = response.getWriter();
    try{
       /* Fetching Connection from a Connection Pool VIA a service*/
      conn = DbUtils.getConnection();
      /* Creating a JasperPrint Object*/
      jasperPrint = JasperFillManager.fillReport(sourceFile,map,conn);
    exporter = new JRHtmlExporter();                          
      request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
       /* printWriter here is a reference for  response.getWriter() */
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,printWriter);                  
      // gonna set url pattern given for Image servlet with a reponse parameter <url-pattern>/imageServlet</url-pattern> 
      exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"imageServlet?image=");              
       response.setContentType(contentType);
       /* Would write the HTML content to ServletStream Provided */
      exporter.exportReport();
    }catch(Exception exp){
         exp.printStackTrace();
    }finally{
      try{
         if(conn != null && !conn.isClosed())
           conn.close();
      }catch(Exception ep){
         ep.printStackTrace();
      }finally{
           conn = null;
           sourceFile = null;
           map = null;
    }For any other issues with report format and others try to go through my post.However, you might have to edit your customized settings in terms of image rendering problems or to some customized implementations.
    http://forum.java.sun.com/thread.jspa?threadID=5203324&messageID=9811077
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to view deski report in html format ?

    Hi,
    I use BO XI R2. I use jsp.
    I just want to know how to view deski report in a html format.
    thanks a lot.
    hatoug

    Since you're using JSP, please post to the Java support forum:
    Java SDK Application Development
    or
    SAP Crystal Reports, version for Eclipse

  • How to remove Pagebreak while printing a Report in Html format

    Hi there,
    I am printing the Report Output as HTML format and I need to avoid pagebreaks ... Is there any way to avoid.
    I did tried PAGESTREAM ... but it prints the next page in a separate file ...
    Can anyone give a solution for this !!!
    TIA
    Vaithy. S

    hello,
    when you use the output-format HTML or HTMLCSS, oracle reports creates a representation of the layout as it would be created on paper in these formats; therefore there are pagebreaks.
    there is no way to switch them off.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Bid emails needed in HTML format

    Hello Experts,
    For SRM project at our client we need to send Bid Invitation, Bid Accept and Bid Reject emails to Vendors. We are using the standard SAP functionality for this process.
    Emails get sent to the bidders properly but these emails are in normal text format. The emails do not display any logos and also the urls are not hot links.
    We could not find any BADI to change the settings to send emails as HTML format and not text and help getting the logos and links displayed properly.
    It is very important to the client to have the company logo displayed in the emails and have url's clickable !
    Any help on this will be greatly appreciated.
    Regards,
    Neeraja

    Hello dickretired,
    You may the article "Lion Mail: Display or hide remote images" goes over how to enable this.
    Note: Though the article title stated that it is for Lion, the process should be aplicable in OS X 10.6
    Some messages may use HTML to include remote images that, when retrieved from the sender’s servers, reveal information about your computer’s address. You can protect your privacy by not loading remote images contained in messages you receive. In addition, when you don’t load remote images, messages display more quickly.
    Choose Mail > Preferences, and then click Viewing.
    Select or deselect the “Display remote images in HTML messages” checkbox to show or hide the images.
    If you have chosen to hide remote images, a banner is displayed across the top of messages that contain remote images, asking whether you want to load them for viewing.
    If Mail detects that a message is junk mail, HTML images aren’t displayed.
    Hope that helps,
    Griff W.

  • TS3899 I am trying to open a work report using html format on my ipad and it says it is blocked. How do I unblock it?

    Hello.
    I am trying to open a report from work that is in html format and I keep getting an error message saying that html is blocked?? I am thinking I need to adjust some sort of setting, but I am stuck. Any help is appreciated.
    Thank you!

    Maybe it is not html document. It may have html elements in there.
    You say reports, maybe it's in excel or some other formats.
    If it's excel, you have to have some apps that can read the format.
    Apple Pages app can open excel document for example.

  • Send email with attachment html format.

    Hello experts,
    I have 1 screen with 4 tables , 3  is table control , and 1 is container .
    I want sent e-mail which include this screen in html format.
    How can i do this?
    Thanks for the help.
    Avi.
    Edited by: avi azulay on Oct 13, 2010 10:38 PM

    Hello ,
    It is not help me, i want to know how convert screen with 3 table control and 1 container to html format?
    Thanks for the help,
    Avi.

Maybe you are looking for

  • {no subject}

    HI , I am using Iplanet Migration ToolBox -1.2.1-kivabeta . I am a new user and when I tried to migrate sample application , I am getting following error (during migration of NetDynamics DataObjects). I went thru the docs and did exactly what it said

  • Unable to configure webstack - SXDE

    Noob here. Firstly, feel free to redirect if this is the wrong forum. I just installed the current release of SXDE on VMware server. I am now trying to configure the webstack, as per the Getting Started guide (as per file:///opt/webstack/doc/html/p3.

  • Problem in creating user defined fields

    hi,    i created nearly 25 userdefined fields. after that b1 is not allowing me to created further, I like to know any restriction is there to create or kindly give me the solution to create. Regards R.vijai

  • Custom output type configuration for Handling units

    All, Can any one guide me how to configure AZ output types for handling units?  My scenario is as follows. To print a new label for the handling units as soon as the packing happens. User should be able to see this new custom output type in VLO2N/VL0

  • 10.3.9 Upgrading?

    Hello, I have just got my first mac its a powermac g4 733 40gb, 1.5gb of ram and i love it! But i want to install CS5 on it and other programs but it needs updating. What's the best way about upgrading? Thanks