Problem using the FM SO_NEW_DOCUMENT_ATT_SEND_API1

Hii All,
In the function module SO_NEW_DOCUMENT_ATT_SEND_API1, in the Tables tab, the parameter CONTENTS_BIN like SOLISTI1 uses a field LINE of 255 characters length. The table-type parameter which is passed to CONTENTS_BIN in my program has the field LINE of length 125 characters only. But in the output, the attachment has rest of the characters (255-125=130) blank. I want my attachment to contain lines of width 125 characters only. How to go with it.Hope the problem is understood.
Thanks in advance.
Abdul.

Hi,
There is nothing much we can do for this.
You will have to adjust the length of the LINE to wrap mor text into it.
Hope it helps..
Regards,
Shashank

Similar Messages

  • Using the FM SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi Gurus,
    I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    My requirement needs me to email an attachment.
    Why is it that when I input
    A
    B
    C
    in my table, the value I am getting is
    A                         B                        C
    wherein I should get an attachment that should look like this one
    A
    B
    C
    My output file is a TXT file. I understand that this is using the CONTENT_BIN that uses the binary format.
    What I need is an attachment that is using the ASCII format. But when I use the ASCII format, I am getting an error: "error occurred during sending !".
    Do I need to make enhacements on the FM?
    Thanks in advance.
    Benedict

    Hi Benedict,
    Please refer to the below code.
    Program:  ZRAT                 Creation Date: 12.04.2007 *
    Program Title :  Retirement Age Trigger                  *
    Program Author:  Puneet Jhari                            *
    Program Type  :   Executable                             *
    Object ID     :                                          *
    Technical Specification Version:                         *
    Technical Specification Author:                          *
    Code Quality Reviewer     :                              *
    Transport No.          :  SRDK906499                     *
    Program Description:                                     *
    Inputs                                                   *
       Tables:                                               *
       Parameters                                            *
       External files:                                       *
    Outputs                                                  *
       Reports:                                              *
       Tables:                                               *
       Databases:                                            *
       Screens:                                              *
       Parameters                                            *
       External files:                                       *
       Other objects:                                        *
    Return codes set by ABAP:                                *
    Modification Informaion                                  *
    Program Version:                                         *
    Date         : DD-MMM-YYYY                               *
    Author       :                                           *
    Description  :                                           *
    Transport No.:                                           *
    REPORT  zrat NO STANDARD PAGE HEADING.
    *DATA DECLARATION
    DATA : BEGIN OF wa_ccode,
            bukrs TYPE t001-bukrs,
           END OF wa_ccode.
    DATA : itab_ccode LIKE TABLE OF wa_ccode.
    DATA : BEGIN OF wa_emp,
            pernr TYPE pa0001-pernr,
            sachp TYPE pa0001-sachp,
            sname TYPE pa0001-sname,
           END OF wa_emp.
    DATA : itab_emp LIKE TABLE OF wa_emp.
    DATA : BEGIN OF wa_bdate,
            nachn LIKE pa0002-nachn,
            vorna LIKE pa0002-vorna,
            pernr TYPE pa0002-pernr,
            gbdat TYPE pa0002-gbdat,
           END OF wa_bdate.
    DATA : itab_bdate LIKE TABLE OF wa_bdate.
    DATA : new_date LIKE sy-datum.
    DATA : diff TYPE i.
    DATA : years LIKE p0347-scryy,
           months LIKE p0347-scrmm,
           days LIKE p0347-scrdd.
    DATA : sup_code LIKE pa0001-sachp,
           itab_usrid LIKE t526-usrid,
           sup_pernr LIKE pa0105-pernr.
    DATA : BEGIN OF wa_email,
           usrid_long LIKE pa0105-usrid_long,
           END OF wa_email.
    DATA : sup_email LIKE TABLE OF wa_email.
    DATA : gwa_document_data LIKE sodocchgi1,
           gc_name  TYPE so_obj_nam VALUE 'RETIREMENT',
           gc_senst TYPE so_obj_sns VALUE 'P',
           gc_size  TYPE so_doc_siz VALUE '510',
           gi_obj_cnt LIKE TABLE OF solisti1 WITH HEADER LINE,
           gi_recievers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
           gwa_obj_cnt LIKE LINE OF gi_obj_cnt.
    DATA : smtp_addr LIKE adr6-smtp_addr.
    DATA : wa_date LIKE sy-datum,
           entries LIKE sy-tabix,
           name(15),
           line1(18) TYPE c,
           line2(20) TYPE c,
           line3(20) TYPE c,
           line4(23) TYPE c,
           line5(10) TYPE c,
           line6(45) type c,
           date(2) TYPE c,
           month(2) TYPE c,
           year(4) TYPE c.
    *START OF SELECTION
    SELECT bukrs
    FROM t001
    INTO TABLE itab_ccode
    WHERE land1 EQ 'GB'.
    SORT itab_ccode.
    DELETE ADJACENT DUPLICATES FROM itab_ccode.
    SELECT pernr sachp sname
    FROM pa0001
    INTO TABLE itab_emp
    FOR ALL ENTRIES IN itab_ccode
    WHERE bukrs EQ itab_ccode-bukrs AND begda LE sy-datum AND
    endda GE sy-datum and persg eq '1'.
    SELECT nachn vorna pernr gbdat
    FROM pa0002
    INTO TABLE itab_bdate
    FOR ALL ENTRIES IN itab_emp
    WHERE pernr EQ itab_emp-pernr.
    *TO CHECK EMPLOYEES WHOSE AGE IS NEAR 75 YEARS.
    LOOP AT itab_bdate INTO wa_bdate.
      new_date = wa_bdate-gbdat.
    *TO CALCULATE THE AGE TILL DATE
      CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
        EXPORTING
          date1                         = sy-datum
          date2                         = new_date
         output_format                 = '05'
       IMPORTING
         years                         = years
         months                        = months
         days                          = days
      IF sy-subrc <> 0.
      ENDIF.
      IF years EQ 64 AND months EQ 4.
        IF days GE 23 AND days LE 31.
    *FETCH THE DATA IF THE AGE IS NEARING 75 YEARS
          SELECT SINGLE sachp FROM pa0001 INTO sup_code WHERE pernr EQ
          wa_bdate-pernr AND begda LE sy-datum AND endda GE sy-datum.
          SELECT SINGLE usrid FROM t526 INTO itab_usrid WHERE sachx EQ
          sup_code.
          SELECT SINGLE pernr FROM pa0105 INTO sup_pernr WHERE usrid EQ
          itab_usrid AND subty EQ '0001'.
          clear sup_email[].
          SELECT usrid_long FROM pa0105 INTO TABLE sup_email WHERE pernr EQ
          sup_pernr AND subty EQ '0010'.
    *EMAIL ADDRESS OF THE SUPERVISOR TO BE NOTIFIED
          CLEAR gi_obj_cnt.
          CLEAR gi_recievers.
          CLEAR gwa_document_data.
          Loop at sup_email into wa_email.
          write sy-uline+0(5).
          write sy-uline+10(5).
          write sy-uline+20(5).
          write sy-uline+30(5).
          write sy-uline+40(5).
          write sy-uline+50(5).
          write sy-uline+60(5).
          write sy-uline+70(5).
          smtp_addr = wa_email-usrid_long.
          gi_recievers-receiver = smtp_addr.
          gi_recievers-rec_type = 'U'.
          gi_recievers-com_type = 'INT'.
          APPEND gi_recievers.
          Endloop.
          smtp_addr = '[email protected]'.
          gi_recievers-receiver = smtp_addr.
          gi_recievers-rec_type = 'U'.
          gi_recievers-com_type = 'INT'.
          APPEND gi_recievers.
          gwa_document_data-obj_name    = gc_name.
          gwa_document_data-obj_descr   = 'RETIRE'.
          gwa_document_data-sensitivty  = gc_senst.
          gwa_document_data-obj_langu = sy-langu.
    *CONTENT OF THE EMAIL TO BE SENT
          line1 = 'Please note that  '.
          line2 = wa_bdate-vorna.
          line3 = wa_bdate-nachn.
          line4 = ' will be 65 years on  '.
          line50(4) = wa_bdate-gbdat4(4).
          date = line5+2(2).
          month = line5+0(2).
          year = wa_bdate-gbdat+0(4) + 65.
          CONCATENATE date month year INTO line5 SEPARATED BY '.'.
          line6 = '.Please complete the Retirement Procedure.'.
          CONCATENATE line1 line2 line3 line4 line5 line6 INTO gwa_obj_cnt
          SEPARATED BY space.
          APPEND gwa_obj_cnt TO gi_obj_cnt.
          CLEAR gwa_obj_cnt.
          DESCRIBE TABLE gi_obj_cnt LINES entries.
          READ TABLE gi_obj_cnt INDEX entries.
    gwa_document_data-doc_size = ( entries - 1 ) * 255 + STRLEN( gi_obj_cnt
    *FUNCTION MODULE TO SEND THE EMAIL TO THE CONCERNED PERSONS
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        document_data                    = gwa_document_data
        document_type                    = 'RAW'
             commit_work                      = 'X'
            TABLES
             object_content                   = gi_obj_cnt
              receivers                        = gi_recievers
      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
    *MESSAGE TO BE DISPLAYED AFTER THE EXECUTION
         endif.
          CASE sy-subrc.
            WHEN 0.
              LOOP AT gi_recievers.
                IF gi_recievers-receiver = space.
                  name = gi_recievers-rec_id.
                ELSE.
                  name = gi_recievers-receiver.
                ENDIF.
                IF gi_recievers-retrn_code = 0.
                  WRITE: / name, ': succesfully sent'.
                ELSE.
                  WRITE: / name, ': error occured'.
                ENDIF.
              ENDLOOP.
            WHEN 1.
              WRITE: / 'Too many receivers specified !'.
            WHEN 2.
              WRITE: / 'No receiver got the document !'.
            WHEN 4.
              WRITE: / 'Missing send authority !'.
            WHEN OTHERS.
              WRITE: / 'Unexpected error occurred !'.
          ENDCASE.
        ENDIF.
      ENDIF.
    ENDLOOP.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Could not complete the command because of a problem using the Adobe Color Engine

    Hi all
    This bizarrely started this morning - completely out of the blue - and I've no idea why.
    Setup: Mac 10.8.2 / Creative Suite Premium PhotoShop CS5 extended (patched to 12.04)
    Am working on images exported from LightRoom 4 (16bit A3 Pro Photo RGB PSDs) in PhotoShop CS5.
    As part of my image grading process I have a PhotoShop Action that does the following: copy layer to new document (document respects all of copied layer settings) > Image > Adjustments > HDR toning > apply a certain HDR preset > copy to resultant image back to original doc > set opacity as 40%.
    Totally out of the blue, after having this action for about 2 months, this morning I start getting a warning dialog of "Could not complete the command because of a problem using the Adobe Color Engine" and the action fails. The failure seems to take place at the 'make document' part of the action and seems to somehow be related to the contents of the clipboard.
    I've tried trashing and re-creating the action. It works first time out fine and then - on the next image - errors again.
    At present I can only safely carry out the work 'manually' by completing all the actions myself.
    I can think of no settings that have changed and the OS hasn't been updated in a while.
    I have found one other thread on a similar problem in PhotoShop Elements, but no definitive solution.
    Any help appreciated as I have a shedload of stuff to process.
    Best wishes
    TP

    OK: trash of prefs didn't work. Tried thrice. Re-created orig action. same problem.
    BUT!
    Your 'Image > Duplicate' suggestion does seem to work. If I use that in a new action as the method for creating the HDR version doc (instead of 'Select > Copy > New > Paste), it seems to work.
    Will try that out this afternoon, but for now: WIN!
    Many thanks for the suggestion!
    TP

  • Problem using the FederatedSearch / Result set empty

    Hello,<br>
    <br>
    I've the following problem using the FederatedSearch:<br>
    In my KM-Folder I've two documents.<br>
    I created a simple search AbstractPortalComponent to search in the special KM-Folder.<br>
    If the query is "*" I will get the right number of documents.<br>
    But If I will access them the iterator is empty...<br>
    Please see the code below:<br>
    <br>
    Best regards<br>
    Klaus<br>
    <br>
    <br>
    IIndexService indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);<br>
    <br>
    SearchQueryListBuilder sqb = new SearchQueryListBuilder();<br>
    <br>
    sqb.setSearchTerm(query);<br>
    IQueryEntryList qel = sqb.buildSearchQueryList();<br>
    RidList ridList = new RidList(); <br>
    ridList.add(RID.getRID(OR_KM_ROOT_PATH + "/" + OR_KM_CURRENT_PATH));<br>
    ridList.add(RID.getRID(OR_KM_ROOT_PATH + "/" + OR_KM_ARCHIVE_PATH));<br>
    IResourceContext resourceContext = new ResourceContext(user);<br>
    IFederatedSearch federatedSearch = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);<br>
    IFederatedSearch search = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);<br>
    ISearchSession session = federatedSearch.searchWithSession(qel, ridList, resourceContext, null, null);<br>
    response.write("-"+session.getTotalNumberResultKeys()); ### writes 2-ok-<br>
    response.write("- "+session.getNumberResultKeys()); ### writes 2-ok-<br>
    ISearchResultList sresults = session.getSearchResults(1,session.getTotalNumberResultKeys());<br>
                   <br>
    ISearchResultListIterator iter = sresults.listIterator();<br>
    response.write("> "iter.hasNext()"<br>");          ### writes "false"!???
    <br>               
    while (iter.hasNext())<br>
    {<br>
    ...<br>
    }<br>

    The plan is to be running with more than just two sites (though at the moment I am testing with only two).
    What happens is a client comes on-line and requests a list of sites from a router. It then picks one of the sites from the list and adds that as a replication site in the repmgr.
    It then goes about opening up the database and doing some other bookeeping. Finally we start the replication manager and once the NEWMASTER event is recieved a sync is done.
    So while this DELAYCLIENT/rep_sync is a bit overkill for the two-site test I am doing now, the design I am working towards will be a multi-site setup.

  • Problem using the Write to SGL VI and Read from SGL VI

    Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing. I am attaching a zip file which contains five files.
    1) Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
    2) Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
    3) Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
    4) Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
    5) Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
    I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
    Have a Good Day
    Regards,
    Krishna
    Attachments:
    LABVIEW_Files.zip ‏552 KB

    As already discussed a while ago, your binary data does not contain timing information. You need to tell it the scan rate so it can reconstruct the time axis correcty.
    From the data, it seems the sample file was recorded at 0.5MHz. Take the inverse and set the time increment. Voila!
    Your sample file is two column data with one colum all zero. You need to set the number of columns to two, to only get the good data in channel 1.
    Your acquisition program contains unecessary FOR loops, you can remove the inner loops without change in result.
    It makes no sense to convert to SGL if you initialize the shift registers with an empty DBL array. You need to initialize with an empty SGL array.
    (The code could be simplified quite a bit more, but this should give you some directions).
    The attached zip shows some ideas (LabVIEW 7.1).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    LabVIEW_FilesMOD.zip ‏195 KB

  • I am having a problem using the help menu in Adobe elements 5

    I am having a problem using the help menu in Adobe elements number five.
    When I open the help menu, the dialogue box defaults to an unreadable display font. Is there any way to change that default font? Using the help menus to find a solution is not possible for I cannot read what it is displaying.

    For product, there is an option in preferences where we can set fonts. There are two options: One is application font and other is system font. I am talking about elements 8 which I have but not sure that will solve your problem which is help related.
    Hope Help in 5th version is html which opens in Browser? Please confirm.

  • Does anyone have problems using the  highlights, shadows and sharpness edits in iphoto? Since I uploaded Mountain Lion, those editing tabs do not work!

    Does anyone have problems using the highlights, shadows and sharpness controls in iphoto 11? Since I uploaded Mountain Lion on my
    mac mini, those editing features no longer work!!!!

    Sorry, I booted into 10.8 just to test this, but I only have iPhoto 08.

  • Could not complete the command because of a problem using the Adobe Colour Engine??

    When I am playing back a set of recorded actions, I receive a message that says "Could not complete the command because of a problem using the Adobe Colour Engine". This occurs after I copy a part of an image to paste it onto a new file. It occurs during the "Make" part(making a new file) and I was just wondering how to fix it.

    It's a known (but esoteric) bug in Photoshop CS5 and earlier, seen with grayscale images.  It used to crash utterly, but after I reported it I think they patched Photoshop 12.0.something to avoid the crash.  However, the step still fails when you make a new grayscale image in an action.
    I saw it because I created an action to paste the clipboard into new document, all in one motion.  It virtually always works as long as I have a colored image in the clipboard.  But not grayscale.
    One workaround, which is not particularly convenient, is to turn on prompting for the Make new image step.  I haven't used this workaround for a while, but it used to be that if you confirmed the "File New" operation manually it would continue and work.  I don't know if the workaround is still valid.
    -Noel

  • Could not initialize photoshop because of a problem using the adobe color engine (Win 7)

    Was running the lastest version of Photoshop CS5 and added a second quad graphics card and 4 more monitors.  Now PS will not start and I get the error message "could not initialize photoshop because of a problem using the adobe color engine."
    Computer has 2 NIVDIA Quadro4 NVS420 graphics boards with 8 Samsung SyncMaster 1920x1080 monitors.  If I disable 4 of the monitors CS5 starts normally.  I do not have to remove the added graphics card.  When I extend the desktop again to all 8 monitors I get the error above.
    How do I trouble-shoot the problem?  Is it Photoshop, NIVDIA or Windows 7?

    Well, not exactly a full solution yet (at least for my setup), but I am certain now that this issue is (mostly) caused by nVidia's drivers. You may be able to fix your setup by simply installing the latest drivers for your NVS420 cards (266.45 for Win 7/64 rel. 01/12/2011).
    Since you are using two identical cards, this could do the trick.
    Caveats - Make sure you:
    1. Select Custom Install, the Express Install will most likely not work properly.
    2. Unselect the Audio Driver (if available), the nVidia HD(MI) Audio driver could
        screw up your speech recognition (if you use it) or other audio software - it did for me.
    3. Select Clean Install. If you don't, files like C:\Windows\System32\drivers\nvlddmkm.sys
        and several other driver related files will not be overwritten, causing all sorts of neat effects.
    4. After the Install is complete, reboot your system whether the Installer prompts you or not.
    After testing various configurations, disabling two - six of my eight monitors I am at this point:
    I am now using nVidia's lastest and greatest piece of crap (read driver), version 266.58, released just two days ago. After an initial snag with maximized windows extending to the bottom of the main monitor (underneath the taskbar), a re-install & reboot solved that issue.
    All three driver versions tested (260.89, 260.99, 266.58) now allow me to start PhotoShop without any problems; providing I first disable the two monitors fed by my onboard graphics (nVidia 780a based), leaving me with six monitors connected to three GTS-450 cards.  I can even re-enable the two other monitors once the program is open, and it continues to work fine. However, I must disconnect them again for the next start of PhotoShop.
    On an interesting side note:
    After disabling six monitors (leaving only two on a GTS-450), I was also able to open and run SoundBooth CS5, which previously would not open, citing the audio driver as the problem. After sucessfully starting SoundBooth I could re-enable all six other monitors (incl. onboards),
    and that program now opens and works fine with all 8 monitors connected. [ODD !!!]
    Other than Adobe Software, I've had only one other issue with my setup:
    When playing online poker at PokerStars, occasionally and quite randomly one of multiple tables would freeze up. I'll try disabling the two onboard monitors for that program as well to see whether the random freezes stop.
    Overall, while I think that Adobe produces fine software and nVidia has been in need of an overhaul for quite some time now, I also think that Adobe and nVidia software engineers need to work more closely together to ensure that problems like this don't arise in the first place after a product has been released to the public. IMHO, this is avoidable!
    PS:
    Here's a link to a great tool for multiple monitors, Display Fusion by Binary Fortress.
    I use the free version, it allows you to do cool things like have individual wallpapers for all
    your monitors, or stretch a single image across all monitors. With the Pro Version ($25),
    you can also add individually customizable taskbars to each monitor, and a lot more.
    http://www.displayfusion.com/

  • Problems using the Program Monitor

    Dear Premiere users,
    I recently bought Adobe Premiere CS3 and i'm having problems using the Program Monitor.
    I cant see anything off screen. It just wont show anything if its outside the boundaries of the screen. I can adjust the zoom level but that wont change anything even if i set it to full screen.
    Another problem I'm having is that it wont show motion paths or clip handles. Even if I make a motion path in the Effects Control window it wont show the path in the Program Monitor.
    I really appreciate any advice on this because it drives me crazy. I already tried installing it again but that wont solve the problem.
    Thanks in advance.
    Greetings,
    Peter

    First of all I hope you are being sarcastic Jim. Sorry for being not that clear but I'm not stupid :).
    Craig Howard is right. I thought that the Program Monitor was similarly to AEFX. But I suppose I was wrong on this one? So you cant get something to display outside the image area? If I place a clip outside the project dimension it just disappears in the Program Monitor.
    And about the motion paths. I thought I read in the Premiere help files that they do show up in the Program Monitor. The topic says: "Adjust position, scale, and rotation" or "Animate motion in the Program Monitor ". There are pictures over there that show clip handles and motion paths in the Program Monitor. Clicking the effect wont do anything for me. Its like my video driver cant get them to show or something.
    Edit: I found a tutorial here:
    http://digitalproducer.digitalmedianet.com/articles/viewarticle.jsp?id=26660&afterinter=tr ue
    They are dragging frames off screen and are using the handles and borders around the frame to adjust them. So I guess it should be possible, but how?
    Thanks for the help.

  • I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyon

    I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyone advise?

    Hi Siobhan ,
    Please refer to the following link and see if that helps.
    https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    I would also like to know ,does that error message has any specific number ?
    Regards
    Sukrit Dhingra

  • I have problem using the BufferWriter

    I have problem using the BufferWriter. I try to write the data to a *.txt file. However, I do not know how to add the data in but not over write the previous data. Can anyone help me please?
    Also the productID cannot be written into the *.txt file, the type of productID is int. Don't know why this happen...
    public void writeInfo()
        try{
        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("C:\\Documents and Settings\\Charles\\My Documents\\testing.txt")));
        out.write("\n");
        out.write(productID);
        out.write("  ");
        out.write(productName);
        out.write("  ");
        out.write(originalCountry);
        out.write("  ");
        out.write(Double.toString(price));
        out.write("  ");
        out.write(productCategory);
        out.write("  ");
        out.write(Double.toString(vatPrice));
        out.write("  ");
        out.write(manufacturerName);
        out.write("  ");
        out.write(manufacturerAddress);
        out.write("  ");
        out.write(warranty);
        out.flush();
        out.close();
        catch(IOException ex)
         ex.printStackTrace();
      }

    Charles_Wong wrote:
    Also the productID still cannot be written into the *.txt file...
    and where can I find the line.separator?
    Edited by: Charles_Wong on Dec 12, 2007 2:56 AMSystem.getProperty("line.separator")

  • The new ibook app and ibook update is designed for iPhone 5 operating system.   When my iPhone4 recently updated the ibook app, it created many problems using the ibook to download and read my books.    Can I get the previous ibook app back on my phone.

    The new ibook app and ibook update is designed for iPhone 5 operating system.   When my iPhone4 recently updated the ibook app, it created many problems using the ibook to download and read my books.    Can I get the previous ibook app back on my phone.

    Check your trash can on the desktop. The old version is automatically moved to the trashcan. You should be able to move it from the trashcan back to the Apps folder within the iTunes folder. The update that was pushed out was for iBooks to work with iOS 7 not iPhone 5. iOS 7 was released today.

  • Problem using the DVI to Video adapter

    I am using a MacBook Pro. I am using the DVI to Video cable to connect my MBP to the TV. It was working fine and I was watching movies and videos. Suddenly I am having problem and its not working.
    I hooked up the DVI to Video adaptor on the PC side . Black and white signal which is blurred/blocked/and modes across the screen. I tried playing with refresh settings, resolutions, etc but nothing is happening
    Even in the display I am not able to see the NTSC
    settings anymore. When it was working before the display changes automatically once i connect the adapter. But now it refresh but the display is not changing. currenly my display is set to 1440 * 900.
    any idea why the display is not working, is it a driver issue.

    Have you played with the "Mirror Displays" option in the arrangement tab?

  • Web Analysis Problem using the "Send to Excel" service

    I built reports using WebAnalysis 9.3.0.
    I attached the "Send to Excel" service button to my report. I am using a combination of Excel 2003 & 2007.
    I have the following settings in my webanalysis.properties file:
    MaxDataCellLimit=200000
    XLExportMaxRows=60000
    XLExportMaxColumns=200
    My problem is when I try to use the "Send to Excel" button. For "small" reports Excel opens quickly with my report information. Small being around 1,000 rows and 20 columns. If I add more rows, say another 400 or so - Excel never opens with my report information. Web Analysis sits there for about 5 minutes or so and does nothing. After that I can start using WA again - but no report in Excel.
    I get the same result by right clicking on the report in WA Studio and selecting "Export Data..."
    Any ideas?
    Thanks!

    Hyperion support suggested I try adding the Excel path to my webanalysis.properties file
    So I now have:
    ExcelPath=D:\\Progra~1\Micros~1\\OFFICE11\\Excel.exe;C:\\Progra~1\Micros~2\\OFFICE11\\Excel.exe
    MaxDataCellLimit=200000
    XLExportMaxRows=60000
    XLExportMaxColumns=200
    ResolveDimSetAliases=false
    Where D:\\Progra~1\Micros~1\\OFFICE11\\Excel.exe is the path to Excel as installed on the server where WA Studio is installed.
    And C:\\Progra~1\Micros~2\\OFFICE11\\Excel.exe is the path to Excel as installed on my laptop.
    This did not correct my problem.
    Am I using the ExcelPath=.... correctly?
    I was not sure this would work since WA Studio successfully starts Excel for "smaller" reports. But I tried it anyway.
    Any ideas?

Maybe you are looking for