Download problem from 'Z' table

Hi
I am facing very strange problem ,
I have created a 'Z' table and now it has 2800 records but when i download from data base it only get the 1627 records
What might me the problem ???
Technical Settings  :
Data class         APPL0   Master data, transparent tables
Size category      3       Data records expected: 7.700 to 31.000
then i tried other standard table to download from data base save as local file....which contains 5000 records so it get all the 5000 records
so in thisw case wat can be done ?
pls help me on this
regards
rajan

DATA : IT_TAB TYPE STANDARD TABLE OF ZMM_OPENSEZ.
  SELECT * FROM ZMM_OPENSEZ INTO TABLE IT_TAB .
  DATA: LOC_FILENAME TYPE STRING.
  LOC_FILENAME = P_FILE.
*  CONCATENATE P_FILE '.XLS' INTO LOC_FILENAME.
  CLEAR IT_FIELDNAMES.
  REFRESH IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Client'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Start Date of Period'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Last Date of Period'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Plant'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Project Definition'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Material Number'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Valuation Type'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Valution Type Description'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'SerialNo'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'ITEM GROUP LONG TEXT'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'ANNEXURE NO'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'POST1'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Number of Material Document'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Posting Date in the Document'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Movement Type (Inventory Management)'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Material Description (Short Text)'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Account Number of Vendor or Creditor'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'NAME'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Unit of Entry'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Purchasing Document Number'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Unit Rate'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Opening Proj Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Opening Proj Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Opening CS01 Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Opening CS01 Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'RECEIPT QTY'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'RECEIPT AMT'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'ISSUE QTY'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'ISSUE AMT'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'TRANSFER QTY'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'TRANSFER AMT'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Consumed Return Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Consumed Return Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Contractor Return Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Contractor Return Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'CS01 Consump. Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'CS01 Consump. Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'CS01 Consump.  Ret Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'CS01 Consump. Ret Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Work in Progress Qty'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Work in Progress Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Closing Stock with APL'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Total Closing Stock'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Total Closing Stock Amt'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'FINALUPDATE'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Modified By'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  IT_FIELDNAMES-STRING = 'Modified on'.
  APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
  FILE_NAME = P_FILE.
  CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
*     BIN_FILESIZE                    =
       FILENAME                       = FILE_NAME
       FILETYPE                       = 'ASC'
*     APPEND                          = ' '
     WRITE_FIELD_SEPARATOR            = 'X'
*     HEADER                          = '00'
*     TRUNC_TRAILING_BLANKS           = ' '
*     WRITE_LF                        = 'X'
*     COL_SELECT                      = ' '
*     COL_SELECT_MASK                 = ' '
*     DAT_MODE                         = 'X'
*     CONFIRM_OVERWRITE               = ' '
*     NO_AUTH_CHECK                   = ' '
*     CODEPAGE                        = ' '
*     IGNORE_CERR                     = ABAP_TRUE
*     REPLACEMENT                     = '#'
*     WRITE_BOM                       = ' '
*     TRUNC_TRAILING_BLANKS_EOL       = 'X'
*     WK1_N_FORMAT                    = ' '
*     WK1_N_SIZE                      = ' '
*     WK1_T_FORMAT                    = ' '
*     WK1_T_SIZE                      = ' '
*     WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
*     SHOW_TRANSFER_STATUS            = ABAP_TRUE
*   IMPORTING
*     FILELENGTH                      =
     TABLES
       DATA_TAB                        = IT_TAB
       FIELDNAMES                      = IT_FIELDNAMES
*   EXCEPTIONS
*     FILE_WRITE_ERROR                = 1
*     NO_BATCH                        = 2
*     GUI_REFUSE_FILETRANSFER         = 3
*     INVALID_TYPE                    = 4
*     NO_AUTHORITY                    = 5
*     UNKNOWN_ERROR                   = 6
*     HEADER_NOT_ALLOWED              = 7
*     SEPARATOR_NOT_ALLOWED           = 8
*     FILESIZE_NOT_ALLOWED            = 9
*     HEADER_TOO_LONG                 = 10
*     DP_ERROR_CREATE                 = 11
*     DP_ERROR_SEND                   = 12
*     DP_ERROR_WRITE                  = 13
*     UNKNOWN_DP_ERROR                = 14
*     ACCESS_DENIED                   = 15
*     DP_OUT_OF_MEMORY                = 16
*     DISK_FULL                       = 17
*     DP_TIMEOUT                      = 18
*     FILE_NOT_FOUND                  = 19
*     DATAPROVIDER_EXCEPTION          = 20
*     CONTROL_FLUSH_ERROR             = 21
*     OTHERS                          = 22
  IF SY-SUBRC = 0.
    MESSAGE S229(ZMM).
  ELSE.
    MESSAGE S230(ZMM).
  ENDIF.
