Output formatting problems with SO_DOCUMENT_SEND_API1

Hi,
I am sending an output file via email using the function module SO_DOCUMENT_SEND_API1.
The tlines table which I am passing into this function has 66 lines in it and I expect there to be 66 lines in the output file attached in the email. However, everything seems to be output into a single line.
If I send the output directly to the server it is fine.
Has anyone seen anything like this before or have any suggestions on what might be causing this?
Thanks,
Ruby

Here is the  another  program which Converts the spool into PDF  and sends as attach file .
*& Report  ZSPOOLTOPDF                                                 *
*& Converts spool request into PDF document and emails it to           *
*& recipicant.                                                         *
*& Execution                                                           *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on      *
*& screen                                                              *
REPORT  zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
                                    DEFAULT '[email protected]',
           p_sender LIKE somlreci1-receiver
                                    DEFAULT '[email protected]',
           p_delspl  AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
        INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
      wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
      gd_eventparm LIKE tbtcm-eventparm,
      gd_external_program_active LIKE tbtcm-xpgactive,
      gd_jobcount LIKE tbtcm-jobcount,
      gd_jobname LIKE tbtcm-jobname,
      gd_stepcount LIKE tbtcm-stepcount,
      gd_error    TYPE sy-subrc,
      gd_reciever TYPE sy-subrc.
DATA:  w_recsize TYPE i.
DATA: gd_subject   LIKE sodocchgi1-obj_descr,
      it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      gd_sender_type     LIKE soextreci1-adr_typ,
      gd_attachment_desc TYPE so_obj_nam,
      gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
      gd_destination LIKE rlgrap-filename,
      gd_bytecount LIKE tst01-dsize,
      gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
           c_no(1)     TYPE c   VALUE ' ',
           c_device(4) TYPE c   VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
  WRITE 'Hello World'.
  new-page.
  commit work.
  new-page print off.
  IF sy-batch EQ 'X'.
    PERFORM get_job_details.
    PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
*        to sap-spool
*        spool parameters   %_print
*        archive parameters %_print
*        without spool dynpro
*        and return.
* Get spool id from program called above
*  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
    PERFORM convert_spool_to_pdf.
    PERFORM process_email.
    if p_delspl EQ 'X'.
      PERFORM delete_spool.
    endif.
    IF sy-sysid = c_dev.
      wait up to 5 seconds.
      SUBMIT rsconn01 WITH mode   = 'INT'
                      WITH output = 'X'
                      AND RETURN.
    ENDIF.
  ELSE.
    SKIP.
    WRITE:/ 'Program must be executed in background in-order for spool',
            'request to be created.'.
  ENDIF.
*       FORM obtain_spool_id                                          *
FORM obtain_spool_id.
  CHECK NOT ( gd_jobname IS INITIAL ).
  CHECK NOT ( gd_jobcount IS INITIAL ).
  SELECT * FROM  tbtcp
                 INTO TABLE it_tbtcp
                 WHERE      jobname     = gd_jobname
                 AND        jobcount    = gd_jobcount
                 AND        stepcount   = gd_stepcount
                 AND        listident   <> '0000000000'
                 ORDER BY   jobname
                            jobcount
                            stepcount.
  READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
  IF sy-subrc = 0.
    message s004(zdd) with gd_spool_nr.
    gd_spool_nr = wa_tbtcp-listident.
    MESSAGE s004(zdd) WITH gd_spool_nr.
  ELSE.
    MESSAGE s005(zdd).
  ENDIF.
ENDFORM.
*       FORM get_job_details                                          *
FORM get_job_details.
* Get current job details
  CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
       IMPORTING
            eventid                 = gd_eventid
            eventparm               = gd_eventparm
            external_program_active = gd_external_program_active
            jobcount                = gd_jobcount
            jobname                 = gd_jobname
            stepcount               = gd_stepcount
       EXCEPTIONS
            no_runtime_info         = 1
            OTHERS                  = 2.
