<?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 Problem with column selection in GUI_DOWLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580237#M589952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to save data from an internal table to a DAT file using GUI_DOWLOAD. In this internal table, there are 2 colums that won't be downloaded so I call the FM this way :&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                = L_FILE&lt;/P&gt;&lt;P&gt;              FILETYPE                = 'DAT'&lt;/P&gt;&lt;P&gt;              COL_SELECT              = 'X'&lt;/P&gt;&lt;P&gt;              COL_SELECT_MASK          = V_COLSELECT&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              DATA_TAB                = TAB_OUT&lt;/P&gt;&lt;P&gt;              FIELDNAMES              = TAB_FIELDNAMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_COLSELECT contains an 'X' for each column I need to be downloaded and a space for the 2 other columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the result file, the columns that I didn't select don't appear BUT there are 2 columns with no header and filled with zeros at the right edge of the file. I don't know where these 2 columns come from. Maybe a problem with fieldnames but I'm not sure (in TAB_OUT, all columns are present but in TAB_FIELDNAMES there are only headers for the selected columns).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody have an idea, please just tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 12:55:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T12:55:51Z</dc:date>
    <item>
      <title>Problem with column selection in GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580237#M589952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to save data from an internal table to a DAT file using GUI_DOWLOAD. In this internal table, there are 2 colums that won't be downloaded so I call the FM this way :&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                = L_FILE&lt;/P&gt;&lt;P&gt;              FILETYPE                = 'DAT'&lt;/P&gt;&lt;P&gt;              COL_SELECT              = 'X'&lt;/P&gt;&lt;P&gt;              COL_SELECT_MASK          = V_COLSELECT&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              DATA_TAB                = TAB_OUT&lt;/P&gt;&lt;P&gt;              FIELDNAMES              = TAB_FIELDNAMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_COLSELECT contains an 'X' for each column I need to be downloaded and a space for the 2 other columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the result file, the columns that I didn't select don't appear BUT there are 2 columns with no header and filled with zeros at the right edge of the file. I don't know where these 2 columns come from. Maybe a problem with fieldnames but I'm not sure (in TAB_OUT, all columns are present but in TAB_FIELDNAMES there are only headers for the selected columns).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody have an idea, please just tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 12:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580237#M589952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with column selection in GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580238#M589953</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;Try to keep fields same in TAB_FIELDNAMES and TAB_OUT. because anyway you are using COL_SELECT_MASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are using COL_SELECT_MASK properly ie &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have 6 field in the TAB_OUT out of that you need to donwload 1,3,6 then your &lt;/P&gt;&lt;P&gt;COL_SELECT_MASK will be X X  X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 13:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580238#M589953</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-27T13:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with column selection in GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580239#M589954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a®s !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. That solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You get full points for that ^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-selection-in-gui-dowload/m-p/2580239#M589954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:46:01Z</dc:date>
    </item>
  </channel>
</rss>

