<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error in excel upload on Application server using CG3Z in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040294#M1172045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your exact requirement ? If you want to upload a file to application server , use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_data ( internal table containing data)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TRANSFER t_data TO file_name.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do check the innumerable threads on SDN !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2009 11:27:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-20T11:27:36Z</dc:date>
    <item>
      <title>Error in excel upload on Application server using CG3Z</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040293#M1172044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to upload Excel using on Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it with CG3Z but Using AL11 when i view iy, Showing Lot of ##############.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to get excel data into my program also. But it is giving Dump while writing following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OPEN DATASET GV_FILENAME FOR INPUT IN text MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      READ DATASET GV_FILENAME INTO GT_FILEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        APPEND GT_FILEDATA.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ELSEIF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e005(ZCORP).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET GV_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, how to upload excel file correctly in Application Server and how to call it in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards'&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040293#M1172044</guid>
      <dc:creator>mohit_bansal3</dc:creator>
      <dc:date>2009-01-20T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error in excel upload on Application server using CG3Z</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040294#M1172045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your exact requirement ? If you want to upload a file to application server , use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_data ( internal table containing data)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TRANSFER t_data TO file_name.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do check the innumerable threads on SDN !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 11:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040294#M1172045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error in excel upload on Application server using CG3Z</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040295#M1172046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The # symbol is the delimiter which seperates the data in the two consecutive cells in an excel when u see in the appl server.&lt;/P&gt;&lt;P&gt;when u go to the next cell with out writing any thing in the excel , even then it adds another # to the data in appl server..&lt;/P&gt;&lt;P&gt;and if no data is present in 2 and 2rd cell but present in only 1 and 4 then it gives 1st ###4th.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u download the file from al11 on to ur system into an excel file then it will generate correctly, use &lt;/P&gt;&lt;P&gt;Function module ARCHIVFILE_SERVER_TO_CLIENT  and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls revert back if more information is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 13:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040295#M1172046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error in excel upload on Application server using CG3Z</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040296#M1172047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi....&lt;/P&gt;&lt;P&gt;   go through the sample code to upload file from presentation to application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zupl_presentation_to_appl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local data ----------------------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_filelength      TYPE i.&lt;/P&gt;&lt;P&gt;types : begin of ty_dt_tab,&lt;/P&gt;&lt;P&gt;         txt(4096) TYPE c,&lt;/P&gt;&lt;P&gt;      end of ty_dt_tab.&lt;/P&gt;&lt;P&gt;DATA : lt_input TYPE ty_dt_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;       wa_input TYPE ty_dt_tab.&lt;/P&gt;&lt;P&gt;DATA: l_filename        TYPE string.&lt;/P&gt;&lt;P&gt;DATA: l_auth_filename   LIKE authb-filename,&lt;/P&gt;&lt;P&gt;      e_flg_open_error  TYPE  boolean,&lt;/P&gt;&lt;P&gt;      e_os_message      TYPE  c,&lt;/P&gt;&lt;P&gt;      success(1),&lt;/P&gt;&lt;P&gt;      lv_string TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;wa&amp;gt; type ty_dt_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;  sabc_act_read(4)               VALUE 'READ',&lt;/P&gt;&lt;P&gt;  sabc_act_write(5)              VALUE 'WRITE'.&lt;/P&gt;&lt;P&gt;CONSTANTS: lc_fileformat_ascii         LIKE rlgrap-filetype&lt;/P&gt;&lt;P&gt;                                       VALUE 'ASC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: lc_fileformat_binary        LIKE rlgrap-filetype&lt;/P&gt;&lt;P&gt;                                       VALUE 'BIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : frnt_end TYPE rcgfiletr-ftfront,     "Front end path&lt;/P&gt;&lt;P&gt;             appl_ser TYPE rcgfiletr-ftappl,      "Application server path&lt;/P&gt;&lt;P&gt;             overwrit TYPE c AS CHECKBOX.         "Overwrite&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function body -------------------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;init&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  e_flg_open_error = ' '.&lt;/P&gt;&lt;P&gt;  CLEAR: e_os_message,success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_filename = frnt_end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check the authority to write the file to the application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_auth_filename = appl_ser.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'AUTHORITY_CHECK_DATASET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PROGRAM          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            activity         = sabc_act_write&lt;/P&gt;&lt;P&gt;            filename         = l_auth_filename&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_authority     = 1&lt;/P&gt;&lt;P&gt;            activity_unknown = 2&lt;/P&gt;&lt;P&gt;            OTHERS           = 3.&lt;/P&gt;&lt;P&gt;  IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;    CASE sy-subrc.&lt;/P&gt;&lt;P&gt;      WHEN 1.&lt;/P&gt;&lt;P&gt;        STOP.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      no auhtority&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     RAISE ap_no_authority.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        STOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     RAISE ap_file_open_error.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open the file on the application server for reading to check if the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;file exists on the application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      OPEN DATASET appl_ser FOR INPUT MESSAGE e_os_message&lt;/P&gt;&lt;P&gt;                   IN TEXT MODE ENCODING NON-UNICODE.&lt;/P&gt;&lt;P&gt;      IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;        IF overwrit = ' '.&lt;/P&gt;&lt;P&gt;          CLOSE DATASET appl_ser.&lt;/P&gt;&lt;P&gt;          STOP.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      CLOSE DATASET appl_ser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  catch exceptions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CATCH cx_root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BREAK-POINT.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open dataset for writing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET appl_ser FOR OUTPUT MESSAGE e_os_message&lt;/P&gt;&lt;P&gt;               IN TEXT MODE ENCODING NON-UNICODE.&lt;/P&gt;&lt;P&gt;  IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; e_flg_open_error = true.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lv_string = frnt_end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         filename                = lv_string&lt;/P&gt;&lt;P&gt;         filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;         has_field_separator     = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       filelength              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       header                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        data_tab                = lt_input&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;         file_open_error         = 1&lt;/P&gt;&lt;P&gt;         file_read_error         = 2&lt;/P&gt;&lt;P&gt;         no_batch                = 3&lt;/P&gt;&lt;P&gt;         gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;         invalid_type            = 5&lt;/P&gt;&lt;P&gt;         no_authority            = 6&lt;/P&gt;&lt;P&gt;         unknown_error           = 7&lt;/P&gt;&lt;P&gt;         bad_data_format         = 8&lt;/P&gt;&lt;P&gt;         header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;         separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;         header_too_long         = 11&lt;/P&gt;&lt;P&gt;         unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;         access_denied           = 13&lt;/P&gt;&lt;P&gt;         dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;         disk_full               = 15&lt;/P&gt;&lt;P&gt;         dp_timeout              = 16&lt;/P&gt;&lt;P&gt;         not_supported_by_gui    = 17&lt;/P&gt;&lt;P&gt;         error_no_gui            = 18&lt;/P&gt;&lt;P&gt;         OTHERS                  = 19&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      stop.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  write the file to the application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT lt_input ASSIGNING &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;      TRANSFER &amp;lt;wa&amp;gt; TO appl_ser.&lt;/P&gt;&lt;P&gt;      success = 'X'.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  close the dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CLOSE DATASET appl_ser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF success = 'X'.&lt;/P&gt;&lt;P&gt;      CLEAR success .&lt;/P&gt;&lt;P&gt;      MESSAGE 'successfully uploaded.' TYPE 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 13:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-excel-upload-on-application-server-using-cg3z/m-p/5040296#M1172047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T13:11:55Z</dc:date>
    </item>
  </channel>
</rss>