it_tab contains 2800 records ..
Regards

Similar Messages

  • Downloading BLOB from a table.

    Hello,
    First I want to say thatnks for such a great tool like HTMLDB.
    Question is:
    How do I download BLOB from a table. What I am trying to do is. I am uploading files to a default HTMLDB location (wwv_flow_file_objects$) and moving the records to different table (delete file from wwv_file_objects$). Then I would like to be able to download that blobs from a DB by following some link. And I need it to be secure, user have to authenticate to do it. I got to the point where I created process (before header) to download the file. But I am having hard time passing some variables to that process in URL. Can some one advice me on the best practice of doing it. And also if it is a right thing to use before header process to put my own header and start uploading blob in html db. The main reason I do not whant to use DAD for that is simple security issue and ability of storing of the BLOBs only in one table. I prefer to upload it to a temporary location and then move it to other table(s). Then I need to be able to retriev the files back from those tables without moving them around.
    Any help is greatly appriciated

    i think i see what you're asking, but i'll step through the pieces just to make sure i cover your issue:
    it sounds as if you have a procedure that successfully calls wpg_docload.download_file to get your blob out of your images table. for this explanation, lets just say your images table has the same table structure as wwv_flow_files created with something like...
    create table myfiles as select * from wwv_flow_files where rownum < 3;
    ....and let's say your download proc that passed the blob from your myfiles table to wpg_docload.download_file looked something like...
    create or replace procedure getmyfile(
    p_id in varchar2,
    p_mime_type in varchar2 default null)
    as
    l_lob blob;
    l_mimetype varchar2(48);
    l_mime_charset varchar2(255);
    l_filename varchar2(400);
    begin
    select mime_type, blob_content, filename, file_charset
    into l_mimetype, l_lob, l_filename, l_mime_charset
    from myfiles
    where id = p_id;
    if l_mime_charset is not null then
    owa_util.mime_header( l_mimetype, FALSE, l_mime_charset );
    else
    owa_util.mime_header( l_mimetype, FALSE );
    end if;
    htp.p('Content-length: ' || dbms_lob.getlength( l_lob ));
    htp.p('Content-Disposition: attachment; filename="' ||
    wwv_flow_utilities.escape_url( p_url => l_filename, p_url_charset => 'utf-8') || '"');
    owa_util.http_header_close;
    wpg_docload.download_file( l_lob );
    end;
    ...then it sounds as if this is where you start running into issues. to be able to call this procedure from the url, you'd have to grant execute on your getmyfile proc to the db user that your modplsql DAD uses to access your db. once that user was given access to run getmyfile, you could access your files in myfiles by calling a URL like...
    http://myserver.com/pls/mydad/myschema.getmyfile?p_id=1005529367869246
    ...where p_id is the unique id associated with your blob in getmyfiles (you could, of course, use whatever method you want to uniquely identify that file and adjust your select-into statement w/in your getmyfile procedure). so that's all fine and dandy, but it sounds as if you want users to have to authenticate into your html db application before they can access a blob in your images table. it also sounds as if you're on the right track to do so by putting your procedure call in a before_header html db process. you could quite easily call your getmyfile procedure in such an html db pl/sql before_header process with something like...
    begin
    getmyfile (p_id => 1008411584930314);
    end;
    ...which would cause your page to just show the blob associated with the id you passed to getmyfile. because you're now accessing your blob table through html db parsing as your application schema owner, you'd no longer need to grant execute on getmyfile to your modplsql DAD's db user. that eliminates most of the security hole to which you were referring. now that you're calling getmyfile from w/in an html db process, you can take advantage of all the other html db perks such as applying conditions and an authorization scheme to the html db process to really lock things down. finally, you asked about firing your process before_header versus other firing points. before_header is a good way to go, but if you really wanted to execute other procedural logic on your page before showing the blob (and you didn't want to implement that code as before_header processes that fire sequentially before your getmyfile call),you could just throw an htp.init in right before your getmyfile call to clear out your http buffer like so...
    begin
    htp.init;
    getmyfile (p_id => 1008411584930314);
    end;
    ...hope this helps,
    raj

  • Downloading data from internal table to xls file leading zeros are not disp

    Hai abap gurus,
    when i am downloading data from internal table to excle file. some field values in a column are with leading zeros and some others dont have leading zeros.but in the output it is showing without leading zeros. then how to get with exact values.
    Ex:
    <b>ECC Code.</b>
    045234
      88567
    098456 
    but output is giving like this:
    45234
    88567
    98456
    how to get the actual values.....
    plz help me in this matter.

    Dear Kiran,
    Those field in the internal table having Leading Zeroes, make those fields' datatype as character.
    Then use the function module to download the content of the internal table to the excel file.
    Regards,
    Abir
    Don't forget to Reward Points  *

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Software Downloading Problem from SCN Downloads for Pakistan

    Hi Respectable Moderators,
    I am trying to download [SAP NetWeaver 7.01 SR1 SP3 ABAP Developer Edition|http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/70b58216-00e7-2c10-f6a9-c59f3a351b63] from almost last 6 to 7 months and getting the same following message.
    Unfortunately we have trouble completing your download request. Please contact [email protected] for further support.
    I also sent mail to given ID but didn't get any positive response.
    Above mention download item is one for example, me and all of my friends in Pakistan are not able to download anything from SCN Download Catalog, First we were thinking that it is Global Problem but a few days back I conformed from some of my friends in India, they having no problem while downloading. It means that the problem is only with Pakistan.
    I conformed that Pakistan is not in the list of embargoed countries, Please let me know about the problem and solution if any?
    Thanks and Regards,
    Faisal

    I had that issue and sent them an email, that is what I got around a year back:
    Hi Asad,
    I apologize for this problem. The appropriate team has been notified. At this time, we have no further information.
    Kind Regards,
    Anil
    SAP Network Team
    http://www.sdn.sap.com
    Technical Information:
    Case Id: 3121460
    Origin Sender: 08089080890809808098098
    Original Message Follows: -
    Hi,
    I am a software developer, I am interested to learn SAP, I went through several tutorials over the Internet and found that SAP is quite easy and interesting software product, I started learning it, now I need a trail/developer version to practically install and test enhance my SAP skills.
    For that reason I made an account at http://www.sdn.sap.com and tried to download SAP, but there are two issues.
    1) I am not really sure what package I should download as a beginner developer?
    2) When I try to download "SAP NetWeaver CE 7.2 - Server (size on disc 2.044.489.728 bytes)" it gave me following error message:
    Unfortunately we have trouble completing your download request. Please contact [email protected] for further support.
    Could you please provide me a valid download link and package name that I should download.
    Regards,
    Asad Hafeez Yousufi
    Now again they're keep saying the same thing, guess what? Automated reply, see my next email conversation below with them:
    Hi Asad,
    We apologize for this problem. The appropriate team has been notified. At this time, we have no further information.
    Kind Regards,
    Support Group
    SAP Community Network Team
    http://sdn.sap.com
    Technical Information:
    Case Id: 3409009
    Origin Sender: [email protected]
    Original Message Follows: -
    Hi,
    I am trying to download
    SAP_NetWeaver Application_Server_ABAP_702_SP6_32bit_Trial_Version
    I got following message:
    Unfortunately we have trouble completing your download request. Please contact [email protected] for further support.
    Please help me out to download.
    Regards,
    Asad Hafeez Yousufi
    Seems like they have block Pakistan access to the downloadable content, how rude they are, Siemens and other SAP training academies have these content only, so we have to pay them 6000 EUR to get the training and the materiel, how rude. Well I come with a solution, to get the required thing downloaded just
    Now the solution, how to fool the ban and get it downloaded:
    1. Search ultrasurf proxy on Google
    2. Download it install it
    3. Run it, and download it with a USA IP address
    Smart People Smart Solutions
    I get is downloaded in a different way, I have a server hosted in USA, I took remote desktop to that server and get it downloaded from there, then get it downloaded to my local machine in Pakistan using FTP.
    But I am still feeling why they mistreat Pakistani people how rude they are.

  • Download data from internal table to flat file.

    I need to download the data from Internal table to Flat file. can any one suggest how to do it? i suppose WS_Download OR GUI_DOWNLOAD.
    but if it is please guide me how to use this.
    is thre any other F.M. please provide the information.
    Thanks in advance

    Hi,
    Try this,
    * File download, uses older techniques but achieves a perfectly
    * acceptable solution which also allows the user to append data to
    * an existing file.
      PARAMETERS: p_file like rlgrap-filename.
    * Internal table to store export data  
      DATA: begin of it_excelfile occurs 0,
       row(500) type c,
       end of it_excelfile.
      DATA: rc TYPE sy-ucomm,
            ld_answer TYPE c.
      CALL FUNCTION 'WS_QUERY'
           EXPORTING
                query    = 'FE'  "File Exist?
                filename = p_file
           IMPORTING
                return   = rc.
      IF rc NE 0.                       "If File alread exists
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
    *          TITLEBAR              = ' '
    *          DIAGNOSE_OBJECT       = ' '
               text_question         = 'File Already exists!!'
               text_button_1         = 'Replace'
    *          ICON_BUTTON_1         = ' '
               text_button_2         = 'New name'
    *          ICON_BUTTON_2         = ' '
    *          DEFAULT_BUTTON        = '1'
    *          DISPLAY_CANCEL_BUTTON = 'X'
    *          USERDEFINED_F1_HELP   = ' '
    *          START_COLUMN          = 25
    *          START_ROW             = 6
    *          POPUP_TYPE            =
          IMPORTING
               answer                = ld_answer
    *     TABLES
    *         PARAMETER              =
          EXCEPTIONS
              text_not_found         = 1
              OTHERS                 = 2.
    * Option 1: Overwrite
        IF ld_answer EQ '1'.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
    *            BIN_FILESIZE            =
                 filename                = p_file        "File Name
                 filetype                = 'ASC'
    *       IMPORTING
    *            FILELENGTH              =
            TABLES
                data_tab                = it_excelfile   "Data table
            EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                OTHERS                  = 5.
          IF sy-subrc <> 0.
            MESSAGE i003(zp) WITH
                     'There was an error during Excel file creation'(200).
            exit. "Causes short dump if removed and excel document was open 
          ENDIF.
    * Option 2: New name.
        ELSEIF ld_answer EQ '2'.
          CALL FUNCTION 'DOWNLOAD'
            EXPORTING
                 filename            = p_file          "File name
                 filetype            = 'ASC'           "File type
    *             col_select          = 'X'            "COL_SELECT
    *             col_selectmask      = 'XXXXXXXXXXXXXXXXXXXXXXXXXX'
    *                                                   "COL_SELECTMASK
                 filetype_no_show    = 'X'     "Show file type selection?
    *       IMPORTING
    *             act_filename        = filename_dat
            TABLES
                 data_tab            = it_excelfile    "Data table
    *            fieldnames          =
            EXCEPTIONS
                 file_open_error     = 01
                 file_write_error    = 02
                 invalid_filesize    = 03
                 invalid_table_width = 04
                 invalid_type        = 05
                 no_batch            = 06
                 unknown_error       = 07.
        ENDIF.
      ELSE.                               "File does not alread exist.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
    *          BIN_FILESIZE            =
               filename                = p_file         "File name
               filetype                = 'ASC'          "File type
    *     IMPORTING
    *          FILELENGTH              =
          TABLES
               data_tab                = it_excelfile   "Data table
          EXCEPTIONS
               file_write_error        = 1
               no_batch                = 2
               gui_refuse_filetransfer = 3
               invalid_type            = 4
               OTHERS                  = 5.
        IF sy-subrc <> 0.
          MESSAGE i003(zp) WITH
                   'There was an error during Excel file creation'(200).
          exit. "Causes short dump if removed and excel document was open 
        ENDIF.
      ENDIF.
    Regards,
    Raghav

  • Download problem from App Store.

    A local network problem interupted the download of Mountain Lion from App Store.
    The network is now fixed but I can not restart the download.
    When I try to buy again at tells me I already have purchased it and ask me to click OK to start down load.
    But then nothing happens.
    In the list of my Purchases it says "An error has occured" and on the Mountain Lion icon it says "Waiting".

    Make sure your Mac qualifies to run Mountain Lion >  Apple - Upgrade your Mac to OS X Mountain Lion.
    Keep in mind, for downloading Mountain Lion from the App Store, a high speed (broadband) internet connection is strongly recommended by Apple as noted here > iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    If you need to reinstall OS X or repair the the startup disk using Mountain Lion Recovery, that requires broadband access to the internet via Wi-Fi or an Ethernet connection. OS X is downloaded over the internet form Apple when OS X Recovery is used for reinstallation.
    It may be necessary to disable anti virus software before downloading apps from the App Store including Mountain LIon.
    How to re download apps from the Mac App Store:
    Open the App Store. From the menu bar click Store > Sign In
    Click Purchases from the top of the App Store window.
    Select which apps you want to re download. Then right or control click where you see Installed  then click Install.
    Make sure and use the same Apple ID used for the original purchase.

  • Downloading problems from iTunes Store

    Hi, when I try to download purchases from the iTunes store I get an error message of "network connection timed out," no numbers, letters, or codes. My internet connection is good, I do have McAfee, but iTunes is allowed total access. The latest version of iTunes has been installed. Podcasts download ok but purchased items do not. I have purchased several audiobooks and cannot get them to download. I have tried everything I know to do and nothing is working! Can anyone please help me?
    Thanks,
    Evita
    Toshiba   Windows 2000  

    Let me know if these help you sort things out any:
    http://docs.info.apple.com/article.html?artnum=93434
    http://docs.info.apple.com/article.html?artnum=304082
    Rachyl

  • Download problem from nokia store

    i used to sign in n download application from ovi store but after 6 months i.e now may 2013 when i select a file, download option not working whereas sending option works:-)
    May i've the solution to get back days of downloading from ovi store..please

    Hi hiren1612 and sonujee,
    Thank you for posting and welcome to Nokia Support Discussions! 
    sonujee - Try to uninstall and re-install the Nokia Store application.  Go to Nokia Store web site http://store.nokia.com and re-download the Nokia Store application.
    hiren1612 - Make sure that your phone has the latest software version. Refer to this link: http://www.nokia.com/global/support/software-update/belle-asha-symbian-software-update/ on how to perform the software update
    If my post helped you, please don't forget to click on the "White Star" and if it resolved your issue click on "Accept as Solution"

  • Problem while downloading file from custom table

    Hi All,
    Im trying to download the file from the custom table where i have stored the uploaded files through apex.
    I have created the download procedure as mentioned in the oracle docs ,
    And given the execute grant for public user.
    and calling that procedure by calling the URL -- #OWNER#.download_my_file?p_file=#ID#
    But im getting the below error
    Forbidden
    You don't have permission to access /pls/apex/owner.download_my_file on this server.
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at servername Port number
    Can any one tell whats the problem here.
    Thanks in advance
    regards,
    Arumugam KR

    Your function apex_util.get_blob_file_src under region, the first argument must be the name of page item anywhere in your application that is of type "file browse." So if your form for uploading the blob content is on page 11 and the file browse item is "P11_FILE_NAME" then your query would look like below:
    SELECT FILE_ID
         , FILE_NAME
          , CASE WHEN NVL(dbms_lob.getlength(BLOB_CONTENT),0) = 0
           THEN NULL
            ELSE
                  CASE WHEN attach_mimetype like 'image%'
                THEN '<img src="'||apex_util.get_blob_file_src('P11_FILE_NAME',id)||'" />'
                ELSE
                     '<a href="'||apex_util.get_blob_file_src('P11_FILE_NAME',id)||'">Download</a>'
               end
           END new_img
        FROM TABLE_NAME
    GET_BLOB_FILE_SRC FunctionAs an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.>
    [url http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm]GET_BLOB_FILE_SRC

  • Data fetch problem from EBAN table

    Hi All,
    I have a problem in data fetching. My SQL statement is
            SELECT    A~BANFN
                      A~FRGDT
                      A~MATNR
                      A~MENGE
                      A~MEINS
                      A~AFNAM
                      A~EKGRP
                      A~PRIO_URG
                      A~STATU
                      A~RLWRT
                      A~EBELN
                      A~LOEKZ
                      A~EBELP
                      A~FRGKZ
              INTO CORRESPONDING FIELDS OF TABLE ITAB_DATA
              FROM EBAN AS A
              WHERE     A~STATU IN S_STATU
              AND       A~EKGRP  = S_EKGRP
              AND       A~BANPR  = '05'
              AND       AFNAM  IN P_AFNAM
              AND       BEDNR  IN P_BEDNR .
    In EBAN table data in AFNAM field is like 'Mech', 'mech' & 'Mech'
    Now in selection screen if user give Mech then system picks only that data where 'Mech' is there but requirement is it should pick all data related to ('Mech', 'mech', 'Mech') in AFNAM field. How do I do?
    Thanks and regards,
    Rajesh Vasudeva

    Hello,
    What you ask is not easy but it is feasible.
    We had the same request to make a case-insensitive search on a text field.
    As a reference for our development we took the following example:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterialGroup|http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterialGroup]
    In short : the purpose is that first of all you build up a list of all possible values in a separate internal table.
    Then use this separate internal table in the FOR ALL ENTRIES clause when you perform the select on the actual data.
    Success.
    Wim

  • GL Download : problem with BSEG table..

    Hi Experts,
    I am doing a GL Download Report..
    When i am selecting data from bseg... the records which have the field BUZID = 'T' .. those records are not getting into my internal table..
    is there any other ways to get those records also..
    Expecting the reply..
    Thanks
    Guru

    Hi,
    Have you tried to view the contents of BSEG via SE16N.  This is a good method to prove the selection criteria for a particular table.
    Cheers
    David Cooper

  • Direct Downloading problems from iPhone

    Hi,
    I've had my iPhone for about 2 weeks. I've really had no problems until I put in the update. Now, I don't seem to be able to download directly to the iPhone, but have to go through iTunes from my computer.
    Was OTA (Over the air) downloads taken out of the update? Or is it a faulty app on my iPhone? Is anyone else having this problem?
    Thanks

    Anytime something doesn't seem to work right...do a reboot.
    Try a reboot (described below).
    Think of it this way, the iPhone is more of a computer than a phone. It suffers from being a new OS and nobody can deny there are not bugs and memory leaks. The longer left running, the more things start to fail or slow down (I have had the iPhone since day one of original phone and I am just speaking from my experience). Thus I equate it to like when Windows95 came out...not sure of your age or if you remember those days...but back then it was a running joke of how many days you can keep Windows 95 running before you had to reboot. I am sorry to say but the iPhone is the same way right now (but getting better with a few hiccups back during the 2.0 release). So for me, I reboot daily when I leave in the morning and take it off the charger. By doing so I rarely see any lag or problems.
    A reset/reboot is:
    Go to Home Screen
    Press and Hold Home Button
    Keep holding and press and hold Lock Button
    Keep holding Both
    You will see Slide to Turn Off (Don't let go to slide, just keep holding)
    The phone will turn off (in time, but screen will look like it has some white lines)
    Keep Holding
    When you see the Apple Logo, you can let go.
    Turning off via the Slide to Turn off while good and fine to turn off, is more like the Sleep Mode on a computer. Thus any locked up issues in memory remain when you turn back on. A reboot as described is like doing a real Turn off and Turn On on a computer.
    You may also wish to read this tread about reboots and odd application behavior.
    http://discussions.apple.com/message.jspa?messageID=5851978#5851978

  • Nokia asha 200 downloading problem from you tube

    hi how to download videos for nokia asha 200 from you tube wheneever i tried it shows the problem in downloading.it dosent show the option of download.

    I'm facing the same problem while downloading videos via fast tube or youtube downloade in my Nokia 701. The download tab is actually not coming. Is this because of any changes in youtube API? Please suggest something.
    Thanks in advance.

  • Download data from internal table to excel sheet from the background

    Hello Experts,
    I have written a code where the data is stored in the internal table . Now when i run this code in the background i want this internal table data to get downloaded in the excel sheet. The function module GUI_DOWNLAOD is not supported in the background. So is there any other function module that can be used or is there any other way to do this
    Thanks in advance

    Hi Aditya,
    I would provide you 2 advice:
    1. save the file on the application server as text file and the fileds in it separated by TAB,you can download the file whenever you want and open it with excel.
    2.generate excel files and send it to the email address whatever you specify in the selection-screen.
    Thanks,
    Sam

Maybe you are looking for

  • Strange view in Finder...

    Hello everyone, I do not know how it happen, but i've got this view in Finder. And it was not possible to return it back by swiping the view by 2fingers swipe, and other options like changing the view didn't work until i closed the current finder win

  • Mail not showing up in macmail

    Mail isn't coming in to my macmail accounts. They show up when I check my mail on web-based email servers but not in macmail. Using OS 10.7.5

  • Budget checking for Q Category

    Hi Experts, We are using WBS Elements in Procurement Process, When we creating PR with account assignment to WBS with Category P System is checking Budget and availability control is working fine but when i Creating PR against the AA Category Q Syste

  • Differance between crm 4.0 and 5.0

    hi gurus what's the difference between crm 4.0 and crm 5.0 plz send the details mahesh

  • Bug in array indicator?

    I found very strange behaviour of Array Indicator (LV 8.20). If you look at attached VI, you will see that is very simple VI where only first element of Array should changed randomly every half of second while other element are 8. But if I click any