<?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: DATA MISSING WHILE USING gui_download in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721660#M1455536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested but this is also not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 06:40:57 GMT</pubDate>
    <dc:creator>vallamuthu_madheswaran2</dc:creator>
    <dc:date>2010-03-15T06:40:57Z</dc:date>
    <item>
      <title>DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721656#M1455532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Genius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I'm getting data from DB table(BSIS &amp;amp; BKPF) and downloading in excel using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;    some data is missing in that excel.  I checked it in debugging mode. before executing the FM the internal table has 44157 data.&lt;/P&gt;&lt;P&gt;    after downloading the XL has 43708 data. how to solve it. the FM is given below&lt;/P&gt;&lt;P&gt;DATA: lv_file TYPE string.&lt;/P&gt;&lt;P&gt;    CONCATENATE full_path '.xls' INTO lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = lv_file&lt;/P&gt;&lt;P&gt;        filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;        append                  = 'X'&lt;/P&gt;&lt;P&gt;        write_field_separator   = 'X'&lt;/P&gt;&lt;P&gt;        confirm_overwrite       = 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = gt_main&lt;/P&gt;&lt;P&gt;        fieldnames              = i_final&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_write_error        = 1&lt;/P&gt;&lt;P&gt;        no_batch                = 2&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;        invalid_type            = 4&lt;/P&gt;&lt;P&gt;        no_authority            = 5&lt;/P&gt;&lt;P&gt;        unknown_error           = 6&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;        filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;        header_too_long         = 10&lt;/P&gt;&lt;P&gt;        dp_error_create         = 11&lt;/P&gt;&lt;P&gt;        dp_error_send           = 12&lt;/P&gt;&lt;P&gt;        dp_error_write          = 13&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;        access_denied           = 15&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;        disk_full               = 17&lt;/P&gt;&lt;P&gt;        dp_timeout              = 18&lt;/P&gt;&lt;P&gt;        file_not_found          = 19&lt;/P&gt;&lt;P&gt;        dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;        control_flush_error     = 21&lt;/P&gt;&lt;P&gt;        OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu.M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vallamuthu madheswaran on Mar 12, 2010 3:44 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vallamuthu madheswaran on Mar 12, 2010 3:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 10:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721656#M1455532</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2010-03-12T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721657#M1455533</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;&lt;/P&gt;&lt;P&gt;just check this program and compare with ur program ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT ZDOWNLOAD.
DATA: lo_gui TYPE REF TO cl_gui_frontend_services,
lv_title TYPE string,
lv_folder TYPE string,
lv_dir TYPE string,
v_filetype TYPE string,
v_filename TYPE string,
lv_filename type string.

DATA:
BEGIN OF ITAB OCCURS 0,
PLNTY TYPE PLKO-PLNTY,
WERKS TYPE PLKO-WERKS,
KTEXT TYPE PLKO-KTEXT,
END OF ITAB.

SELECTION-SCREEN BEGIN of BLOCK layar2 WITH FRAME TITLE judul2.
PARAMETER P_file like RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK layar2.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM f_browse CHANGING p_file.

START-OF-SELECTION.

PERFORM Z_CONVERT_EXCEL.

form f_browse CHANGING fc_file.
DATA: lo_gui TYPE REF TO cl_gui_frontend_services,
lv_title TYPE string,
lv_folder TYPE string,
lv_dir TYPE string.

CREATE OBJECT lo_gui.
lv_title = 'Define download location'.
lv_folder = 'C:'.
CALL METHOD lo_gui-&amp;gt;directory_browse
EXPORTING
window_title    = lv_title
initial_folder  = lv_folder
CHANGING
selected_folder = lv_dir.
fc_file = lv_dir.

endform.

FORM Z_CONVERT_EXCEL .

"This part of code to add column name in the downloaded file.

data : begin of int_head occurs 0,
Filed1(20) type c,                     " Header Data
end of int_head.

int_head-Filed1 = 'PLTNY'.
APPEND int_head.
CLEAR int_head.

int_head-Filed1 = 'WERKS'.
APPEND int_head.
CLEAR int_head.

int_head-Filed1 = 'KTEXT'.
APPEND int_head.
CLEAR int_head.

Select plnty werks ktext from plko into CORRESPONDING FIELDS OF TABLE itab
Where plnty = 'Q' .

v_filetype = '.xls'. "I just manipulate the file name using XLS file type.
v_filename = p_file.
CONCATENATE p_file v_filetype INTO lv_filename.

CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename                = lv_filename
filetype                = 'ASC'
write_field_separator   = 'X'
TABLES
data_tab                = ITAB
FIELDNAMES              = int_head
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 &amp;lt;&amp;gt; 0.

ENDIF.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bhavana Amar on Mar 12, 2010 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 10:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721657#M1455533</guid>
      <dc:creator>former_member233090</dc:creator>
      <dc:date>2010-03-12T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721658#M1455534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 06:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721658#M1455534</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2010-03-15T06:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721659#M1455535</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;Download the file as .txt, all the records will be downloaded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE full_path '.txt' INTO lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 06:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721659#M1455535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721660#M1455536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested but this is also not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 06:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721660#M1455536</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2010-03-15T06:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721661#M1455537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED MYSELF. IF THERE IS ANY SPECIAL CHARACTERS IN TEXT FIELD IT WONT DOWNLOAD THAT PARTICULAR LINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 04:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721661#M1455537</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2010-03-17T04:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: DATA MISSING WHILE USING gui_download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721662#M1455538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; Can you tell me how you have reloved this issue.I am also facing the same problem while downloading the &lt;/P&gt;&lt;P&gt;internal table data into excel sheet using GUI_DOWNLOAD ....when the system finds some special character &lt;/P&gt;&lt;P&gt;the line is got deleted from the excel sheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-missing-while-using-gui-download/m-p/6721662#M1455538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T13:04:48Z</dc:date>
    </item>
  </channel>
</rss>