ENDFORM.
*       FORM convert_spool_to_pdf                                     *
FORM convert_spool_to_pdf.
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
       EXPORTING
            src_spoolid              = gd_spool_nr
            no_dialog                = c_no
            dst_device               = c_device
       IMPORTING
            pdf_bytecount            = gd_bytecount
       TABLES
            pdf                      = it_pdf_output
       EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
  CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
  LOOP AT it_pdf_output.
    TRANSLATE it_pdf_output USING ' ~'.
    CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
  ENDLOOP.
  TRANSLATE gd_buffer USING '~ '.
  DO.
    it_mess_att = gd_buffer.
    APPEND it_mess_att.
    SHIFT gd_buffer LEFT BY 255 PLACES.
    IF gd_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
ENDFORM.
*       FORM process_email                                            *
FORM process_email.
  DESCRIBE TABLE it_mess_att LINES gd_recsize.
  CHECK gd_recsize > 0.
  PERFORM send_email USING p_email1.
*  perform send_email using p_email2.
ENDFORM.
*       FORM send_email                                               *
*  -->  p_email                                                       *
FORM send_email USING p_email.
  CHECK NOT ( p_email IS INITIAL ).
  REFRESH it_mess_bod.
* Default subject matter
  gd_subject         = 'Subject'.
  gd_attachment_desc = 'Attachname'.
*  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
  it_mess_bod        = 'Message Body text, line 1'.
  APPEND it_mess_bod.
  it_mess_bod        = 'Message Body text, line 2...'.
  APPEND it_mess_bod.
* If no sender specified - default blank
  IF p_sender EQ space.
    gd_sender_type  = space.
  ELSE.
    gd_sender_type  = 'INT'.
  ENDIF.
* Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                               tables it_mess_bod
                                      it_mess_att
                                using p_email
                                      'Example .xls documnet attachment'
                                      'PDF'
                                      gd_attachment_name
                                      gd_attachment_desc
                                      p_sender
                                      gd_sender_type
                             changing gd_error
                                      gd_reciever.
ENDFORM.
*       FORM delete_spool                                             *
FORM delete_spool.
  DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
  ld_spool_nr = gd_spool_nr.
  CHECK p_delspl <> c_no.
  CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
       EXPORTING
            spoolid = ld_spool_nr.
ENDFORM.
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
*       Send email
FORM send_file_as_email_attachment tables it_message
                                          it_attach
                                    using p_email
                                          p_mtitle
                                          p_format
                                          p_filename
                                          p_attdescription
                                          p_sender_address
                                          p_sender_addres_type
                                 changing p_error
                                          p_reciever.
  DATA: ld_error    TYPE sy-subrc,
        ld_reciever TYPE sy-subrc,
        ld_mtitle LIKE sodocchgi1-obj_descr,
        ld_email LIKE  somlreci1-receiver,
        ld_format TYPE  so_obj_tp ,
        ld_attdescription TYPE  so_obj_nam ,
        ld_attfilename TYPE  so_obj_des ,
        ld_sender_address LIKE  soextreci1-receiver,
        ld_sender_address_type LIKE  soextreci1-adr_typ,
        ld_receiver LIKE  sy-subrc.
data:   t_packing_list like sopcklsti1 occurs 0 with header line,
        t_contents like solisti1 occurs 0 with header line,
        t_receivers like somlreci1 occurs 0 with header line,
        t_attachment like solisti1 occurs 0 with header line,
        t_object_header like solisti1 occurs 0 with header line,
        w_cnt type i,
        w_sent_all(1) type c,
        w_doc_data like sodocchgi1.
  ld_email   = p_email.
  ld_mtitle = p_mtitle.
  ld_format              = p_format.
  ld_attdescription      = p_attdescription.
  ld_attfilename         = p_filename.
  ld_sender_address      = p_sender_address.
  ld_sender_address_type = p_sender_addres_type.
* Fill the document data.
  w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
  w_doc_data-obj_langu = sy-langu.
  w_doc_data-obj_name  = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
* Fill the document data and get size of attachment
  CLEAR w_doc_data.
  READ TABLE it_attach INDEX w_cnt.
  w_doc_data-doc_size =
     ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
  w_doc_data-obj_langu  = sy-langu.
  w_doc_data-obj_name   = 'SAPRPT'.
  w_doc_data-obj_descr  = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = it_attach[].
* Describe the body of the message
  CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 0.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE it_message LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.
* Create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 1.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
  t_packing_list-doc_type   =  ld_format.
  t_packing_list-obj_descr  =  ld_attdescription.
  t_packing_list-obj_name   =  ld_attfilename.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  APPEND t_packing_list.
