I am getting dump while downloading

i am getting dump while downloading file  to presentaion server .
please suggest me .
code is like below.
PARAMETERS : p_dwn   TYPE dxfile-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwn.
    CALL FUNCTION 'F4_FILENAME'
  EXPORTING
    PROGRAM_NAME        =
    DYNPRO_NUMBER      =
    FIELD_NAME                =
       IMPORTING
         file_name           = p_dwn.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
              filename              = p_dwn
              filetype              = 'ASC'
              write_field_separator = 'X'
         TABLES
              data_tab              = t_zvtpmheader.
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Hi Veeru,
This dump you are getting because of type mismatch, just change the file path as follows :-
data declaration should be like this.
PARAMETERS : p_dwn TYPE STRING. <<<----
it will surely work.
cheers
Dhirendra

Similar Messages

  • Dump while downloading to excel file!!

    Hi,
    I'm getting a dump while downloading the ALV (Grid) report into an excel file.
    When i inspected, the dump was - " Only character-type data objects are supported at the argument position "obj". In this particular case, the operand "obj" has the non-charcter-type type "P". "-
    i'm having few currency values to be displayed.
    Thought of an alternative my moving the values into char type field and to display it, but the values are getting rounded of.
    Thanks in advance..
    Any help would be suitably rewarded.
    Kumar R.

    All the internal fields to be char type..if download functionality to be given..
    if there is any issue in doing this...
    create any another field in ur table(internal ) of type c length same like ur coressponding currency or quatity field....
    move these fields into ur new char field and then prepare fieldcatlog on this..
    hope this helps...
    i handled like this only..
    Praveen .

  • Getting Dump while Mapping data source.

    Hi Expert,
    Am getting below DUMP while trying to map data source in SEGW transaction.
    Could you please suggest what could be possible cause for this?
    Category               ABAP Programming Error
    Runtime Errors         SYNTAX_ERROR
    ABAP Program           CL_SADL_GW_UI_ALV_SADL_MAPPINGCP
    Application Component  BC-ESI-ESF-GW
    Date and Time          28.07.2014 18:30:59
    Short Text
         Syntax error in program "CL_SADL_GW_UI_ALV_SADL_MAPPINGCP        ".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "CL_SADL_GW_UI_PLUG============CP" had to be
          terminated because it has
         come across a statement that unfortunately cannot be executed.
         In include "CL_SADL_GW_UI_ALV_SADL_MAPPINGCM005     ", in line 14 of program
          "CL_SADL_GW_UI_ALV_SADL_MAPPINGCP        ", the following syntax errors
         have occurred:
    Thanks & Regards,
    Girdhari

    Thanks Jasmin for the reply.
    Yes.. Am following the E2E guide.
    I tried by opening another external window by executing ok-code osegw but still getting same dump.
    Below is the complete dump info.
    Category               ABAP Programming Error
    Runtime Errors         SYNTAX_ERROR
    ABAP Program           CL_SADL_GW_UI_ALV_SADL_MAPPINGCP
    Application Component  BC-ESI-ESF-GW
    Date and Time          29.07.2014 15:44:03
    |Short Text                                                                                        |
    |    Syntax error in program "CL_SADL_GW_UI_ALV_SADL_MAPPINGCP        ".                           |
    |What happened?                                                                                    |
    |    Error in the ABAP Application Program                                                         |
    |                                                                                                  |
    |    The current ABAP program "CL_SADL_GW_UI_PLUG============CP" had to be                         |
    |     terminated because it has                                                                    |
    |    come across a statement that unfortunately cannot be executed.                                |
    |    In include "CL_SADL_GW_UI_ALV_SADL_MAPPINGCM005     ", in line 14 of program                  |
    |     "CL_SADL_GW_UI_ALV_SADL_MAPPINGCP        ", the following syntax errors                      |
    |    have occurred:                                                                                |
    |    "CS_TABLE_LAYOUT" is not type-compatible with formal parameter "CS_TAB                        |
    |    LE_LAYOUT".                                                                                   |
    |                                                                                                  |
    |                                                                                                  |
    |                                                                                                  |
    |    Author and last person to change the include are:                                             |
    |    Author         SAP                                                                            |
    |    Last changed by "SAP         "                                                                |
    |Error analysis                                                                                    |
    |    The following syntax error has occurred in program                                            |
    |     CL_SADL_GW_UI_ALV_SADL_MAPPINGCP        :                                                    |
    |    "CS_TABLE_LAYOUT" is not type-compatible with formal parameter "CS_TAB                        |
    |    LE_LAYOUT".                                                                                   |
    |                                                                                                  |
    |    " "                                                                                           |
    |Trigger Location of Runtime Error                                                                 |
    |    Program                                 CL_SADL_GW_UI_PLUG============CP                      |
    |    Include                                 CL_SADL_GW_UI_PLUG============CM002                   |
    |    Row                                     11                                                    |
    |    Module Type                             (METHOD)                                              |
    |    Module Name                             /IWBEP/IF_SBUI_PLUGIN~CREATE_VIEW                     |
    |Source Code Extract                                                                               |
    |Line |SourceCde                                                                                   |
    |    1|  METHOD /iwbep/if_sbui_plugin~create_view.                                                 |
    |    2|    CASE iv_name.                                                                           |
    |    3|      WHEN if_sadl_gw_ui_c=>gc_dialog-mapping_container. " custom container for the ALV Grid|
    |    4|        CREATE OBJECT ro_view TYPE cl_sadl_gw_ui_map_ds_sadl_c                              |
    |    5|          EXPORTING                                                                         |
    |    6|            io_controller = io_controller                                                   |
    |    7|            iv_plugin     = if_sadl_gw_ui_c=>gc_ui_plugin                                   |
    |    8|            iv_name       = iv_name.                                                        |
    |    9|                                                                                            |
    |   10|      WHEN if_sadl_gw_ui_c=>gc_dialog-entity_set_prop_map_alv_grid. " ALV GRID mapping table|
    |>>>>>|        CREATE OBJECT ro_view TYPE cl_sadl_gw_ui_alv_sadl_mapping                           |
    |   12|          EXPORTING                                                                         |
    |   13|            io_controller = io_controller                                                   |
    |   14|            iv_plugin     = if_sadl_gw_ui_c=>gc_ui_plugin                                   |
    |   15|            iv_name       = iv_name.                                                        |
    |   16|                                                                                            |
    |   17|      WHEN if_sadl_gw_ui_c=>gc_dialog-entity_set_assoc_map_alv_grid. " ALV GRID mapping tabl|
    |   18|        CREATE OBJECT ro_view TYPE cl_sadl_gw_ui_alv_map_assoc                              |
    |   19|          EXPORTING                                                                         |
    |   20|            io_controller = io_controller                                                   |
    |   21|            iv_plugin     = if_sadl_gw_ui_c=>gc_ui_plugin                                   |
    |   22|            iv_name       = iv_name.                                                        |
    |   23|                                                                                            |
    |   24|      WHEN if_sadl_gw_ui_c=>gc_dialog-data_source_tree. " SADL entity ALV tree              |
    |   25|        CREATE OBJECT ro_view TYPE cl_sadl_gw_ui_tree_ds_sadl_c                             |
    |   26|          EXPORTING                                                                         |
    |   27|            io_controller = io_controller                                                   |
    |   28|            iv_plugin     = if_sadl_gw_ui_c=>gc_ui_plugin                                   |
    |   29|            iv_name       = iv_name.                                                        |
    |   30|    ENDCASE.                                                                                |
    |Active Calls/Events                                                                               |
    |No.   Ty.          Program                             Include                             Line   |
    |      Name                                                                                        |
    |   23 METHOD       CL_SADL_GW_UI_PLUG============CP    CL_SADL_GW_UI_PLUG============CM002    11  |
    |      CL_SADL_GW_UI_PLUG=>/IWBEP/IF_SBUI_PLUGIN~CREATE_VIEW                                       |
    |   22 METHOD       /IWBEP/CL_SBUI_SETUP==========CP    /IWBEP/CL_SBUI_SETUP==========CM00E     7  |
    |      /IWBEP/CL_SBUI_SETUP=>/IWBEP/IF_SBUI_SETUP_FACTORY~CREATE_COMPONENT_VIEW                    |
    |   21 METHOD       /IWBEP/CL_SBUI_VIEW_COMPOSITE=CP    /IWBEP/CL_SBUI_VIEW_COMPOSITE=CM004     6  |
    |      /IWBEP/CL_SBUI_VIEW_COMPOSITE=>CREATE_COMPONENT_VIEW                                        |
    |   20 METHOD       CL_SADL_GW_UI_MAP_DS_SADL_C===CP    CL_SADL_GW_UI_MAP_DS_SADL_C===CM00B     2  |
    |      CL_SADL_GW_UI_MAP_DS_SADL_C=>_ADD_COMPONENT_VIEW                                            |
    |   19 METHOD       CL_SADL_GW_UI_MAP_DS_SADL_C===CP    CL_SADL_GW_UI_MAP_DS_SADL_C===CM008    11  |
    |      CL_SADL_GW_UI_MAP_DS_SADL_C=>DO_SETUP_INSTANCE                                              |
    |   18 METHOD       /IWBEP/CL_SBUI_VIEW===========CP    /IWBEP/CL_SBUI_VIEW===========CM003    58  |
    |      /IWBEP/CL_SBUI_VIEW=>/IWBEP/IF_SBUI_COMMAND_HANDLER~EXECUTE_COMMAND                         |
    |   17 METHOD       /IWBEP/CL_SBUI_SETUP==========CP    /IWBEP/CL_SBUI_SETUP==========CM00E    12  |
    |      /IWBEP/CL_SBUI_SETUP=>/IWBEP/IF_SBUI_SETUP_FACTORY~CREATE_COMPONENT_VIEW                    |
    |   16 METHOD       /IWBEP/CL_SBUI_SETUP==========CP    /IWBEP/CL_SBUI_SETUP==========CM00I    17  |
    |      /IWBEP/CL_SBUI_SETUP=>CREATE_FRAMESET_EDITOR                                                |
    |   15 METHOD       /IWBEP/CL_SBUI_SETUP==========CP    /IWBEP/CL_SBUI_SETUP==========CM00G    59  |
    |      /IWBEP/CL_SBUI_SETUP=>/IWBEP/IF_SBUI_SETUP_FACTORY~CREATE_ELEMENT_EDITOR                    |
    |   14 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM015    22  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>GET_ASSIGNED_EDIT_TOOL                                           |
    |   13 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM00A    33  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>/IWBEP/IF_SBUI_CONTROLLER~ON_NAVIGATION_REQUESTED                |
    |   12 METHOD       /IWBEP/CL_SBUI_DP_CMD_CREA_MA=CP    /IWBEP/CL_SBUI_DP_CMD_CREA_MA=CM001    53  |
    |      /IWBEP/CL_SBUI_DP_CMD_CREA_MA=>DO_EXECUTE_COMMAND                                           |
    |   11 METHOD       /IWBEP/CL_SBUI_COMMAND========CP    /IWBEP/CL_SBUI_COMMAND========CM002     4  |
    |      /IWBEP/CL_SBUI_COMMAND=>/IWBEP/IF_SBUI_COMMAND_HANDLER~EXECUTE_COMMAND                      |
    |   10 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM00E     9  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>HANDLE_COMMAND_OF_PLUGIN                                         |
    |    9 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM00Y    97  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>HANDLE_COMMAND                                                   |
    |    8 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM00C   138  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>/IWBEP/IF_SBUI_CONTROLLER~ON_COMMAND_REQUESTED                   |
    |    7 METHOD       /IWBEP/CL_SBUI_SCREEN=========CP    /IWBEP/CL_SBUI_SCREEN=========CM001    18  |
    |      /IWBEP/CL_SBUI_SCREEN=>ON_PAI_COMMAND                                                       |
    |    6 MODULE (PAI) /IWBEP/SAPLFG_SBUI_SB_MAIN          /IWBEP/LFG_SBUI_SB_MAINI01             14  |
    |      PAI_0100_COMMAND                                                                            |
    |    5 METHOD       /IWBEP/SAPLFG_SBUI_SB_MAIN          /IWBEP/LFG_SBUI_SB_MAINCI1             34  |
    |      LCL_SCREEN_0100=>DO_CALL_SCREEN                                                             |
    |    4 METHOD       /IWBEP/CL_SBUI_SCREEN=========CP    /IWBEP/CL_SBUI_SCREEN=========CM003    17  |
    |      /IWBEP/CL_SBUI_SCREEN=>START_SCREEN                                                         |
    |    3 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM00U    50  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>START_SCREEN                                                     |
    |    2 METHOD       /IWBEP/CL_SBUI_CONTROLLER=====CP    /IWBEP/CL_SBUI_CONTROLLER=====CM004    33  |
    |      /IWBEP/CL_SBUI_CONTROLLER=>/IWBEP/IF_SBUI_SERVICE_BUILDER~START                             |
    |    1 EVENT        /IWBEP/R_SBUI_SERVICE_BUILDER       /IWBEP/R_SBUI_SERVICE_BUILDER          19  |
    |      START-OF-SELECTION                                                                          |
    Thanks,
    Girdhari

  • Getting dump while posting goods receipt through TCode migo

    Hi,
    I am getting dump after I click on post button in TCode 'MIGO'.
    Short text
        The current application triggered a termination with a short dump.
    Short text of error message:
    Document number 9 5000000000 2010 was already assigned
    Long text of error message:
      Diagnosis
          Document number 5000000000 in company code 9 and fiscal year 2010
          has already been assigned.
      System Response
          Termination of processing.
      Procedure
          Check document number range 50 in company code 9 and fiscal year
          2010 and correct the number range status if necessary.
    Technical information about the message:
    Message class....... "F5"
    Number.............. 152
    Variable 1.......... 9
    Variable 2.......... 5000000000
    Variable 3.......... 2010
    Variable 4.......... 50
    So please help me what I can do?
    Thanks,
    Moderator Message: The short dump is self-explanatory.
    Edited by: kishan P on Nov 18, 2010 11:17 AM

    Hi,
    plx try to chane the status in IE02
    Go to edit ,manual options , in that delete the HU assignemtn
    and then save it and come out of it ..
    Hope that helps

  • Getting dump while loading master data

    Hi,
    i am gettin dump while loading master data genrated by copa,
    that gtwa_not_assigned.
    Best regards,
    dushyant.

    hi,
    see weather that master data contain attribute or not,
    if not than un check master data field from the master data attribute tab,
    and than try to load it again.
    Dushyant.

  • Dump - While downloading Excel file in Back Ground job.

    Hi Friends,
    I am running a report program in BackGround mode and Downloading an Excel file.
    Getting the following dump report. (Working in 4.6C)
    ABAP/4 processor: RAISE_EXCEPTION
    Job cancelled
    Help me to resolve this.
    000380       CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
    000390         EXPORTING
    000400           DIRECTORY                   = FILE
    000410           FILTER                      = ''
    000420           FILES_ONLY                  = 'X'
    000430   *    DIRECTORIES_ONLY            = 'X'
    000440         CHANGING
    000450           FILE_TABLE                  = filetab
    000460           COUNT                       = count
    000470         EXCEPTIONS
    000480           CNTL_ERROR                  = 1
    000490           DIRECTORY_LIST_FILES_FAILED = 2
    000500           WRONG_PARAMETER             = 3
    000510           ERROR_NO_GUI                = 4
    000520           others                      = 5.
    000530
    000540       IF SY-SUBRC <> 0.
         >         RAISE CNTL_ERROR.
    000560       ENDIF.
    I am calling the methods as shown below.
    CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                = l_file
          write_field_separator   = 'X'
        CHANGING
          data_tab                = i_header
        EXCEPTIONS
          OTHERS                  = 22.
      IF SY-SUBRC NE 0.
       MESSAGE S208(05) WITH 'File download is failed'.
      else.
       MESSAGE S208(05) WITH 'File downloaded to specified path'.
      ENDIF.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                = l_file
          append                  = 'X'
          write_field_separator   = 'X'
        CHANGING
          data_tab                = i_output
        EXCEPTIONS
          OTHERS                  = 22.
      IF SY-SUBRC NE 0.
       MESSAGE S208(05) WITH 'File download is failed'.
      else.
       MESSAGE S208(05) WITH 'File downloaded to specified path'.
      ENDIF.
    Regards,
    Viji

    HI Vijayalakshmi,
    you are using cl_gui_frontendsevices...class in background...
    Is it possible to use this class in the background??
    Plz check once...
    Regards,
    Vamshi

  • Getting Dump while using PYXX_READ_PAYROLL_RESULT FM

    I m trying to get the gross salary and ESI contribution amount for an indian based employee. While using the FM 'PYXX_READ_PAYROLL_RESULT' i m getting the following dump.
    ************************************************************************************************************************************************************An exception occurred that is explained in detail below.The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', wa  not caught in  procedure "PYXX_READ_PAYROLL_RESULT" "(FUNCTION)", nor was it propagated by  RAISING clause.Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated. The reason for the exception is:
    Call to FORM "IMPORT_RESULT" is incorrect:
    The actual parameter no. 2 has a different data type in the
    PERFORM than requested for the FORM "IMPORT_RESULT" in program  %_T06K40".    
    and it is showing the dump result here
    ELSE.
          PERFORM import_client_spec IN PROGRAM (subroutine_pool-name)
                                      USING client
                                             key
                                             payroll_result
                                             import_subrc
                                             pcl2_version_number
                                             typepool_version_number
                            IF FOUND.
    Pls help me to solve the issue as it very high priroty work

    Hi Faisal,
    Before the FM the Sy-Subrc is zero only and i have declared the exception part also..
    IF sy-subrc = 0.
      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
        EXPORTING
          clusterid                    = 'IN'
          employeenumber               = P0001-pernr
          sequencenumber               = it_rgdir-seqnr
          filter_cumulations           = ''
        CHANGING
          payroll_result               = it_payresult
        EXCEPTIONS
          illegal_isocode_or_clusterid = 1
          error_generating_import      = 2
          import_mismatch_error        = 3
          subpool_dir_full             = 4
          no_read_authority            = 5
          no_record_found              = 6
          versions_do_not_match        = 7
          error_reading_archive        = 8
          error_reading_relid          = 9
          OTHERS                       = 10.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Endif.
    Thanks!

  • Dump while downloading data from Application Server File in 4.6 system

    Hi,
    When we are trying to upload data from Application Server to internal table using dataset statements, it is resulting in a dump. System we are using is 4.6c.
    When we faced similar kind of issue in ECC version, we have used the statement, Ignoring Conversion Errors.
    Please let me know how to handle this situation in 4.6 System.
    Thanks for your inputs.
    Regards,
    Phani

    Hi All,
    I am sorry. My question was wrong. It should be while uploading data from internal table to application server, if there are any special characters, it is going to dump.
    I will let you know the dump details and code at the earliesst.
    Sorry and Thanks again for your prompt response.
    Regards,
    Phani.

  • Getting error while downloading customer

    hi all,
    i am getting following error in smq2.
    while tranfering custmers.
    Function module "/PMPAY/P_CHK_MC" not found.
    plz check

    Hi Vishesh,
                   All i can is the FM that you have metioned, i believe it to be custom one(Specific to your project). So, there is not much inputs that anyone can provide here. Ask your technical folks to look after.
    Hope it helps!!
    Regards,
    Josh

  • Getting dump while calling adobe form

    Hello All,
    I am working on a webdynpro application and within the application I am calling a adobe form, when I call the adobe form I am getting the following short dump:
    Error in the ABAP Application Program
    The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "/1BCDWB/SAPLSM00000027 " in
    include "/1BCDWB/LSM00000027F01 " in
    line 587:
    "Field "BKPF-WAERS" is unknown. It is neither in one of the specified t"
    "ables nor defined by a "DATA" statement. ."
    I looked at the adobe form and the interface and the field WAERS is being defined there but I am not sure then why I am getting this dump.
    Can you please help me on this.
    Thanks,
    Rajat
    Moderator message: wrong forum, please have a look in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Feb 9, 2011 3:23 PM

    Hi,
          Try to generate the interface and adobe form and also the generated FM "/1BCDWB/SAPLSM00000027"
    Regards,
    Srini.

  • Can't connect to iTunes store after getting dumped mid-download

    So iTunes crashed while I was in the middle of downloading an album. Now I can't connect to the store to check for purchases and finish the download. I've tried everything I've found in the discussion forums and am using the most current version of iTunes, rebooted, restarted my DSL and wireless routers, flushed DNS, yadda yadda. What gives?
    Error Message: iTunes could not connect to the iTunes store. Make sure your internet connection is active and try again.
    Well, I'm posting this, so I think the active connection stuff is crap. I can't connect to the store through the regular website either. Bah!
    Thanks for any help anyone can offer~~

    I was having the same problem earlier today, and what I ultimately did to solve the issue was:
    Completely uninstall iTunes 10.5 by following http://support.apple.com/kb/ht1925
    Find my backup iTunes Library File (*.itl) from the previous version, and copy it to "iTunes Library.itl"
    See http://technicallyeasy.net/2009/03/restoring-a-previous-version-of-your-itunes-l ibrary/
    Reinstall with the previous software, iTunes 10.4.1
    The fact that the old 10.4.1 software works correctly in accessing the iTunes Store, and the new 10.5 software does not work correctly, suggests to me that there is some kind of bug in the iTunes 10.5 application itself. Hopefully the developers can figure it out. In the meantime, I'm happily working again on the previous version and will be planning to stay there until this mess has been cleared up.

  • Getting issue while downloading 4 to 5 gb file from blob storage.

    Hi i have to download a file from blob storage upto 3 to 5 gb .
    Below is my code:
    Label lblfilename = (Label)row.FindControl("lblGrid_filename");
        Label lblfilesize = (Label)row.FindControl("lblGrid_hidfileSize");
        string downloadfile = lblfilename.Text.ToString();
       // DownloadFileFromBlob(downloadfile, CONTAINER, ACCOUNTKEY);
        AccountFileTransfer = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=" + ACCOUNTNAME + ";AccountKey=" + ACCOUNTKEY);
        if (AccountFileTransfer != null)
            BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
            ContainerFileTransfer = BlobClientFileTransfer.GetContainerReference(CONTAINER);
            ContainerFileTransfer.CreateIfNotExist();
            BlobRequestOptions options = new BlobRequestOptions();
            options.Timeout = new TimeSpan(0, 180, 0);
        var data = Regex.Match(lblfilesize.Text.ToString(), @"\d+").Value;
        int value32;
        Int64 value64;
        var blobSize = 0L;
        var blockSize = 0L;
        var offset = 0L;
        if (int.TryParse(data, out value32))
            blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        else if (Int64.TryParse(data, out value64))
            blobSize = Convert.ToInt64(lblfilesize.Text.ToString());
        var blob = ContainerFileTransfer.GetBlockBlobReference(downloadfile);
        var sasUrl = blob.Uri.AbsoluteUri;
        CloudBlockBlob blockBlob = new CloudBlockBlob(sasUrl);
        //blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        blockSize = 5 * 1024 * 1024;
        Response.Clear();
        Response.ContentType = "APPLICATION/OCTET-STREAM";
        System.String disHeader = "Attachment; Filename=\"" + blockBlob.Name + "\"";
        //Response.AppendHeader("Content-Disposition", disHeader);
        for (offset = 0; offset < blobSize; offset += blockSize)
            using (var blobStream = blockBlob.OpenRead())
                if ((offset + blockSize) > blobSize)
                    blockSize = (blobSize - offset);
                byte[] buffer = new byte[blockSize];
                blobStream.Read(buffer, 0, buffer.Length);
                Response.BinaryWrite(buffer);
                Response.Flush();
        Response.End();
    SNAPSHOT of error:
    Pawan

    Hi Will thanks per the reply
    I have make some changes in the code and now i am using the v4.0.30319 azure storage for downloading and able to download a file upto 3.5 GB. Now the problem is that each file size is showing 0 KB.
    Here is my code and snapshot:
      Button btndownloadrow = (Button)sender;
        GridViewRow row = (GridViewRow)btndownloadrow.NamingContainer;
        Label lblfilename = (Label)row.FindControl("lblGrid_filename");
        Label lblfilesize = (Label)row.FindControl("lblGrid_hidfileSize");
        string downloadfile = lblfilename.Text.ToString();
        CloudStorageAccount AccountFileTransfer = CloudStorageAccount.Parse("DefaultEndpointsProtocol=http;AccountName=" + ACCOUNTNAME + ";AccountKey=" + ACCOUNTKEY);
        // Create the blob client.
        CloudBlobClient BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
        // Retrieve reference to a previously created container.
        CloudBlobContainer ContainerFileTransfer = BlobClientFileTransfer.GetContainerReference("filetransfer");
        if (AccountFileTransfer != null)
            BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
            CloudBlockBlob pageBlob = ContainerFileTransfer.GetBlockBlobReference(CONTAINER);
            ContainerFileTransfer.CreateIfNotExists();
            BlobRequestOptions options = new BlobRequestOptions();
            options.ServerTimeout= new TimeSpan(0, 180, 0);
        var data = Regex.Match(lblfilesize.Text.ToString(), @"\d+").Value;
        int value32;
        Int64 value64;
        var blobSize = 0L;
        var blockSize = 0L;
        var offset = 0L;
        if (int.TryParse(data, out value32))
            blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        else if (Int64.TryParse(data, out value64))
            blobSize = Convert.ToInt64(lblfilesize.Text.ToString());
        CloudBlockBlob blob = ContainerFileTransfer.GetBlockBlobReference(downloadfile);
        var sasUrl = blob.Uri;
        CloudBlockBlob blockBlob = new CloudBlockBlob(sasUrl);
        //blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        blockSize = 4 * 1024 * 1024;
        Response.Clear();
        Response.ContentType = "APPLICATION/OCTET-STREAM";
        System.String disHeader = "Attachment; Filename=\"" + blockBlob.Name + "\"";
        Response.AppendHeader("Content-Disposition", disHeader);
       // blob.DownloadToStream(Response.OutputStream);
       // byte[] bytes = new byte[blockSize];
        for (offset = 0; offset < blobSize; offset += blockSize)
            using (var blobStream = blockBlob.OpenRead())
                if ((offset + blockSize) > blobSize)
                    blockSize = (blobSize - offset);
            byte[] buffer = new byte[blockSize];
                blobStream.Read(buffer, 0, buffer.Length);
                Response.BinaryWrite(buffer);
                Response.Flush();
        Response.End();
    SNAPSOT:
    Please suggest me if i am missing any logic.
    Pawan

  • Getting dump while assigning resource to role

    Hi,
    We are using BAPI_BUS2177_STAFFING_ADD  to assign resource to role.
    It is assigning first resource to first role in first project. And giving dump for next resource to role assignment for the same project.
    Short dump description is like as follows:
    The exception 'CX_DPR_FATAL_ERROR' was raised, but it was not caught anywhere
      along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
      'CL_DPR_AUTHORIZATION_SERVICES=CP' has to be
    terminated.
    The problem is of "COMMIT". I ma not understanding where to write exact commit. Even if we are commiting at project level it is giving dump.
    Could you please give any suggestion on it.
    Thanks & Regards,
    Anil Salekar

    Hello Kaixiang,
    When you add staffing to project then commit after each resource assignment. That will avoid the dump.
    Use:
    CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK'
             TABLES
               return = it_return.
    Note: Re award if useful
    Thanks,
    Appasaheb..

  • I get errors while downloading Adobe Lightroom.. How can I fix this?

    I get these errors:
    - 0 fatal error(s), 3 error(s)
    ----------- Payload: Adobe Photoshop Lightroom 5 5.7.1.0 Adobe_Lightroom.msi_5.7.1 -----------
    ERROR: Fout 1935.An error occurred during the installation of assembly component {FF2F571A-6C54-31E3-B23E-2A60283B08A8}. HRESULT: 0x80073712.
    ERROR: Install MSI payload failed with error: 1603 - Onherstelbare fout bij installatie.
    MSI Error message: Fout 1935.An error occurred during the installation of assembly component {FF2F571A-6C54-31E3-B23E-2A60283B08A8}. HRESULT: 0x80073712.
    ERROR: Third party payload installer Adobe_Lightroom.msi failed with exit code: 1603

    Hi Tornado,
    Please refer to the threads below where this issue has been addressed:
    Re: Manual remove of Lightroom causing problems for re-install with Creative Cloud
    Lightroom 5.3 installation fails (Windows 8.1 x64)
    Regards,
    Sheena

  • Dump while Select files - Confirm Target step in MOPZ

    Hi All,
    I'm getting dump while trying to confirm files in mopz. This is in the step confirm target.
    Please see this link, issue exactly what we have but the notes cannot be implemented which is in this link Maintenance Optimizer: "Value loss during allocation"
    Kindly have a look on below dump
    Category               ABAP Programming Error
    Runtime Errors         CONVT_DATA_LOSS
    Except.                CX_SY_CONVERSION_DATA_LOSS
    ABAP Program           CL_MO_SMP_ADAPTER=============CP
    Application Component  SV-SMG-MAI
    Date and Time          16.12.2011 00:32:20
         Short text
              Value loss during allocation.
         What happened?
              Error in the ABAP Application Program
              The current ABAP program "CL_MO_SMP_ADAPTER=============CP" had to be
               terminated because it has
              come across a statement that unfortunately cannot be executed.
         What can you do?
              Note down which actions and inputs caused the error.
              To process the problem further, contact you SAP system
              administrator.
              Using Transaction ST22 for ABAP Dump Analysis, you can look
              at and manage termination messages, and you can also
              keep them for a long time.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_SY_CONVERSION_DATA_LOSS', was not
               caught in
              procedure "GET_2ND_CHECK_RESULT" "(METHOD)", nor was it propagated by a RAISING
               clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              Value "01200314695000002461|01200314694900013074:01200314694900009502|" was
               allocated in a field which is not long enough.
              Therefore the target field could not store all information of
               "01200314695000002461     01200314694900013074:01200314694900009502     ".
         How to correct the error
              Probably the only way to eliminate the error is to correct the program.
              If the error occures in a non-modified SAP program, you may be able to
              find an interim solution in an SAP Note.
              If you have access to SAP Notes, carry out a search with the following
              keywords:
              "CONVT_DATA_LOSS" "CX_SY_CONVERSION_DATA_LOSS"
              "CL_MO_SMP_ADAPTER=============CP" or "CL_MO_SMP_ADAPTER=============CM00A"
              "GET_2ND_CHECK_RESULT"
              If you cannot solve the problem yourself and want to send an error
              notification to SAP, include the following information:
              1. The description of the current problem (short dump)
                 To save the description, choose "System->List->Save->Local File
              (Unconverted)".
              2. Corresponding system log
                 Display the system log by calling transaction SM21.
                 Restrict the time interval to 10 minutes before and five minutes
              after the short dump. Then choose "System->List->Save->Local File
              (Unconverted)".
              3. If the problem occurs in a problem of your own or a modified SAP
              program: The source code of the program
                 In the editor, choose "Utilities->More
              Utilities->Upload/Download->Download".
              4. Details about the conditions under which the error occurred or which
              actions and input led to the error.
              The exception must either be prevented, caught within proedure
              "GET_2ND_CHECK_RESULT" "(METHOD)", or its possible occurrence must be declared
               in the
              RAISING clause of the procedure.
              To prevent the exception, note the following:
         System environment
              SAP Release..... 702
              SAP Basis Level. 0004
              Application server... "OMEGASOL"
              Network address...... "172.16.1.13"
              Operating system..... "Windows NT"
              Release.............. "6.0"
              Hardware type........ "4x AMD64 Level"
              Character length.... 16 Bits
              Pointer length....... 64 Bits
              Work process number.. 5
              Shortdump setting.... "full"
              Database server... "OMEGASOL"
              Database type..... "DB6"
              Database name..... "OS1"
              Database user ID.. "SAPOS1"
              Terminal.......... "124.123.157.231"
              Char.set.... "C"
              SAP kernel....... 720
              created (date)... "Aug 5 2010 02:21:12"
              create on........ "NT 5.2 3790 S x86 MS VC++ 14.00"
              Database version. "DB6_81 "
              Patch level. 59
              Patch text.. " "
              Database............. "DB6 08.02., DB6 09."
              SAP database version. 720
              Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
               NT 6.0, Windows NT 6.1"
              Memory consumption
              Roll.... 0
              EM...... 33518336
              Heap.... 0
              Page.... 81920
              MM Used. 32855760
              MM Free. 658336
         User and Transaction
              Client.............. 100
              User................ "OS1_USER"
              Language key........ "E"
              Transaction......... " "
              Transaction ID...... "344F27E12581F11B97DA920465FA5E5A"
              EPP Whole Context ID.... "920465FA5E5A1ED189E9DA9C282A77DA"
              EPP Connection ID....... "920465FA5E5A1ED189E9DAF1CA0A37DA"
              EPP Caller Counter...... 1
              Program............. "CL_MO_SMP_ADAPTER=============CP"
              Screen.............. "SAPMHTTP 0010"
              Screen Line......... 2
              Debugger Active..... "none"
         Server-Side Connection Information
              Information on Caller of "HTTP" Connection:
              Plug-in Type.......... "HTTP"
              Caller IP............. "124.123.157.231"
              Caller Port........... 8000
              Universal Resource ID. "/sap/bc/webdynpro/sap/wda_mopz_plan"
              Program............. "CL_MO_SMP_ADAPTER=============CP"
              Screen.............. "SAPMHTTP 0010"
              Screen Line......... 2
              Information on Caller ofr "HTTP" Connection:
              Plug-in Type.......... "HTTP"
              Caller IP............. "124.123.157.231"
              Caller Port........... 8000
              Universal Resource Id. "/sap/bc/webdynpro/sap/wda_mopz_plan"
         Information on where terminated
              Termination occurred in the ABAP program "CL_MO_SMP_ADAPTER=============CP" -
               in "GET_2ND_CHECK_RESULT".
              The main program was "SAPMHTTP ".
              In the source code you have the termination point in line 19
              of the (Include) program "CL_MO_SMP_ADAPTER=============CM00A".
              The termination is caused because exception "CX_SY_CONVERSION_DATA_LOSS"
               occurred in
              procedure "GET_2ND_CHECK_RESULT" "(METHOD)", but it was neither handled locally
               nor declared
              in the RAISING clause of its signature.
              The procedure is in program "CL_MO_SMP_ADAPTER=============CP "; its source
               code begins in line
              1 of the (Include program "CL_MO_SMP_ADAPTER=============CM00A ".
         Source Code Extract
         Line     SourceCde
             1     method GET_2ND_CHECK_RESULT.
             2       DATA ls_buffer TYPE smp_buffer.
             3       CLEAR ev_status.
             4       DATA lv_crm_id TYPE crmt_object_guid.
             5     mo_controller->crm_adapter->get_crm_id(
             6     IMPORTING ev_crm_id = lv_crm_id
             7     ).
             8       SELECT * FROM smp_buffer INTO ls_buffer WHERE crm_id EQ lv_crm_id AND action EQ mopzp_c_ac
             9         ev_status = ls_buffer-action_lock.
            10       ENDSELECT.
            11     
            12       IF ev_status EQ 2.
            13         DATA lt_errors TYPE mopzp_t_errors.
            14     
            15     
            16         IF ls_buffer-data IS NOT INITIAL.
            17           DATA lt_start TYPE mopzp_tt_system_constellation.
            18           DATA lt_target TYPE mopzp_tt_system_constellation.
         >>>>>           call TRANSFORMATION id SOURCE XML ls_buffer-data RESULT system_base = lt_start
            20           system_goal = lt_target
            21           stacklist = et_targets
            22           errors = lt_errors.
            23           et_target_constellation = lt_target.
            24           et_start_constellation = lt_start.
            25           on_errors( lt_errors ).
            26         ENDIF.
            27     
            28         IF ls_buffer-error IS NOT INITIAL.
            29           CLEAR lt_errors.
            30           CALL TRANSFORMATION id SOURCE XML ls_buffer-error
            31           RESULT errors = lt_errors.
            32           on_errors( lt_errors ).
            33         ENDIF.
            34       ELSEIF ev_status EQ 0.
            35         check_target_constellation_asc( ).
            36       ENDIF.
            37     endmethod.
    Thanks in advance
    Uday

    Hi,
    yes, upgrade to latest level is a good move to eliminate all possible bugs. Also, you can read my blog on assigning to correct product system in solman 7.1
    #sapadmin:: How to assign Product System in SOLMAN 7.1 & How LMDB, SLD, SMSY and Landscape Verification  work in SOLMAN7.1
    hope it helps,
    Cheers,
    Nicholas Chang

Maybe you are looking for

  • Remove decimal from Line Chart

    I am using custom XML for line chart to control thresholds. On X axis , I want to specify % instead of decimal value. How can I achieve it? I changed the below : <format><![CDATA[{%Name}{enabled:True} - {%Value}{numDecimals:0}%]]></format> But it doe

  • How do I make automator automatically turn off the volume when I shutdown?

    I want to make automator automatically run when I click the shutdown menu. How do I make it do this?

  • IWeb RSS size

    I am currently hosting a blog using iWeb and MobileMe, but I would also like to import my blog into a few social networks. On the social networks I don't want to show the whole blog, but only a piece of it, so that when people want to read it all the

  • I am unable to update my 4S to OS7.

    I am unable to update my 4S to OS7.  It continually tells me that the update failed because i lost my internet connection.  I did NOT lose it though.  I also do not have a computer that can access iTunes.  Help!

  • Getting error while extending Region

    HI when I am trying to extend a region xxVacancyRN through personalization I am getting error oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) at ora