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.

Similar Messages

  • Writing html file in a jeditorpane

    I have read one of your threads titled as "How to insert a string in a JEditorPane (Urgent)". according to this thread I am using insertString() method to write in an jeditorpane. what I am writing is an html file. when I used insertString() method it doesn't show the html content in my jeditotpane. it displays the source code of my html file. I have setContentType("text/html"); moreover I used setText() and it shows the html file correctly but it over writes the previous content of jeditorpane. please help me to be able to
    write to a jeditorpane without overwriting and displaying html file properly not its source code.
    following is my code:
             fr = new FileReader("myfile.html");
         BufferedReader br = new BufferedReader(fr);
         while ((lineread = br.readLine()) != null)
              find.append(lineread);
                       do{
                             last = find.lastIndexOf("str");
                          Integer index = myJEditorPane.getSelectionEnd();
                   String temp = index.toString();     
                   start=find.indexOf(temp, end);
                   end=find.indexOf("str", start);
                            Document doc = mynewContentPane.getDocument();
                   try{
                        doc.insertString(doc.getLength(),find.substring(start, end),null);
                   catch(BadLocationException exc){
                        exc.printStackTrace();
                   }Edited by: nasi on May 7, 2010 8:59 PM
    Edited by: nasi on May 8, 2010 12:09 AM
    Edited by: nasi on May 8, 2010 1:37 AM

    Welcome to the Sun forums.
    Subject: writing html file in a jeditorpane
    If you mean a JEditorPane then please use the correct case, so we can be confident you refer to the J2SE class, as opposed to a 3rd party jeditorpane that we neither know, nor support.
    nasi wrote:
    I have read one of your threads titled as "How to insert a string in a JEditorPane (Urgent)". ..I guess you mean [How to insert a string in a JEditorPane (Urgent)|http://forums.sun.com/thread.jspa?threadID=282569] from 2002. A lot has changed since 2002, but I suspect the basic way of appending text to a Document has not.
    BTW - Good to see you arrive with some Google-foo. ;-)
    ..according to this thread I am using insertString() method to write in an jeditorpane. what I am writing is an html file. when I used insertString() method it doesn't show the html content in my jeditotpane. it displays the source code of my html file. I have setContentType("text/html"); moreover I used setText() and it shows the html file correctly but it over writes the previous content of jeditorpane. I've not played much with changing existing documents, but try this source (adapted from code nabbed from the thread you mentioned).
    import javax.swing.text.*;
    import javax.swing.*;
    public class InsertStringTest {
        public static void main(String[] args){
            Runnable r = new Runnable() {
                public void run() {
                    //set GUI
                    JFrame f = new JFrame();
                    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    JEditorPane editorPane = new JEditorPane();
                    editorPane.setContentType("text/html");
                    editorPane.setText("<html><body><h1>Test!</h1><p>");
                    f.getContentPane().add(new JScrollPane(editorPane));
                    String testStr = "This is a test string. " +
                        "This is a test string. This is a test string. \n";
                    f.pack();
                    f.setSize(400,300);
                    f.setVisible(true);
                    //test with insertString()
                    long diff;
                    long startTime = System.currentTimeMillis();
                    Document doc = editorPane.getDocument();
                    for(int i=0; i < 500; i++){
                        try{
                            doc.insertString(doc.getLength(),testStr,null);
                        catch(BadLocationException exc){
                            exc.printStackTrace();
                    diff = System.currentTimeMillis() - startTime;
                    System.out.println("Time spent with doc.insertString() : " + diff);
                    editorPane.setCaretPosition(0);
            SwingUtilities.invokeLater(r);
    }

  • BCS Business Data List data HTML Formatting data

    I have a Business Data List webpart in Sharepoint Online (2013) which pulls data from a BCS List. This data contains HTML which is not rendering as HTML but the HTML text.
    I've modified the data to HTML format the data, no joy (example: &lt; img src="/)
    I've modified the data to spit out the native html, no joy (example: <img src="/)
    I've modified the XSLT of the webpart using the Data View Properties (when editing the webpart in Sharepoint) to output the text from the list as below, which didn't work:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"/>
    and also this hasn't worked:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes"/>
    I'm now at a loss as to how I can get the data to show with the html text being rendered as actual HTML on page

    found, the issue - there was a section further down the XSLT file that needed the disable-output-escaping adding to (below is the original section) - once updated it worked like a charm - thanks
    <xsl:template name="_LFtoBRloop">
        <xsl:param name="input" />
        <xsl:variable name="beforeText" select="substring-before($input, '&#xA;')" />
        <xsl:choose>
          <xsl:when test="string-length($beforeText) = 0 and substring($input, 1, 1) != '&#xA;'">
            <xsl:value-of select="$input" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$beforeText" />
            <br />
            <xsl:call-template name="_LFtoBRloop">
              <xsl:with-param name="input" select="substring($input, string-length($beforeText)+2)" />
            </xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>

  • Orchestration Instance - message data being inserted multiple times to database

    Hello,
    I have a Transactional Scope orchestration which has an expression shape which writes unique messages to a custom database using helper - ADO.Net. We are noticing that when the BizTalk server (BTS 2009) is under stress few messages are
    getting inserted multiple times. On further researching we have narrowed down the cause to be that when there is a delay in ADO.NET insert command completion, the orchestration engine wait threshhold is met and decides to dehydrate. But if around
    the same time the ADO.NET insert completes and then after some time orchestration rehydrates and resumes from last persistence point, it inserts the message again causing the duplicates. Has anyone seen such behavior?
    Thanks in Advance!

    Yeah, we knew only other alternative is to use the WCF-SQL Adapter and include in Orchestration transaction - saw this pattern somewhere, do not want to use atomic scopes as it could lead to blocking. I'm sure there are several implementations out there
    that user helper classes to do DB insert/updates and should have seen a similar issue.
    I just want to make sure we are not missing something here. I strongly feel Microsoft BizTalk team should clearly state in their documentation that helper DB insert/updates should be avoided or put it in their best practices so that developers
    dont have to figure this out the hard way.
    Thanks!
    You may try to call helper class from map inside Receive/send port using XSLT templates. Then you don't have to worry about orch. And in send port advanced properties you can set re-try to '0' so it doesn't try again 3 times. Either it fails first go and completes
    once.

  • Urgent!! Help me - Read formatted data from file

    Hi,
    I have a file which contains(line by line) :
    [0.0577, 0.0769, 0.0385, 0.0, 0.0]
    [0.0577, 0.1346, 0.0962, 0.0, 0.0]
    [0.0192, 0.0, 0.0577, 0.1154, 0.0962]
    How can i read the file line by line(exluded "[" and "]" symbols) and assign each line to an array?
    Thanks

    full code regarding readin/writing
    import java.net.*;
    import java.io.*;
    import java.util.*;
         public class FtpWrite {
                   static StringBuffer Data = new StringBuffer(20);
             public static void main(String[] args) throws Exception {
                   int jobNumber = 10006;
                   String dataOut = "Liam Charles Rangers";
                   URL ftpUrl = new URL("ftp://username:[email protected]/dataOutput.txt");
                           URLConnection conn = ftpUrl.openConnection();
                   conn.setDoOutput(true);
                           OutputStream out = conn.getOutputStream();
                   PrintWriter writer = new PrintWriter(out);
                           System.out.println("Writing to ftp");
                   writer.print(jobNumber);
                   writer.print('\t');
                   writer.print(dataOut);
                   writer.print('\n');
                           writer.close();
                   out.close();
                   String dataIn;
                   InputStream inFile = ftpUrl.openStream();
                   BufferedReader in = new BufferedReader(new InputStreamReader(inFile));
                   dataIn = in.readLine();
                   System.out.println("The data is" + dataIn);
                   in.close();
                     StringTokenizer parser = new StringTokenizer(dataIn);
                       while (parser.hasMoreTokens()) {
                             System.out.println(parser.countTokens());
                             processWord(parser.nextToken(),parser.countTokens());}
                   public static void processWord(String token, int position){
                   int jobNumber = 0;
                   System.out.println("in process word token = " + token + " at position" + position );
                   if (position == 3)
                        jobNumber = Integer.parseInt(token);
                   jobNumber = jobNumber * 2;
                   System.out.println(jobNumber);
                   if((position <3) && (position>=0))
                        Data.append(token);
                        Data.append(' ');
                   System.out.println("Data is " + Data);
    }this code has just been completed with a bit of help. I gave it to you warts and all.
    Jim

  • In table, coloumn's data is repeating multiple times

    Hello Everybody,
    We have upgraded patch level of EP 7.0 from SP10 to SP17.We are using
    VC 7.0 with Flex2 compliler and BI 7.0 SP19.
    In Visual Composer we have developed a dashboard but We are facing some
    issues related to table values.
    In tables output data is coming from BI queries.
    Now For a particular Business area 'A', Many Plant Names are coming in
    Table output.For this Business Area same plant values are repeating many times in
    table's column.
    Like In a Table
    Plant              MaterialType
    kawas                         A
    kawas                         B
    kawas                         C
    kawas                         D
    Rihand                        A
    Rihand                        C
    Rihand                        R
    Rihand                        F
    Rihand                        T
    Now we want to display the Repeated Values of Plant only one time for
    multiple values of materil type.
    Like
    Plant             Material Type
    kawas                          A
                                       B
                                       C
                                       D
    Rihand                         A
                                       C
                                       R
                                       F
                                       T
    Kindly help me out.
    Thanks & Regards
    Nivedita

    Dear Basheer,
    In BI query, table's out put is coming as per the requirement like coloumn data is not repeating many times in BI. But when i use same query in Visual Composer it shows repeated values.
    Kindly suggest some solution.
    Thanks & regards
    Nivedita

  • Why is my data usage increasing multiple times a day when I'm on wi-fi?

    For both myself on the Samsung Galaxy S4 and my girlfriend on an iPhone 5c, both of which we got just a week ago, we see our data usage total increasing several times a day, typically in very small amounts, occasionally larger.  Her increases are about 10x larger than mine overall.  All of this happens when we're each on wi-fi so I wouldn't expect to see these increases then.  Any idea why this is happening and what I can do to prevent it?  I'm guessing it may be some sort of auto update processing happening in the background, but I don't know that for sure and don't know what else could be causing this.

    After talking to 4 different Verizon reps today, nobody could pinpoint the
    cause of this.  I was mostly just told not to worry about it.  My wifi has
    seemingly been very solid both here and at work; I don't notice dropouts
    when I'm doing other things on it.  But I did disable mobile data on the S4
    and observed that the data usage did not increase any further after I did
    that.  So I guess I'll either use that as my primary mode of operation, and
    just manually reenable it when I know I'll be away from a wifi signal, or
    turn mobile data back on and live with the ongoing hits until it becomes a
    storage issue.  At the rate we're using data thus far, that shouldn't
    happen.
    On Sat, Mar 8, 2014 at 12:37 PM, Verizon Wireless Customer Support <

  • Please help.....Repeating text multiple times

    Hello,
    how can I repeat text several times and put it into a circle with the words continuously repeated into the circle if that makes sense.

    Hi Carlos,
    Please see link below:

  • Can i get the report output in HTML format?

    Hello everybody,
    I have developed a report whose output needs to be printed in HTML format.
    Can anybody suugest how this can be accomplished by coding in program itself using any function modules if necesary?
    Helpful answers will surely be rewarded.
    Thanx in advance,
    Sanghamitra.

    refer the below code
    Generate an HTML file from a Report in ABAP
    data: begin of itab occurs 0,
          matnr type mara-matnr,
          mtart type mara-mtart,
          matkl type mara-matkl,
          groes type mara-groes,
          end of itab.
    data: ifields type table of w3fields with header line.
    data: ihtml   type table of w3html   with header line.
    select * into corresponding fields of table itab
              from mara up to 100 rows.
    call function 'WWW_ITAB_TO_HTML'
    EXPORTING
      TABLE_ATTRIBUTES       = 'BORDER=1'
      TABLE_HEADER           =
        ALL_FIELDS             = 'X'
      tables
        html                   = ihtml
        fields                 = ifields
      ROW_HEADER             =
        itable                 = itab
    check sy-subrc = 0.
    call function 'GUI_DOWNLOAD'
         exporting          filename = 'c:\test.html'
         tables          data_tab = ihtml
    or for conerting internal table data into html
    See below simple report to convert the internal table data to a HTML format data and stores in a internal table and then pass that internal table as an attachment to the external email using function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    You need for create a spool also.
    REPORT Z_HTML .
    include <icon>.
    types: begin of msg,
    type like icon-id,
    text(140) type c,
    end of msg.
    constants: gc_marked type c value 'X',
    gc_ok like icon-id value '@5B@'.
    data:
    gt_msg type standard table of msg,
    gs_msg like line of gt_msg,
    gv_msg(138) type c,
    *-- html
    html_container type ref to cl_gui_custom_container,
    html_control type ref to cl_gui_html_viewer,
    my_row_header like w3head occurs 10 with header line,
    my_fields like w3fields occurs 10 with header line,
    my_header like w3head,
    my_html type standard table of w3html ,
    ok_code like sy-ucomm.
    Start of Selection *
    start-of-selection.
    clear gv_msg.
    gv_msg = 'MESSAGES for HTML'.
    do 3 times.
    perform message using gc_ok gv_msg .
    enddo.
    End of Selection *
    end-of-selection.
    set screen 0100.
    *& Form message
    form message using p_type
    p_text.
    clear gs_msg.
    gs_msg-type = p_type.
    gs_msg-text = p_text.
    append gs_msg to gt_msg.
    endform. " MESSAGE
    *& Module STATUS_0100 OUTPUT
    module status_0100 output.
    perform convert_itab_html.
    set titlebar '100' .
    set pf-status 'MAIN100'.
    create object html_container
    exporting
    container_name = 'CONTAINER'.
    create object html_control
    exporting
    parent = html_container
    saphtmlp = gc_marked .
    data: assigned_url type url.
    call method html_control->load_data
    EXPORTING
    URL = url
    TYPE = 'text'
    SUBTYPE = 'html'
    SIZE = 0
    ENCODING =
    CHARSET =
    importing
    assigned_url = assigned_url
    changing
    data_table = my_html
    EXCEPTIONS
    DP_INVALID_PARAMETER = 1
    DP_ERROR_GENERAL = 2
    CNTL_ERROR = 3
    others = 4
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call method html_control->show_url
    exporting
    url = assigned_url
    FRAME =
    IN_PLACE = ' X'
    EXCEPTIONS
    CNTL_ERROR = 1
    CNHT_ERROR_NOT_ALLOWED = 2
    CNHT_ERROR_PARAMETER = 3
    DP_ERROR_GENERAL = 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.
    endmodule. " STATUS_0100 OUTPUT
    *& Module exit INPUT
    module exit input.
    leave program.
    endmodule. " exit INPUT
    *& Module user_command_0100 INPUT
    text
    module user_command_0100 input.
    case ok_code.
    when 'EXIT' or 'BACK'.
    leave program.
    when others.
    call method cl_gui_cfw=>dispatch.
    endcase.
    endmodule. " user_command_0100 INPUT
    *& Form convert_itab_html
    form convert_itab_html.
    data: lv_tabix like sy-tabix.
    *-- table header
    call function 'WWW_ITAB_TO_HTML_HEADERS'
    exporting
    field_nr = 1
    text = 'Type'
    fgcolor = 'navy'
    bgcolor = 'red'
    font = 'Arial'
    tables
    header = my_row_header.
    call function 'WWW_ITAB_TO_HTML_HEADERS'
    exporting
    field_nr = 2
    text = 'Message'
    fgcolor = 'navy'
    bgcolor = 'red'
    font = 'Arial'
    tables
    header = my_row_header.
    *-- table rows
    clear lv_tabix.
    loop at gt_msg into gs_msg.
    lv_tabix = sy-tabix.
    call function 'WWW_ITAB_TO_HTML_LAYOUT'
    exporting
    field_nr = 1
    line_nr = lv_tabix
    icon = gc_marked
    tables
    fields = my_fields.
    call function 'WWW_ITAB_TO_HTML_LAYOUT'
    exporting
    field_nr = 2
    line_nr = lv_tabix
    fgcolor = 'red'
    bgcolor = 'black'
    font = 'Arial'
    size = '2'
    tables
    fields = my_fields.
    endloop.
    *-- header
    move 'Messages during program run' to my_header-text.
    move 'Arial' to my_header-font.
    move '2' to my_header-size.
    move 'Centered' to my_header-just.
    move 'red' to my_header-bg_color.
    move 'blue' to my_header-fg_color.
    refresh my_html.
    call function 'WWW_ITAB_TO_HTML'
    exporting
    table_header = my_header
    all_fields = ' '
    tables
    html = my_html
    fields = my_fields
    row_header = my_row_header
    itable = gt_msg.
    endform. "convert_itab_html
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • HTML formatted output

    Hi All,
    I have xml source as,
    < SAMPLE_JOB>
    < ORG_DESCRIPTION>>& lt;UL& gt;& lt;LI& gt;& lt;DIV class=MsoNormal style=& quot;MARGIN: 0in 0in 0pt 0.25in& quot;
    & gt;& lt;SPAN style=& quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt& quot;
    & gt;Design and deliver technical training courses to field service engineers, dealer, and customer support
    personnel.& lt;/SPAN& gt;& lt;/DIV& gt;& lt;/LI& gt;& lt;/UL& gt;
    < /ORG_DESCRIPTION>
    < /SAMPLE_JOB>
    when i am previewing in pdf output, i am getting the following for < ORG_DESCRIPTION>
    < UL>< LI>< DIV class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in">< SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial;
    mso-bidi-font-size: 12.0pt">Design and deliver technical training courses to field service engineers, dealer, and customer support personnel.< /SPAN>< /DIV>< /
    LI>< /UL>
    I want html formatted output. I saw tims blog. But here in my xml source i am not getting direct tags (instead of "< UL>", i am getting xml output as "& lt; UL & gt;"),
    can i also get the xsl equivalent code for tags like UL, LI, DIV, SPAN..
    Please help me.

    Your XML source is sorta odd.
    Where is it coming from?
    Word?
    This is what your xml should look like:
    < SAMPLE_JOB>
    < ORG_DESCRIPTION>Design and deliver technical training courses to field service engineers, dealer, and customer support
    personnel.< /ORG_DESCRIPTION>
    < /SAMPLE_JOB>
    Then you put it in your rtf and preview in pdf and it would look ok.
    The source xml is the problem - all this stuff is wrong or does not belong:
    & lt;/SPAN& gt;& lt;/DIV& gt;& lt;/LI& gt;& lt;/UL& gt;

  • Need to use Value of End Date Prompt Multiple Times

    I have a date field (Ex: Tablename.RDate) that needs to be entered by the user. So, I created a prompt (Begin and End Dates) that the user will enter.
    I need to have a second date field (Ex: Tablename.TDate) that needs to use the entered value of the End Date from the first prompt.
    (I need to check for TDate being equal to or greater than the value entered in the RDate End Date prompt. I don't want the client to enter in a begin and an ending date and then have to turn around and enter in a termination date which would be the same as the ending date).
    So my question is how do I accomplish this without having a TDate prompt? How can I use the RDate Entered Ending Date prompt value multiple times in my report?
    I thought about a second prompt but I don't know how to direct it to the entered value for the 'End Date'. I am fairly new at this so please go slow and be detailed with your answer if you can. Thanks in advance

    I think you have to make use of an exit (EXIT_SAPLMEKO_002)  or a BADI (ME_PO_PRICING_CUST)

  • Mac Mini Restarting Multiple times per day

    I have a Mac Mini from Sept 2010.  Recently upgraded to Mountain Lion and now the restarts due to an issue several times per day.  The computer is fine when i am using it, but the issue comes up when i return to wake the monitor by hitting a key or moving the mouse.  Sleep is disabled, but the monitor is set to turn off after 10 minutes of inactivity.  Sometimes it will be fine left for hours on its own and other times when i come back to the computer, I am met with a gray screen stating the computer had to restart. 
    Below is the log from the last crash:
    Jan 26 06:52:06 MacMini kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=895[GoogleSoftwareUp] clearing CS_VALID
    Jan 26 07:05:48 MacMini.local com.apple.usbmuxd[27]: _handle_timer heartbeat detected detach for device 0x82-192.168.1.2:0!
    Jan 26 07:07:40 MacMini.local LKDCHelper[909]: Starting (uid=501)
    Jan 26 07:17:51 MacMini com.apple.launchd.peruser.501[134] (com.apple.KerberosHelper.LKDCHelper[909]): Exited with code: 1
    Jan 26 07:50:49 MacMini kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=926[GoogleSoftwareUp] clearing CS_VALID
    Jan 26 08:07:40 MacMini.local LKDCHelper[951]: Starting (uid=501)
    Jan 26 08:17:51 MacMini com.apple.launchd.peruser.501[134] (com.apple.KerberosHelper.LKDCHelper[951]): Exited with code: 1
    Jan 26 08:47:52 MacMini.local com.apple.usbmuxd[27]: _handle_timer heartbeat detected detach for device 0x95-192.168.1.2:0!
    Jan 26 08:49:32 MacMini kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=973[GoogleSoftwareUp] clearing CS_VALID
    Jan 26 08:59:57 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/30: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/126: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/157: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/164: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/165: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x165: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/168: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/172: 0x3: No such process
    Jan 26 08:59:59 --- last message repeated 7 times ---
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/176: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/178: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x178: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/178: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/180: 0x3: No such process
    Jan 26 08:59:59 --- last message repeated 1 time ---
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/185: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/190: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/194: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/195: 0x3: No such process
    Jan 26 08:59:59 --- last message repeated 2 times ---
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x195: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/195: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/196: 0x3: No such process
    Jan 26 08:59:59 --- last message repeated 1 time ---
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x196: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/196: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/198: 0x3: No such process
    Jan 26 08:59:59 --- last message repeated 10 times ---
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x198: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/198: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/200: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x200: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/200: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/201: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not look up channel/token: com.apple.time/0x202: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/202: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Bug: 12C60: libxpc.dylib + 36100 [FAC04D8B-680E-325F-8F0C-DD69859D0E01]: 0x3
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/202: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/210: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/215: 0x3: No such process
    Jan 26 08:59:59 MacMini.local UserEventAgent[137]: Could not get event name for stream/token: com.apple.time/220: 0x3: No such process
    Jan 26 09:07:39 MacMini.local LKDCHelper[999]: Starting (uid=501)
    Jan 26 09:08:37 MacMini.local WindowServer[87]: handle_will_sleep_auth_and_shield_windows: no lock state data
    Jan 26 09:10:33 MacMini.local CVMServer[101]: Check-in to the service com.apple.cvmsCompAgent_x86_64 failed. This is likely because you have either unloaded the job or the MachService has the ResetAtClose attribute specified in the launchd.plist. If present, this attribute should be removed.
    Jan 26 09:11:04 --- last message repeated 1 time ---
    Jan 26 09:20:53 localhost bootlog[0]: BOOT_TIME 1359210053 0
    Any help would be appreciated, as this happens multiple times a day. 

    Thanks for the reply, den.thed. 
    I tried the first suggestion, resetting the SMC, but after this the problem continues. 
    I think the issue is related to the second, kernel panicking. 
    As for suggestions 3 and 4, i have my energy settings as you show in your post, with monitor sleep after 15 minutes, computer sleep never and none of the options checked.  While the computer does not sleep, this is only an issue when i step away from the computer for a while and come back, not when i am actively using it. 
    The latest error message is as follows, and seems to indicate a kernel panic (or several). 
    Interval Since Last Panic Report:  112486 sec
    Panics Since Last Report:          7
    Anonymous UUID:                    67206185-78EF-3547-FDBF-AFC3D867EDFE
    Sat Jan 26 14:22:44 2013
    panic(cpu 1 caller 0xffffff8002cb7bd5): Kernel trap at 0xffffff7f83801a58, type 0=divide error, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000109d21000, CR3: 0x00000000058bf000, CR4: 0x0000000000000660
    RAX: 0x00015025a5a86800, RBX: 0x0000000000000000, RCX: 0x00000000092dd698, RDX: 0x0000000000000000
    RSP: 0xffffff800ada3000, RBP: 0xffffff800ada3090, RSI: 0x0000000000000000, RDI: 0xffffff800fcbc004
    R8:  0xffffff800ada2f94, R9:  0x00000000092dd698, R10: 0x00000000000061a8, R11: 0x0000000000000002
    R12: 0xffffff8067b91da0, R13: 0xffffff800f1c2004, R14: 0x000000000000000a, R15: 0xffffff800fcbc004
    RFL: 0x0000000000010246, RIP: 0xffffff7f83801a58, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0x0000000109d21000, Error code: 0x0000000000000000, Fault CPU: 0x1
    Backtrace (CPU 1), Frame : Return Address
    0xffffff800ada2ca0 : 0xffffff8002c1d626
    0xffffff800ada2d10 : 0xffffff8002cb7bd5
    0xffffff800ada2ee0 : 0xffffff8002cce4ed
    0xffffff800ada2f00 : 0xffffff7f83801a58
    0xffffff800ada3090 : 0xffffff7f837faefb
    0xffffff800ada3140 : 0xffffff7f837dbefc
    0xffffff800ada3180 : 0xffffff7f837ddcf1
    0xffffff800ada3330 : 0xffffff7f837e0294
    0xffffff800ada3380 : 0xffffff7f838c8ba1
    0xffffff800ada34c0 : 0xffffff7f838cef2e
    0xffffff800ada3510 : 0xffffff7f835d9659
    0xffffff800ada3540 : 0xffffff7f834c383b
    0xffffff800ada35e0 : 0xffffff7f8348c3f7
    0xffffff800ada3610 : 0xffffff7f834bf23d
    0xffffff800ada3800 : 0xffffff7f834c03a2
    0xffffff800ada38d0 : 0xffffff7f836b415a
    0xffffff800ada3900 : 0xffffff7f836b05ce
    0xffffff800ada3920 : 0xffffff7f836af158
    0xffffff800ada39a0 : 0xffffff7f836ababb
    0xffffff800ada39c0 : 0xffffff7f8369f704
    0xffffff800ada3a30 : 0xffffff7f836b5851
    0xffffff800ada3ae0 : 0xffffff7f836aa61c
    0xffffff800ada3c60 : 0xffffff7f834563c7
    0xffffff800ada3cd0 : 0xffffff7f8344057b
    0xffffff800ada3d40 : 0xffffff7f834431b8
    0xffffff800ada3db0 : 0xffffff7f83442db4
    0xffffff800ada3e10 : 0xffffff7f83409c04
    0xffffff800ada3e50 : 0xffffff7f83408eef
    0xffffff800ada3e80 : 0xffffff7f834082cb
    0xffffff800ada3ef0 : 0xffffff80030472a8
    0xffffff800ada3f30 : 0xffffff8003045daa
    0xffffff800ada3f80 : 0xffffff8003045ed9
    0xffffff800ada3fb0 : 0xffffff8002cb26b7
          Kernel Extensions in backtrace:
             com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f833fb000->0xffffff7f83432fff
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f8324c000
             com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7f8343e000->0xffffff7f8344ffff
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f833fb000
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f8324c000
             com.apple.NVDAResman(8.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f83452 000->0xffffff7f83754fff
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f8324c000
                dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7f8343e000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f833fb000
             com.apple.nvidia.nv50hal(8.0)[9F3D09B5-3158-3D9E-BDA3-E71576AAD3B7]@0xffffff7f8 3762000->0xffffff7f83a84fff
                dependency: com.apple.NVDAResman(8.0.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f834 52000
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f8324c000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    12C60
    Kernel version:
    Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
    Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
    Kernel slide:     0x0000000002a00000
    Kernel text base: 0xffffff8002c00000
    System model name: Macmini4,1 (Mac-F2208EC8)
    System uptime in nanoseconds: 9708470052980
    last loaded kext at 3660329715313: com.apple.filesystems.afpfs          10.0 (addr 0xffffff7f84f16000, size 348160)
    last unloaded kext at 1940466153095: com.apple.driver.AppleUSBCDC          4.1.22 (addr 0xffffff7f84ef5000, size 12288)
    loaded kexts:
    com.Cycling74.driver.Soundflower          1.5.1
    com.iospirit.driver.rbiokithelper          1.8.0
    com.antecea.driver.AnteceaAudioDrv          1.0.0
    com.apple.filesystems.afpfs          10.0
    com.apple.nke.asp_tcp          7.0.0
    com.apple.filesystems.smbfs          1.8
    com.apple.driver.AppleIntelProfile          97
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AppleBluetoothMultitouch          75.15
    com.apple.iokit.IOBluetoothSerialManager          4.0.9f33
    com.apple.driver.AGPM          100.12.69
    com.apple.driver.ApplePlatformEnabler          2.0.5d4
    com.apple.driver.AppleHDA          2.3.1f2
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.driver.AppleMikeyDriver          2.3.1f2
    com.apple.driver.AudioAUUC          1.60
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.ApplePolicyControl          3.2.11
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleUpstreamUserClient          3.5.10
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.GeForce          8.0.0
    com.apple.filesystems.autofs          3.0
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          34
    com.apple.iokit.SCSITaskUserClient          3.5.1
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCIBlockStorage          2.2.2
    com.apple.driver.AppleUSBHub          5.2.5
    com.apple.iokit.AppleBCM5701Ethernet          3.2.5b3
    com.apple.driver.AppleUSBOHCI          5.2.5
    com.apple.driver.AppleFWOHCI          4.9.6
    com.apple.driver.AppleSDXC          1.2.2
    com.apple.driver.AirPort.Brcm4331          602.15.22
    com.apple.driver.AppleAHCIPort          2.4.1
    com.apple.driver.AppleUSBEHCI          5.4.0
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleACPIButtons          1.6
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.6
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
    com.apple.nke.applicationfirewall          4.0.39
    com.apple.security.quarantine          2
    com.apple.driver.AppleIntelCPUPowerManagement          196.0.0
    com.apple.security.SecureRemotePassword          1.0
    com.apple.driver.AppleProfileTimestampAction          97
    com.apple.driver.AppleProfileThreadInfoAction          97
    com.apple.driver.AppleProfileRegisterStateAction          97
    com.apple.driver.AppleProfileReadCounterAction          97
    com.apple.driver.AppleProfileKEventAction          97
    com.apple.driver.AppleProfileCallstackAction          97
    com.apple.iokit.AppleProfileFamily          97
    com.apple.driver.AppleBluetoothHIDKeyboard          165.5
    com.apple.driver.AppleHIDKeyboard          165.5
    com.apple.driver.IOBluetoothHIDDriver          4.0.9f33
    com.apple.driver.AppleMultitouchDriver          235.28
    com.apple.iokit.IOSerialFamily          10.0.6
    com.apple.driver.DspFuncLib          2.3.1f2
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.iokit.AppleBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.iokit.IOSurface          86.0.3
    com.apple.iokit.IOBluetoothFamily          4.0.9f33
    com.apple.iokit.IOAudioFamily          1.8.9fc10
    com.apple.kext.OSvKernDSPLib          1.6
    com.apple.driver.AppleGraphicsControl          3.2.11
    com.apple.driver.AppleHDAController          2.3.1f2
    com.apple.iokit.IOHDAFamily          2.3.1f2
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleSMC          3.1.4d2
    com.apple.driver.IOPlatformPluginLegacy          1.0.0
    com.apple.driver.IOPlatformPluginFamily          5.2.0d16
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.nvidia.nv50hal          8.0.0
    com.apple.NVDAResman          8.0.0
    com.apple.iokit.IONDRVSupport          2.3.5
    com.apple.iokit.IOGraphicsFamily          2.3.5
    com.apple.kext.triggers          1.0
    com.apple.iokit.IOUSBHIDDriver          5.2.5
    com.apple.driver.AppleUSBMergeNub          5.2.5
    com.apple.driver.AppleUSBComposite          5.2.5
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.5.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOAHCISerialATAPI          2.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.5.1
    com.apple.iokit.IOUSBUserClient          5.2.5
    com.apple.iokit.IOEthernetAVBController          1.0.2b1
    com.apple.driver.NVSMU          2.2.9
    com.apple.iokit.IOFireWireFamily          4.5.5
    com.apple.iokit.IO80211Family          500.15
    com.apple.iokit.IONetworkingFamily          3.0
    com.apple.iokit.IOAHCIFamily          2.2.1
    com.apple.iokit.IOUSBFamily          5.4.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.8.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          220
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          344
    com.apple.iokit.IOStorageFamily          1.8
    com.apple.driver.AppleKeyStore          28.21
    com.apple.driver.AppleACPIPlatform          1.6
    com.apple.iokit.IOPCIFamily          2.7.2
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.corecrypto          1.0
    Model: Macmini4,1, BootROM MM41.0042.B03, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.65f2
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.81.22)
    Bluetooth: Version 4.0.9f33 10885, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Serial ATA Device: TOSHIBA MK5055GSXF, 500.11 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: hub_device, 0x0409  (NEC Corporation), 0x005a, 0x24100000 / 2
    USB Device: iPhone, apple_vendor_id, 0x12a0, 0x26200000 / 2
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x06500000 / 2
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000 / 3
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8218, 0x06630000 / 4

  • Multiple time periods??

    Hi Experts,
    can any one help me in this,
    Can we show multiple time periods in a single report???
    Thanks in Advance.

    Bhargav K wrote:
    Hi ,
    i want to display multiple time periods in a single report may be using narrative view or any other views can i achive it??Yes you can display multiple time periods, However unless you tell us what exactly you want, Im not sure I can give you an exact answer.

  • 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

  • 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

Maybe you are looking for