* Add the recipients email address
  CLEAR t_receivers.
  REFRESH t_receivers.
  t_receivers-receiver = ld_email.
  t_receivers-rec_type = 'U'.
  t_receivers-com_type = 'INT'.
  t_receivers-notif_del = 'X'.
  t_receivers-notif_ndel = 'X'.
  APPEND t_receivers.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = w_doc_data
            put_in_outbox              = 'X'
            sender_address             = ld_sender_address
            sender_address_type        = ld_sender_address_type
            commit_work                = 'X'
       IMPORTING
            sent_to_all                = w_sent_all
       TABLES
            packing_list               = t_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = t_receivers
       EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
* Populate zerror return code
  ld_error = sy-subrc.
* Populate zreceiver return code
  LOOP AT t_receivers.
    ld_receiver = t_receivers-retrn_code.
  ENDLOOP.
ENDFORM.
reward  points if it is usefull ...
Girish

Similar Messages

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • Whatsnew page for 3.6.17 has formatting problems with Firefox and I.E.

    I just updated from 3.6.16 to 3.6.17n and the whatsnew page, displayed after Firefox restarted, has formatting problems in the lower right hand corner.
    I checked it with I.E. 8 and it also shows the formatting problem.
    Why wasn't this caught before the page was put into "production"?
    The URL is http://www.mozilla.com/en-US/firefox/3.6.17/whatsnew/
    There is a line with the text "Release Notes » Firefox Features » Firefox Help »" that is being displayed on top of other material.
    I wonder what a new Firefox user or an inexperienced user would think of this? They might think that they did something wrong or, worse, they might consider Firefox had problems and they won't use it.
    This reflects badly on Firefox.
    One more thing, could someone make this textarea taller and wider. It is so small as to cause problems typing and proofing the material.
    The URL is https://support.mozilla.com/en-US/questions/new?product=desktop&category=d6&search=whatsnew+page+for+3.6.17+has+formatting+problems+with+Firefox+and+I.E.&showform=1
    How about upping the cols and rows values? They are currently rows="10" cols="40"

    As you have a Power Mac you also have a alternative option to consider which is a third-party build from http://tenfourfox.blogspot.com/2011/08/601-now-available.html

  • Problem with SO_DOCUMENT_SEND_API1 Function module

    Hi Experts,
    Is it anyway possible that If we are sending excel attachment through email using SO_DOCUMENT_SEND_API1, column width in excel get adjusted as per the field content without any manual interaction.
    Looking forward towards your valuable suggestions!!!
    Regards
    VJ

    hi,
    please see the following
    [alignment problem with SO_NEW_DOCUMENT_SEND_API1 FM;
    [Problem with function module SO_NEW_DOCUMENT_SEND_API1;
    hope these helps you
    Regards
    Ritesh

  • Format problem with MSI 865Neo2-PFISR

    I had a problem with my MSI 865Neo2-PFISR, when i was formatting the drive (WD 40GB 7200) format it was not responding... by thw way... i completed the format with the 4th try, and before 2 wks i have format again and everything it was fine. But why it was not responding at the first format?
    i have Celeron 2.4Ghz northwood
    MSI 865Neo2-PFISR
    Kingston 256 DDR400
    WD 40GB 7200rpm
    Abit ATi 9200SE-DT 128MB
    SoundBlaster AudigyES

    I had the same PSU noname 350W and i formatted my disk fine, just 3 times it stops to respond at the first time, now i have levicom PSU with 28A on 3.3V and it's ok...

  • Data format problem with Write to Spreedsheet File

    I have a problem with the data format with Write to spredsheet file.
    I have an N*3 array, where the 3 elements in each row should has different length. When I used Write to spreedsheet file,
    it can only save the three data in one format. How can I save them in the format of "%0.8f %0.3f %0.2f"?
    Thanks for your help.

    Hi powerplay,
    another solution may be to convert column-wise using "number to fractional string", then interleaving resulting arrays and again using "array to spreadsheet string" (with "space" as separator).
    Many ways lead to Rome
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • ME81N - Analysis of Order Values - output format problem

    Hi all,
    In transaction ME81N, we are unable to change the output format to a different type of output such as a File Store, Excel file etc.
    All the options appear to be greyed out and it defaults only to SAP List Viewer.
    Do you know why we are unable to modify this option and whether there is an issue with this? Or whether this is restricted via other means?
    thanks and regards

    I think you are looking for diff one
    you are having the issue on the first screen it self.
    To resolve that issue go to header and click on GOTO-Variants- save as variant
    here you will see the std SAP variant SAP&BEWA
    go to the bottom screen
    Now scroll down the botton screen where you can find the all the fields you are looking as Protected and hide
    uncheck all the filels which you want as protected and hide
    and save the variant then go back to ME81N main screen and you will see that selectio is available.
    sorry for confusion

  • Formatting problem with windows XP

    Hmmm... I have several older macs that I'm currently using for parts for both my G4 and my PC. The problem I'm having is with the HDDs. I've removed several internal IDE hard drives (from 3.2 to 15 GB) all of which are formatted for mac OS9.1 extended. They work great in my G4 but my PC (windows XP professional) won't even recognize them and I can't re-format them in DOS on my mac because that option isn't available in drive setup..
    Do I need a third party program (either mac or PC and what would you recommend) or is there someway to work around this? I would hate to just throw them out because they do work
    I realize this isn't critical but it is a bit of a pain and any help would be appreciated.
    G4   Mac OS 9.1.x  

    Thanx again Tom!
    The only problem with Swissknife is that it only works on drives that are already recognized by the PC. I can't even get these guys to show up, let alone mount! I even have a USB to IDE connection so I can attach them externally. It works great on my PC formatted HDs but still won't register my mac ones..
    by the way, I tried your idea with OS9 and it still won't let me format in DOS
    Is a puzzlement..

  • Numerical Characters Formatting Problem With XML Report Output Run From Command Line

    Hi,
    Problem description is:
    When a BI Publisher concurrent job is submitted as a child job of a PL/SQL type concurrent request, the locale in OPP is not set same as of RTF template selected. This results in number format and date format localization not work as expected. For example, when BI Publisher child job is submitted after attaching RTF template (through fnd_request.add_layout API) having language-territory as de-DE, the number format on PDF output comes out as 9,999.00 instead of 9.999,00.
    Points to notice:
    1. In OPP log we noticed that xslt._XDOLOCALE always has value EN-GB irrespective of language-territory of attached RTF template
    2. NLS_NUMERIC_CHARACTER column in fnd_concurrent_request table has no value for BI Publisher job. We can set it up through fnd_request.set_options API but it is not a desired solution. We need that OPP should automatically choose correct number format depending on locale of selected RTF template
    3. When same child BI Publisher job's output is re-processed through "XML Publisher Report" program and de-DE locale is chosen for RTF template then the number format localization works fine.
    Please help us to understand root cause of this issue and how it can be resolved.
    Thanks!

    Hi,
    Problem description is:
    When a BI Publisher concurrent job is submitted as a child job of a PL/SQL type concurrent request, the locale in OPP is not set same as of RTF template selected. This results in number format and date format localization not work as expected. For example, when BI Publisher child job is submitted after attaching RTF template (through fnd_request.add_layout API) having language-territory as de-DE, the number format on PDF output comes out as 9,999.00 instead of 9.999,00.
    Points to notice:
    1. In OPP log we noticed that xslt._XDOLOCALE always has value EN-GB irrespective of language-territory of attached RTF template
    2. NLS_NUMERIC_CHARACTER column in fnd_concurrent_request table has no value for BI Publisher job. We can set it up through fnd_request.set_options API but it is not a desired solution. We need that OPP should automatically choose correct number format depending on locale of selected RTF template
    3. When same child BI Publisher job's output is re-processed through "XML Publisher Report" program and de-DE locale is chosen for RTF template then the number format localization works fine.
    Please help us to understand root cause of this issue and how it can be resolved.
    Thanks!

  • Output format problem.

    Hey guys! You've always helped me out and I hope you can help me out with this problem I have.
    I was asked to give two videos a specific output, one of them I developed in After Effects, the other is a Quicktime (.MOV) video.
    I'm actively trying but I can't seem to figure out how to deliver the exact requirements they're asking of me. Here goes.
    My animation on AE was made at 720x480, Square pixels.
    The .MOV is at (according to QuickTime Inspector) 720x486 (640x480) Linear PCM. At 29.97 FPS, 53.62 Mbit/s Current Size 648x480.
    Their requirements are:
    Wrapper: Quicktime Selfcontained
    Header: ALIS
    Scan: Interlaced
    Field Dominance: Lower field
    Compressor: DVCPRO 50
    Bit Rate: 50 Mnps
    FPS: 29.97
    Codec Audio: PCM
    Aspect Ratio: 4:03
    They're asking for Betacam format.
    I have, honestly no idea how to get all those requirements in the file.
    I can output it compressed by DVCPRO50 from AE, but I can't alter the Bitrate and the aspect is changed to 0.91, I have no idea how to get the PCM audio codec, or how to change the field dominance.
    I've been using AE for a while now, but I've never been asked to get a different format other than Quicktime with H264 compression.
    I'm sorry this is so long, but, I hope you guys can help me out on how to get these specifications on these files. Wether it can be done directly from AE, or if I have to use Adobe Media Encoder, or something of the sort.
    If you need ANY information I haven't given you, please let me know.
    Thanks for your attention!!

    You may recieve faster and more useful help if you post your question in the Afert Effects forum,
    http://forums.adobe.com/community/aftereffects_general_discussion
    This one is only for discussions on the forums themselves.

  • HT201071 RAW format Problem with NIKON D600 after updating to maverick.

    We still have problems after this update.
    Pictures in RAW format imported to Aperture are brilliant as they are with the NIKON D600. Imported Pictures with the NIKON D800 are aweful. They are kind of grey without any saturation. To convert every single Picture to JPEG brings back their brilliance and colors. We have consulted the apple and the aperture support, but they dind't have any solution to fix our issue.
    Any ideas?

    Have you also asked in the Adobe forums?  To have people read your post, best not to include long crash reports until asked to do so.

  • Formatting problem with JDOM

    friends,
    help me out plz..
    While creating a xml document using JDOM ,
    I am not able to get the formatted xml file.
    program output is:
    <?xml version="1.0" encoding="UTF-8"?>
    <person><name>A</name><name>B</name><name>C</name><name>D</name></person>
    I want the result as:
    <?xml version="1.0" encoding="UTF-8"?>
    <person>
         <name>A</name>
         <name>B</name>
         <name>C</name>
         <name>D</name>
    </person>
    // XMLGenerator.java
    import org.jdom.Element;
    import org.jdom.Document;
    import org.jdom.output.XMLOutputter;
    import java.io.*;
    public class XMLGenerator {
    public static void main(String[] args) throws Exception{
    Element root = new Element("employee");
    while(rs.next()) // rs .. ResultSet
    Element emp_name= new Element("name");
    emp_name.setText(rs.getString(rs.getString("name")));
    root.addContent(emp_name);
    Document doc = new Document(root);
    // serialize it into a file
    try {
    FileOutputStream out = new FileOutputStream("record.xml");
    XMLOutputter serializer = new XMLOutputter();
    serializer .setIndent(true);
    serializer.output(doc, out);
    out.flush();
    out.close();
    catch (IOException e) {
    System.err.println(e);

    try:
    XMLOutputter serializer = new XMLOutputter( " " );
    with the size of the indent you require.
    You dont really need the line: serializer.setIndent(true); if u use this constructor.
    Hope this Helps
    Sam

  • Optical Output surround problem with SB X'FI Xtreme Audio Notebook (Gray one)

    Dear All and Creative Gurus,
    I search through the forum and read all sticky thread and didn't find an answer, so I need to post here:
    I just bought this ExpressCard sound card for my laptop, and nearly all work fine. I know pretty well Creative tools and settings for years as I already have an XtremeGamer PCI card for my desktop PC.
    I meet an Optical Output issue with this new Notebook card:
    When I use any software to play DTS or Dolby Digital signal from video or music (E.g. a DVD with PowerDVD or VLC), the Optical Output only send "basic" st?r?o, and my amplifier can't detect any surround. Surround is OK when I use the little dock with the 7. analog output.
    As a comparison, with the other computer, and the X'FI XtremeGamer sound card, and using same settings, same sources and same software (VLC or PowerDVD set to spdif output) the Optical Output send surround sound, and my amplifier detect Dolby or DTS source.
    So I hope it's just a drivers (updated I think) or settings problem, and I hope this optical output is not made only for st?r?o sound!
    Let me know your feelings here Guys, thanks! And keep the good work
    Best regards,
    Loran_69
    Edit few minuts after : All work fine if I use the "Creative MediaSource 5 Player" !
    The optical Output send surround and my amplifier well detect the Dolby or DTS source!
    So what's going on with other software like VLC or PowerDVD, with the same settings than my desktop computer (spdif enabled)?

    Seeing as the desktop version of the Xtreme Audio doesn't support Game Mode or even have the X-Fi chip on it (card is basically nothing more than a renamed SB Li've 24 bit/Audigy SE), I don't see how the notebook version can be any different. That and from looking at the specs for it I don't see anywhere that it even mentions anything about Game Mode, never mind EAX.

  • Formatting problems with document

    Ok I've made an estimate form in pages and put a table in it.  Adding a table has done a lot of odd things to the document. I can't change the spelling on any words inside the table. It will hightlight them as incorrect but I'm unable to change the spelling using my mouse for suggestions. I can change it manually if I can figure out how to spell the word.
    But here are my real problems, please see attached screenshot. 
    1) In the line total column it won't allow me to put a period after the dollar amount. I put it there and it keeps removing it!
    2) I can't line up the text in the 2 columns. Because when I put in the $640. where I want it to be (using return key) once I finish putting in the number it puts it at the top of the column.  I can't keep it down by the text "Labor and Materials".  As you can see by the red underline I had to put in text there and make it white so it won't show up to move the $640. down.
    Can someone tell me how to fix these 2 issues??
    Any help would be greatly appreciated.
    Susan

    Hi!
    I would use cells with the same height. I would only write one line in each cell, at least for the ones that will have a number in the next cell to the right. You really don't need a  punctuation after the number. I have used the formatting options in the Inspector. I have changed the cell borders for some cells to none (see the second image). I do this on Snow Leopard, not on Lion like you have. The spelling correction problem must someone else test. It works on my computer to right click on the misspelled word

  • Numeric Format problem with 0 value

    I have a numeric column in a Webi report.  There are some values showing a 0.  My customer doesn't want the 0 value to be shown, instead of it she wants the dash sign ( - ) to be shown, just like in Ms Excel.
    I do right-click on the column and choose Number Format.  Then I choose Number and any of the formats shown in the list.  Then I check the Custom option. In the Equal to Zero box  I input a dash sign because I want this sign  -  to be shown instead of the 0 values.  But it doesn't work.  Instead of the dash it shows a blank cell.
    What can I do to solve this problem? Is it a bug in Business Objects XI?

    >
    salah1 wrote:
    > Another way of doing this is in the universe designer, you can right click on dimension/measure, choose object format and then in the number format add \- in the 'Equal to Zero' box. This way you dont have to add formula in each report.
    >
    > Edited by: salah1 on Sep 7, 2010 11:28 AM
    Thanks for your post!
    I was wrong when using the Format Number option in WebI because I was putting just the dash sign and with your post now I know that I had to use a backslash sign like you mention \- , instead of just placing in the  'Equal to Zero' box this - sign.
    So it works not only in Universe Designer but in WebI too.

Maybe you are looking for

  • 4 signs to know that your lead scoring program is working

    Getting the science of how your buyers engage with you is key for making revenue generation more predictable. We have worked with many sales and marketing organizations who look to putting in a lead scoring system to better qualify which leads should

  • When syncing with itunes with my macBook Air my iphone

    When I try to sync my iphone on iTunes it comes up with an error as unknown error occurred (13019) can anyone tell me when this is happening. Did not have problems before.

  • Sync Problems with External HD, iTunes freezes

    I sync all my music without any problems from teh computer's hard drive (HP Notebook ze4805, AMD Athlon 2800, 512KB, 60GB, XP). The photo sync is directed to folder on a Seagate 300GB external hardrive which the computer regognizes and iTunes sees al

  • How to send this command to RS232 Port

    I want to use LV to control a label printer to print what I need. Following info is from printer user manual. From RS232 port: If Codex has been used with the controller then the simple serial protocol will need to be enabled by sending ESC Z SWITCH

  • Catalogs in MM

    Folks, We're on ECC 6.0 and it should be possible to use vendor catalogs. Anyone experience on this? I can't find any documentation on this topic. Thanks for helping. MZ