Problem with append mode in WS_DOWNLOAD - URGENT

Can anybody help me with this, it is werry urgent .
Thank you werry much .

Hi Neno,
WS_DOWNLOAD is no longer used in latest version of SAP. Though this function module exists. You can use GUI_DOWNLOAD instead of it.
Now coming back to your question.
IN WS_DOWNLOAD
parameter MODE = 'A' . "for append
I hope this will solve your issue.
Reward points for all useful answers.
Regards,
SaiRam

Similar Messages

  • Problem with append mode in  WS_DOWNLOAD

    Hi everybody
    I have a problem with downloading two internal tables in one excel sheet.
    I am Using FM - WS_DOWNLOAD , MODE = 'A' .
    I want to append one IT after another .
    But I am getting only the second one ...
    MODE - A is for append , correct?
    Any clou?
    I allready sow all the posts on the forum

    hi
    good
    go through this and use accordingly.
    Often we face situations where we need to download internal table contents onto an Excel sheet. We are familiar with the function module WS_DOWNLOAD. Though this function module downloads the contents onto the Excel sheet, there cannot be any column headings or we cannot differentiate the primary keys just by seeing the Excel sheet.
    For this purpose, we can use the function module XXL_FULL_API. The Excel sheet which is generated by this function module contains the column headings and the key columns are highlighted with a different color. Other options that are available with this function module are we can swap two columns or supress a field from displaying on the Excel sheet. The simple code for the usage of this function module is given below.
    Program code :
    REPORT Excel.
    TABLES:
      sflight.
    header data................................
    DATA :
      header1 LIKE gxxlt_p-text VALUE 'Suresh',
      header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
            INCLUDE STRUCTURE sflight.
    DATA END   OF t_sflight.
    Internal table for holding the horizontal key.
    DATA BEGIN OF  t_hkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_h.
    DATA END   OF t_hkey .
    Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_v.
    DATA END   OF t_vkey .
    Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
            INCLUDE STRUCTURE gxxlt_o.
    DATA END   OF t_online.
    Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
            INCLUDE STRUCTURE gxxlt_p.
    DATA END   OF t_print.
    Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
            INCLUDE STRUCTURE gxxlt_s.
    DATA END   OF t_sema.
    Retreiving data from sflight.
    SELECT * FROM sflight
             INTO TABLE t_sflight.
    Text which will be displayed online is declared here....
    t_online-line_no    = '1'.
    t_online-info_name  = 'Created by'.
    t_online-info_value = 'SURESH KUMAR PARVATHANENI'.
    APPEND t_online.
    Text which will be printed out..........................
    t_print-hf     = 'H'.
    t_print-lcr    = 'L'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the header'.
    APPEND t_print.
    t_print-hf     = 'F'.
    t_print-lcr    = 'C'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the footer'.
    APPEND t_print.
    Defining the vertical key columns.......
    t_vkey-col_no   = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no   = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no   = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no   = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    populating the SEMA data..........................
    t_sema-col_no  = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
      EXPORTING
      DATA_ENDING_AT          = 54
      DATA_STARTING_AT        = 5
       filename                = 'TESTFILE'
       header_1                = header1
       header_2                = header2
       no_dialog               = 'X'
       no_start                = ' '
        n_att_cols              = 6
        n_hrz_keys              = 1
        n_vrt_keys              = 4
       sema_type               = 'X'
      SO_TITLE                = ' '
      TABLES
        data                    = t_sflight
        hkey                    = t_hkey
        online_text             = t_online
        print_text              = t_print
        sema                    = t_sema
        vkey                    = t_vkey
    EXCEPTIONS
       cancelled_by_user       = 1
       data_too_big            = 2
       dim_mismatch_data       = 3
       dim_mismatch_sema       = 4
       dim_mismatch_vkey       = 5
       error_in_hkey           = 6
       error_in_sema           = 7
       file_open_error         = 8
       file_write_error        = 9
       inv_data_range          = 10
       inv_winsys              = 11
       inv_xxl                 = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    thanks
    mrutyun^

  • Problem with Append mode in File Receiver

    Hello,
    I am facing some problem with Append Mode in File Receiver.
    In channel config, i have given :
    Construction Mode : Append
    File Type : Text
    Message Protocol : File Content Conversion
    The size of the file which i am trying to send is about 9.5MB.
    I got this error,
    "Recovering from loss of connection to database; message
    loaded into queue by recover job: System Job (Failover Recovery)".
    So, it would seem that there was a loss of connnection to the database    
    while the file was being written.
    Note -  XI successfully recovered from the connection loss and   
    successfully wrote the file, however since the communication channel  
    was set to append, it appended to the partial file that was written   
    before the database connection loss. This is not correct. The file    
    should have been overwritten after the recovery even though the communication
    channel was configured to append.                                     
    Can anyone help me on this regard.
    Thanks,
    Soorya.

    Hi Venkat,
    I would suggest u to split the file in to chunks if u face any problem in processing at a time in append mode and also
    Memory Requirements are must 4 processing huge files:
    Q: Which memory requirements does the File Adapter have? Is there a restriction on the maximum file size it can process?
    A: The maximum file size that can be processed by the File Adapter depends on a number of factors:
    o The most important one is the size of the Java heap, which is shared among all messages processed at a certain point in time. In order to be able to process larger messages without an out of memory error (OOM), it is recommended to increase the size of the available Java heap and/or to reduce the concurrency in the system so that fewer messages are processed in parallel.
    o Another factor negatively influencing the maximum message size in releases up to and including XI 3.0 SP 13 is an enabled charcter set (encoding) conversion if the message type is set to "Text".
    o Using the transport protocol "File Transfer Protocol (FTP)" also uses more memory for processing than the transport protocol "File System (NFS)" (up to and including XI 3.0 SP 13).
    o If the Message Protocol "File Content Conversion" is used in a File Sender channel, consider that not only the size of the input file affects the File Adapter's memory usage, but even more the size of the XML resulting from the conversion, which is usually a few factors larger than the original plain text file.
    To reduce the memory consumption in this scenario, consider configuring the setting "Maximum Recordsets per Message" for the sender channel. This will cause the input file to be split into multiple smaller mesages.
    Plz do refer the following links:
    U may plan the availability of ur communication channel using "Planning Availability Times" feature
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
    hi check the below links for reference
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10748ef7-b2f0-2910-7cb8-c81e7f284af5
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7086f109-aaa7-2a10-0cb5-f69bd2affd2b
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cc1ec146-0a01-0010-90a9-b1df1d2f346f
    Regards,
    Vinod.

  • Problem with append += text in Text Field

    Hi guys
    i have a problem with append text.
    I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
    Then i have one String and one Text Field.
    Using for loop im getting right results. But when im running script again then im getting  same text again.
    F.ex.
    First time:
    City name: Name 1
    City name: Name 2
    Second time:
    City name: Name 1
    City name: Name 2
    City name: Name 1
    City name: Name 2
    I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
    How to avoid this?
    Here is script:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    _CityAreaTF1 = new TextField();
      _CityAreaTF1.border = true;
      _CityAreaTF1.wordWrap = true;
      _CityAreaTF1.multiline = true;
      _CityAreaTF1.selectable = false;
      _CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
      _CityAreaTF1.name = "CityAreaTF1";
      _CityAreaTF1.embedFonts = true;
      _CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();

    I think i found why.
    There was no problem with TextField.
    There was a problem with Array. "CityArea"
    So each time I executed script it added new string in Array. And that is because i got like:
    TextField
    City 1
    City 2
    City 1
    City 2
    Running this script is Ok:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    But outside of this for loop there is another for loop for adding Cities in CityArray.
    I fixed it by adding empty array at the start of function
    function myFunc():void
    CityArea = [ ]; // Empty array fixed this issue
    // LOOP FOR ADDING SHOPS IN CITY AREA
    for (var j:int = 0; j < _Shops; j++)
    CityArea.push(_Shop);
    // FOR LOOP TO ADDING SHOPS IN STRING
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    Thank you for your help kglad

  • Problem with Fullscreen mode

    Hello. I have problem with Fullscreen mode in Pages 09. Let me explain it. I launch Pages 09 on space nr 4, than i activate fullscreen mode and now when fullscreen is active i switch for example to space nr 2. And what happens? Pages also moves to space nr 2, but i don't want to move my pages to space nr 2. I guess it is a bug in Pages 09. Thank you for your advice.

    Hi There
    By the sounds of this behaviour you haven't set any space options for Pages within System Preferences (Expose and Spaces Pane). After experimenting with different options this is what I experience:
    1. Pages not listed in application assignment in spaces Preferences - Enter full screen in pages, switch from one space to another pages window will follow and exit fullscreen (this sounds like what you are experiencing).
    2. Pages set to every space in app assignment - Enter full screen in pages, switch from one space to another and pages will follow but wont exit full screen.
    3. Pages set to a single space in app assignment - Enter full screen in pages, switch from one space to another using control and arrow keys pages will pull me back into the space it is set to and will exit fullscreen. Using the control and number keys pages will stay in its set space but upon returning to that space pages had exited fullscreen.
    I suggest you add pages to the the spaces application assignment in System Preferences by clicking the plus arrow under the list of apps and select a specific space for pages to open in, once open Pages will only move from this space if you move it manually.
    You can send your feedback to Apple via http://www.apple.com/feedback/pages.html if you wish
    Hope this helps
    J.C

  • Problem with passive mode FTP server and NAT

    Hi,
    I have a problem with Passive mode FTP and NAT.
    I am trying to run both an FTP server and sharing the Internet connection via NAT. I have by the way specified the passive ports to use in ftpaccess (65000-65534). Everything works fine until someone tries to connect via Passive mode. I have tracked the problem down to the firewall and the rule that handles NAT.
    Firewall rule config without NAT:
    00001 allow udp from any 626 to any dst-port 626
    01000 allow ip from any to any via lo0
    12300 allow ip from any to any
    65535 allow ip from any to any
    Firewall rule config with NAT
    00001 allow udp from any 626 to any dst-port 626
    00010 divert 8668 ip from any to any via en1
    01000 allow ip from any to any via lo0
    12300 allow ip from any to any
    65535 allow ip from any to any
    So, passive ports do not work when NAT is on. If I turn it off, Passive ftp works like a charm.
    But how do I solve my problem? I have in my quest for the answer stumbled upon "-punch_fw" but do not know how to use it or if it even helps me at all?
    Best regards,
    Peter
    B&W G3 Mac OS X (10.4.5)

    Media/Lacrosse-1-tiny.3gp
    I can't find the file on your server.
    They may also need to edit the .htaccess file to allow the .3gp file extension be used. Call them.

  • HT2020 if you have internet sharing on imac with Mountain Lion its stil problem with sleep mode ! why ???

    if you have internet sharing on imac with Mountain Lion its stil problem with sleep mode ! why ???

    Log a bug with Apple, with whatever details you can provide.  In the interrim, consider acquiring a router; either a repurposed x86 box running open-source networking or gateway software, or a commercial device.

  • Problem with "find" mode in adf/swing application

    Hi all,
    I'm working on ADF Swing application which uses MS SQL Server 2005 (JDeveloper 10g 10.1.3)
    I think that my issue might be well-known…sorry if it has been already discussed somewhere else…
    I have a problem with the “find” mode for a detail panel in a master-detail form…(To make it clear the “find” mode is switched on when clicking on the special button on a navigation panel).
    So this mode works well in a master panel, but it demonstrates strange behavior on a detail panel, i.e. it takes me two attempts to find the necessary child object and it doesn’t switch back in a simple way from this mode to the normal mode….say if we are in the department 10 (Dept is a master form) we can’t simply find KING employee (Emp is a detail form)…is there any workaround for this?
    Thanks in advance. Alex.

    Hi Frank, please look this issue

  • Problem with sleep mode in Win 7

    Hello Friends,
    I have a great problem after Windows 7 updated itself. I have a laptop Toshiba Satellite L505D. When I close the lid, it should automatically go to the sleep mode. Unfortunately, only the screen is black and the laptop is still running, I have to shut it down then switch on again. Is it a problem with the 'battery driver'?Please, help me :)

    Before you continue to wait for solution and waste your time back-up all your important data and reinstall OS again using HDD recovery installation - http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm
    After doing this you will have clean preinstalled and well working OS again.
    The first thing you should do after OS installation is to disable automatic Windows update. Do it manually and install important updates only.

  • Problems with landscape mode

    Hi,
    I've a problem with my iPhone 3G. In apps like notes, sms or even ipod, it doesn't rotate in landscape mode. But in "not apple apps" the accelerometer is working. I've tested it with Labyrinth LE.
    After restoring the device it doesn't rotate too.

    I have the same problem.
    Apple apps (Mail, Safari, Calculator) don't rotate at all (portrait only). They were rotating correctly before.
    3rd party apps (Labyrinth, BubbleLevel, Accelerometer Graph) can rotate to portrait and landscape correctly, so this shouldn't be a hardware problem.
    Maybe caused by OS update?

  • Problem with JInitiator!!! - Urgent

    I have Windows 2000 Advanced Server with 4GB RAM and Oracle9iASR2. I'm running Forms&Reports9i services quite well. Now, I have a demand for using OLE integration and for WebUtil purpose I have to install Jinitiator 1.3.1.13, for instance. But when I start a Jinitiator installation, I just see an error message 111 which is telling me that I don't have enough memory, that I must release memory by killing some running application (no matters which one) and then repeat the installation procedure. At that moment I have about 3.8 GB free memory, at least!It's the same problem with some differrent version of Jinitiator. What's the problem? How can I bypass this? Please, help me, this is very urgent!
    Dejan

    Did you try a reboot of the client?
    Also, can you post a full error message , it sounds like this is coming from Windows...
    Regards
    Grant Ronald
    Forms Product Management

  • Problems with standby mode in Windows XP

    Every time I try to put my computer in standby mode while in Windows the entire computer shuts down. I can't even manually turn on the computer in Mac until I press the power button mulitple times. Anyone have any suggestions?

    Tony, some posters have reported that the XP drivers for the Vostro 1500 will work for the M1330.
    Vostro 1500 XP downloads
    However before installing any Sigmatel driver after an OS installation you should follow this order of driver installation:
    a. Install Dell Notebook System Software R154270 (click the + sign next to System Utilities). Restart.
    b. Next install the Intel Mobile Chipset driver 153997 (click the + sign next to Chipset). Restart.
    c. Finally re-install the Sigmatel audio driver R158235 (click the + sign next to Audio).
    Some v1500 users have reported that they had to "uninstall an unknown PCI device in Device manager first , then install the driver normally".
    Rarely there will still be a problem with the installation at this point (in XP). In those cases follow this tip from forum member rpilT2005: check in the Device Manager for a "PCI Device" with a yellow question mark next to it, under the "System Devices" grouping. Hit 'update driver' on that one, and it should find the driver.
    A previous poster was able to get his audio working by following the above instructions more or less He said that after installing the Chipset driver he next uninstalled the unknown PCI device. He let Windows look for a new driver but he said he had to point it to the folder with the driver. Then he wrote, "Xp still said that an error occurred and the device may not work properly, but it did work fine and I also don't have a yellow question mark..." I know this is confusing.
    Jim

  • Satellite L505D - Problem with sleep mode in Win 7

    It's me again, in last thread :
    "Hello Friends,
    I have a great problem after Windows 7 updated itself. I have a laptop Toshiba Satellite L505D. When I close the lid, it should automatically go to the sleep mode. Unfortunately, only the screen is black and the laptop is still running, I have to shut it down then switch on again. Is it a problem with the 'battery driver'?Please, help me :)"
    The sleep mode worked perfeclty for couple of days and it is again gone.. What is more when I try to enter the sleep mode I can't do anything on the notebook , it is still running on blank screen and the processors' fan is working on high speed. During these last days, when the sleep mode worked, windows didn't update itself..
    I don't know what is happening.. :) Weird problem, isn't it?

    It is not easy to say why this happen. In your last posting you wrote about some windows updates. Who knows what is wrong there.
    If nothing helps, not even system restore and you want to use stand-by mode I recommend you to back-up all your data and install OS again using recovery mode.
    With factory settings everything will be OK again but then be careful with updates.

  • First time user..problem with compatibility mode

    Old problem with a twist. Like others have experienced, when I open itunes I get a message that reads itunes.exe is set to run in compatibility mode and I need to turn it off. The problem I have is that I DON'T FIND a compatibility option when I right-click on Properties. Any ideas???

    Refer to this article:
    iTunes for Windows: How to turn off Compatibility Mode
    http://support.apple.com/kb/TS1489

  • Satellite P100-387: Problems with graphics mode swithing on new nVidia

    *Looking for help!*
    _I have recently installed nVidia drivers from toshiba site (84.00) and since than my system has severe problems with changing graphical modes when starting applications in pre-determined mode (such as 800x600)._
    This problem affects my son mostly, as all older games are trying to run in 'Full screen mode' that fails to initialise properly.
    Also I have noticed that in dxdiag the option about DirecrDraw settings shows that it is completely not supported by my graphic card acceleration.
    Any ideas on how to resolve the problem desperately needed.
    Relevant nformation:
    Graphic card - nVidia GeForce GO 7600 driver: 6.14.0010.8400
    System Memory - 3MB
    O/S - Win XP Professional 5.1 build 2600
    ?:|

    Have you installed the latest BIOS?
    You could try reverting back to the original driver, it should be in C:\TOSAPINS. Or just Rollback the driver in Device Manager. Or revert back to a previous System Restore Point.

Maybe you are looking for