Html format!pl help!

Hi!
i have the following in my database:
<input type="text" name="test" value="test">
Now how to display this as a text box in the browser using jsp?Can anybody help pl!Thanks

I'm not sure what you are trying to achieve but if the statment you wrote is supposed to be retrieved from a resultset, you may try this,
<%
ResultSet rs = conn.executeQuery(sql);
String s = null;
if (rs.next(){
s = rs.getString(1); //assuming field is 1st in the query statement
else{
s = " ";
%>
then later in the JSP, insert the following where you want the quote to appear:
<%= s %>

Similar Messages

  • Urgent Help. How to send the email in HTML format in Version 4.6c

    Hi,
      Please help me how to send a mail in HTML format with logo and specified format. Is it possible to send the SAPscript or Smartform in HTML format to external mail address.  The logo and the format is very important in this e-mail.
      quick response will help me better.
    Regards,
    Naidu

    Here is a sample program which emails HTML in the body.  Of course you can put an HTML tag in there that would point to the logo on some server(internet).  Notice we are just putting the HTML code in the MAILTXT table,  This is how we do it at my company.
    report zrich_0002.
    data: maildata   like sodocchgi1.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    start-of-selection.
      clear:    maildata, mailtxt,  mailrec.
      refresh:  mailtxt, mailrec.
      perform build_text_message.
      perform build_receivers.
      perform send_mail_nodialog..
    *      Form  BUILD_TEXT_MESSAGE
    form build_text_message.
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      mailtxt  = '<html>'.
      append mailtxt.
      mailtxt  = '<head>'.
      append mailtxt.
      mailtxt  = '<title>Untitled Document</title>'.
      append mailtxt.
      mailtxt  = '<meta http-equiv="Content-Type" content="text/html;'.
      append mailtxt.
      mailtxt  = 'charset=iso-8859-1">'.
      append mailtxt.
      mailtxt  = '</head>'.
      append mailtxt.
      mailtxt  = '<body>'.
      append mailtxt.
      mailtxt  = '<div align="center"><em><font' .
      append mailtxt.
      mailtxt  = 'color="#0000FF" size="+7" face="Arial,'.
      append mailtxt.
      mailtxt  = 'Helvetica, sans-serif">THIS'.
      append mailtxt.
      mailtxt  = '  IS A TEST </font></em><font' .
      append mailtxt.
      mailtxt  = 'color="#0000FF" size="+7" face="Arial,'.
      append mailtxt.
      mailtxt  = 'Helvetica, sans-serif"></font>'.
      append mailtxt.
      mailtxt  = '</div>'.
      append mailtxt.
      mailtxt  = '</body>'.
      append mailtxt.
      mailtxt  = '</html>'.
      append mailtxt.
    endform.
    *      Form  BUILD_RECEIVERS
    form build_receivers.
    *  mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
    endform.
    *      Form  SEND_MAIL_NODIALOG
    form send_mail_nodialog.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           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.
    endform.
    Regards,
    Rich Heilman

  • Help writing HTML formatted data to JEditorPane multiple times

    I have problems writing data to a JEditorPane more than once. The first time, it works, but the 2nd, 3rd, and so on, the data that is displayed is corrupt. This is where I print the data:
                   ResultsDisplay.getEditorKit().createDefaultDocument();
                   ResultsDisplay.setText(inputStore.toString());There seems to be something wrong with the way I display the data. What do I have to do to change HTML formated data that is printed to an JEditorPane?
    This is how I set up the JEditorPane:
         javax.swing.JEditorPane ResultsDisplay = new javax.swing.JEditorPane();
         JScrollPane ResultsDisplayScrollPlane = new JScrollPane(ResultsDisplay);
         HTMLEditorKit htmlEdKit = new HTMLEditorKit();and
              ResultsDisplay.setEditable(false);
              ResultsDisplay.setEditorKit(htmlEdKit);
              ResultsDisplay.setContentType("text/html");
              ResultsDisplay.setEditorKitForContentType("text/html", htmlEdKit);
              getContentPane().add(ResultsDisplayScrollPlane);
              ResultsDisplayScrollPlane.setBounds(50,50,700,450);Am I doing anything wrong here? Why can I only write the data once during the Applet's run life?

    Hi again,
    Does anyone have experience writing to a JEditorPane multiple times during the run-life of a Applet? When I first send the data, it is displayed correctly. But everytime after that, the data is corrupted. My data is written in tables (in HTML format). The second time I write to the JEditorPane, it only displays the first of my tables, and only displays the collumn names and in the last column it displays the first row of data squeezed into the last column name's cell. If I run a third time, it takes this old table and adds a new table from the third run. With the fourth run I end up with 3 tables each containing only one row with the column names and the 1st row of data squeezed into the last collumn name cell.
    Can anyone help? I've already tried creating a new document as described in the JEditorPane's API.

  • Physical page is not the same in HTML format

    I am using Oracle 6i to develop some reports. While running this reports using the developer, the logical page is the same size as the physical page.
    When generating the same reports in HTML format the physical pages do not seem to be the same as the logical pages, since the contents of one page is being printed in two pages, whereas using the developer the report will print only in one page. I look at the Layout Model properties and I have set it in the following way :
    Layout Main Section
    Width : 8.5
    height : 11
    Horizontal Panels per PAge 1
    VErtical Panels per page : 1
    Orientation Default
    Report Width : 80
    Report Height : 66
    Any Help will be appreciated

    Open you QuickTime movie, go to window and select Show movie properties, select videotrack and change Transperancy (low left) and select Composition in stead of "none - allow dithering" from the drop menu. See if this helps.

  • HTML format report for Daily basis Oracle Database health Checkup

    Hi All,
    Can anyone provide me the script which I can schedule in BAT file to run againt all the database and gather most of the health check related data and present the same in HTML format.
    Regards,
    Sphinx

    Hi,
    Database Health report can be obtain from my below link:
    http://rafioracledba.blogspot.com/search/label/DBA%20Daily%20activities
    It is a detailed one.Make use of point 20 in the above link to get the report you want.Hope it helps.
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • Unable to receive email in HTML format on BB Torch 9860 with BIS

    I recently purchased BB Torch 9860 with OS 7 and configured by personal and work email on BIS. I am receiving emails only in text format. In some emails with images that have hyperlink, I just see a link and images not displayed. All the images comes as an attachment in the email. My friend having another BB Torch is able to view emails as HTML. But he is with BES. 
    Is there any solution for my issue? I am not receiving any options in the email preference to enable HTML format for emails.
    Appreciate if anyone could help me with this.
    Regards,
    Midhun

    Hi Midhun,
    Welcome to the Community
    To help you with the issues you're having, on your Blackberry go to your mailbox, press menu, choose options, then Email Preferences and check the box for Enable HTML Email, Download Images Automatically and Confirm External Image Download. The screen may look like the screenshot below:
    For more information please check these links:
    Blackberry Tips and Tricks
    Blackberry 101
    Enjoy!
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • BI Publisher Report Issue in 11G(HTML format)/ OBIEE 11.1.1.7 version

    Hi All,
    I have migrated reports from 10g to 11g. Issue i am facing is that "reports open in HTML format by default & reports alignment has been distorted in 11g".
    Also if i change the format to PDF ,its working fine.
    I am not able to figure it out where exactly the issue lies as all the parameters,layout & query are fine.
    Thanks.
    Saurabh

    Hopefully this blog article by Tim Dexter will help: http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    Thanks!

  • 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 can I send email from an JSP page  with HTML format either using jsp

    hi,
    I have an jsp page with online application form,after compleating the form if i select submit it will send all the compleated data to the mail id we mentioned in the form tag,for this i am using javascript,but instead of receiving the data in the format of strings,my client want to receive the data in the same format as he's filling in the jsp page(html format) through e-mail.any help would be appreciated.the fallowing is the code right now i am using for email application.
    <code>
    function send()
    if(validatePersonalInfo(document.theform))
         document.theform.submit()
         location.href=location.reload()
    function validatePersonalInfo(form)
         var tmpStr ="";
         if (form.Name.value == "") {
              tmpStr = "Name";
              document.all.dName.style.visibility="visible";
              document.theform.Name.focus();
         else{
              document.all.dName.style.visibility="hidden";
         if (form.SSN.value == "") {
              tmpStr = tmpStr + ", Social Security Number";
         document.all.dSSN.style.visibility="visible";
         if(form.Name.value != "")
              {document.theform.SSN.focus();}
         else{
              document.all.dSSN.style.visibility="hidden";
    if (tmpStr == "") {
              return true;
         } else {
              alert("Please Fill the Following Fields: " + tmpStr);
              return false;
    <FORM NAME="theform" METHOD="post"
    ACTION="mailto:[email protected]?subject=Online Application Form for MinorityDealer." ENCTYPE="text/plain">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="10" NOF="LY">
    <TH>
    <P>
         <FONT SIZE="3" FACE="Arial,Helvetica,Univers,Zurich BT">Online�Application</font></TH><BR>
    </TABLE>
    <table width="718" border="1" cellspacing="0" cellpadding="3" bgcolor="#CCCCFF" align="center">
         <tr>
    <td colspan="2"><font class="captionText">Name*�</font><br><input type="text" size="25" name="Name" class="bodyText">
    <div id="dName" name="dName" style="position:absolute;visibility:hidden"><font color="red">Name is Mandatory*</font></div>
    </td>
              <td colspan="2"><font class="captionText">Social Security Number*�</font><br><input type="text" size="9" name="SSN" class="bodyText">
              <div id="dSSN" name="dSSN" style="position:absolute;visibility:hidden"><font color="red">SSN is Mandatory*</font></div></td>
    </tr>
    <tr>
    <td colspan="2"><font class="captionText">Total Personal Assets</font><br><input type="text" size="10" name="TotPersAss3" class="bodyText"></td>
              <td colspan="2"><font class="captionText">Total Personal Liabilities & NetWorth</font><br><input type="text" size="10" name="TotPerLiab3" class="bodyText"></td>
    </tr>
         </tr>
    </TABLE>
    <IMG Valign="middle" name="imgSubmit" src="images/buttons/Submit.gif" width="66" height="29" border="0" alt="Submit">
    </code>

    Can any one do some help to solve this problem.
    Regards.

  • Can I force mail to be sent in HTML format (ActiveSync, EX2010)

    We use a corporate disclaimer, signature, logo at the end of all our emails, but when emails are sent via iPhone, the recipient only receives a "?" in place of the signature.
    I'm assuming this is due to the message being sent out in either Rich Text or Plain Text. 
    Is there a way for me to have our corporate owned iPhones send messages in HTML so that this signature will appear in all outgoing email?  I have set my ActiveSync rules to allow HTML, but I'm thinking that is only for incoming, since this isn't working for me.
    I appreciate your help in advance.

    We are facing the same issue.  We have a transport rule that grabs the user's info out of Active Directory and populates the fields we tell it to and then adds an image of our company logo at the bottom.  We have looked at how other companies have done it and it seems like they are attaching several images to each message.  I would rather avoid that kind of overhead.
    The signature works fine in Outlook, but when Apple users send a message, the link for the image shows up as a link instead of the image.  If you use any html formatting in the email, it gets sent as html and the signature shows up fine.  I tested this by just changing some text to bold.  Several of our execs use iPhones and Macs and asking them to do this just to 'trick' it into html format isn't going to work.

  • Can't send a website URL to my email in html format, only text and my email format is set to html

    FF is default browser. A week ago, no problem. no changes in SW or hardware except I did update IE to vers 8, but kept FF as default.
    Using XP Prof. Now when I am on a website and want to send the link to my email (E Link Total Access), and go to Send, the link shows up in my email as text, not underlined in html format.
    E link Tech support couldn't fix today, but I wasn't talking with a high level tech person. Any ideas will be appreciated.

    Hi Midhun,
    Welcome to the Community
    To help you with the issues you're having, on your Blackberry go to your mailbox, press menu, choose options, then Email Preferences and check the box for Enable HTML Email, Download Images Automatically and Confirm External Image Download. The screen may look like the screenshot below:
    For more information please check these links:
    Blackberry Tips and Tricks
    Blackberry 101
    Enjoy!
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • Exporting data from a html format into database

    Hello:
    Maybe someone can help me. I wrote a Test Stand program and save the test results in the html format everyone liked be able to access the data thru a web page but now we want to save the data to a database witch I was able to do. I need import the files save in html to the database. Does any knows how to do this or at least convert into a .txt or .csv format

    Hey Toro,
    Unfortunately there is no utility that will parse your HTML format files into your DataBase. This is primarily because the report files don't have all the information that is stored in the database. The data stored in the database is quite complex. So you might have to resort to manually inserting the fields, although this process is quite tedious. Also you cannot really convert your HTML files into .csv file, just because once a report is created TestStand doesn't know what data fields of the HTML file is important or not.
    I'll place a product suggestion over to R&D to maybe look into creating a utility for our future releases.
    SijinK
    National Instruments

  • Impossible to send a mail with a message in HTML format

    Hi
    I try to send a message in HTML format. Here is the code :
        public void sendMessage(String subject, String message, String to, String cc, String bcc) throws MessagingException  {
             MimeMessage mimeMessage = mailSender.createMimeMessage();
             MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true, "UTF-8");
            if(to!=null && !to.equals("")){
                 mimeMessageHelper.setTo(to);
            if(cc!=null && !cc.equals("")){
                 mimeMessageHelper.setCc(cc);
            if(bcc!=null && !bcc.equals("")){
                 mimeMessageHelper.setBcc(bcc);
            mimeMessageHelper.setSubject(subject);
            mimeMessageHelper.setText(message,true);
            mimeMessageHelper.setFrom(from);
            logger.info("host = "+mailSender.getHost());
            logger.info("Port = "+mailSender.getPort());
            //logger.info("UserName = "+mailSender.getUsername());
            //logger.info("Password = "+mailSender.getPassword());
                mailSender.send(mimeMessage);
        }and the message is the following :
    String message = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"+ "<htmlxmlns=\"http://www.w3.org/1999/xhtml\"><head><head/><body>"
    +messageSource.getMessage("startpeople.messagetosend.part1", null, Locale.ENGLISH)+ user.getFirstName()+" "+ user.getLastName()+",\n"
    + messageSource.getMessage("startpeople.messagetosend.part2", null, Locale.ENGLISH)+"\n"
    + messageSource.getMessage("startpeople.messagetosend.part3", null, Locale.ENGLISH)+ newPassword+"\n"
    + messageSource.getMessage("startpeople.messagetosend.part4", null, Locale.ENGLISH)+"\n"
    + messageSource.getMessage("startpeople.messagetosend.part5", null, Locale.ENGLISH)+"\n"
    + messageSource.getMessage("startpeople.securim.homepage.internet.address", null, Locale.ENGLISH)+"</body></html>";according to what I found on internet, the method MimeMessageHelper.setText(message,true); specifies that the message is sent in HTML format ( second argument is boolean "true" saying it is a HTML message ).
    But I don't get the message in HTML format. Anyone can help me ? thank you in advance

    MimeMessageHelper appears to be a Spring Framework class; better to ask your
    question in their support forum.
    Of course, you don't need to use MimeMessageHelper to create a simple html message,
    and in your case it doesn't seem to be making things any simpler. See the JavaMail FAQ
    and the demo programs included with JavaMail for simple examples of how to create an
    html message.

  • How to send a mail in html format from a send mail workflow node ?

    Dear all,
    Do you know if it is possible to send an e-mail in HTML format (instead of RAW) from a "send mail" node in a workflow ?  ... if "yes", please, let me know.
    (I need to do that because I want to use the "href" tag to insert an hyperlink inside the e-mail)
    - I haven't found any parameter to specify the format of the e-mail.
    - Inside SCOT I tried to change the parameters for the SMTP node... without success.
    - I don't want to use a task calling the FM SO_OBJECT_SEND.
    Nicolas

    Hi Nicolas!
    Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
    If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
    SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
    Hope this helps!
    Regards
    Geir

  • How to send out email in HTML format instead of Plain text?

    Can anyone help? Or any website with that information?
    I am trying to send out email using javamail. But i want it to be in HTML format so that i can set font size,coulor and so on.
    Thanks in advance if you have any clue or solution.

    look at this page:http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html

  • How to send program output as  mail in HTML format

    Hi Friends,
    I have a BDc which runs in background and its been Stored in my system and displayed as HTML format.
    My requirement is now i want that Same HTML file which i am displaying to be sent as a mail in HTML format itself..Kindly help me on this
    Thanks in advance
    kishore

    Hi,
    Below sample program might give you idea on sending HTML attachment.
    TYPES: BEGIN OF t_sal_ord,
               vbeln TYPE vbeln_va,
               posnr TYPE posnr_va,
               auart TYPE auart,
               vkorg TYPE vkorg,
               matnr TYPE matnr,
             END OF t_sal_ord.
      DATA: i_sal_ord TYPE STANDARD TABLE OF t_sal_ord,
            i_header TYPE STANDARD TABLE OF w3head,
            i_fields TYPE STANDARD TABLE OF w3fields,
            i_html TYPE STANDARD TABLE OF w3html,
            wa_header TYPE w3head.
      DATA: i_fcat TYPE lvc_t_fcat,
            wa_fcat TYPE lvc_s_fcat.
      DATA: g_send_request TYPE REF TO cl_bcs,
            g_document TYPE REF TO cl_document_bcs,
            g_recipient TYPE REF TO cl_cam_address_bcs,
            g_cx_bcs TYPE REF TO cx_bcs,
            g_sent_to_all TYPE os_boolean.
      DATA: g_lines TYPE i,
            g_size TYPE so_obj_len.
      PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY,
                  p_mailad TYPE ad_smtpadr OBLIGATORY.
    START-OF-SELECTION.
      SELECT a~vbeln b~posnr a~auart a~vkorg b~matnr
        INTO TABLE i_sal_ord
        UP TO 20 ROWS
        FROM vbak AS a
        INNER JOIN vbap AS b
        ON a~vbeln  = b~vbeln
        WHERE a~vkorg = p_vkorg.
      wa_fcat-coltext = 'SalesOrd#'.
      APPEND wa_fcat TO i_fcat.
      wa_fcat-coltext = 'Item#'.
      APPEND wa_fcat TO i_fcat.
      wa_fcat-coltext = 'OrdType'.
      APPEND wa_fcat TO i_fcat.
      wa_fcat-coltext = 'Sales.Org'.
      APPEND wa_fcat TO i_fcat.
      wa_fcat-coltext = 'Material'.
      APPEND wa_fcat TO i_fcat.
      LOOP AT i_fcat INTO wa_fcat.
        wa_header-text = wa_fcat-coltext.
        CALL FUNCTION 'WWW_ITAB_TO_HTML_HEADERS'
          EXPORTING
            field_nr = sy-tabix
            text     = wa_header-text
            size     = '2'
            fgcolor  = 'BLACK'
            bgcolor  = 'VIOLET'
            font     = 'CALIBRI'
          TABLES
            header   = i_header.
        CALL FUNCTION 'WWW_ITAB_TO_HTML_LAYOUT'
          EXPORTING
            field_nr = sy-tabix
            size     = '2'
            fgcolor  = 'BLACK'
            bgcolor  = 'WHITE'
            font     = 'CALIBRI'
          TABLES
            fields   = i_fields.
      ENDLOOP.
      wa_header-text = 'Sales Order Details'.
      wa_header-size = '2'.
      wa_header-font = 'CALIBRI'.
      CALL FUNCTION 'WWW_ITAB_TO_HTML'
       EXPORTING
    *     TABLE_ATTRIBUTES       = 'BORDER=1'
         table_header           = wa_header
    *     ALL_FIELDS             = 'X'
        TABLES
          html                   = i_html
          fields                 = i_fields
          row_header             = i_header
          itable                 = i_sal_ord.
      TRY .
          g_send_request = cl_bcs=>create_persistent( ).
          g_document = cl_document_bcs=>create_document(
                        i_type  = 'RAW'
    *                i_text  = i_content[]  " Body for Mail
                        i_subject = 'Sales Order Details' ).
          DESCRIBE TABLE i_html LINES g_lines.
          g_size = g_lines * 2 * 255.
          CALL METHOD g_document->add_attachment
            EXPORTING
              i_attachment_type    = 'HTM'
              i_attachment_subject = 'Sales Order Details'
              i_attachment_size    = g_size
              i_att_content_text   = i_html[].
          g_send_request->set_document( g_document ).
    g_recipient = cl_cam_address_bcs=>create_internet_address( p_mailad ).
          g_send_request->add_recipient(
             EXPORTING
               i_recipient = g_recipient
               i_express = 'X' ).
          g_send_request->set_send_immediately( 'X' ).
          g_send_request->send(
              EXPORTING
                i_with_error_screen = 'X'
              RECEIVING
                result = g_sent_to_all ).
          COMMIT WORK.
        CATCH cx_bcs INTO g_cx_bcs.
          WRITE:/ g_cx_bcs->error_type.
      ENDTRY.
    Kind Regards
    Eswar

Maybe you are looking for

  • Sync files from Windows 8.1 laptop to windows 7 server

    My company bought me a new laptop and decided to get Windows 8.1 on it, the rest of the computers in the office have windows 7. I need to sync a folder I have with a folder on my server, my server is Windows 7 and does not have SkyDrive.  Another emp

  • RB_Split option not found for message split

    Hi all, We're configuring to split a single XML with multiple records into multiple single record XML files. We have referenced the blog: /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible but, during interface determinat

  • HEADER MAPPING in RECEIVER AGREEMENT use.?

    Hi folks,    Can anyone explain me about the HEADER MAPPING in RECEIVER AGREEMENT. In which cases we go for this header mapping. Give me an example if possible or any links regarding this. Thanks in advance Srinivas Reddy.

  • Error in my simple program

    hey I'm a beginner to java and i tried to program a simple calculator but my Jcreator says it has an Error this is the program that i encoded: import javax.swing.JOptionPane; public class quiz      public static void main(String[]args)           Stri

  • BI-Beans: getcursor error

    I have a cube with 10 dimensions and 1 measures with about 16K records. When I tried to open this cube with BI-Beans, I got this following error message: oracle.express.ExpressServerExceptionError class: OLAPI Server error descriptions: DPR: Unable t