<?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: Problem with Column header through GUI_DOWLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110584#M106060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Using GUI_download you can't solve your problem because it is condensing the fieldnames and it is also fixing the size to 10 if it is greater then 10 in fm it is reset to 10.&lt;/P&gt;&lt;P&gt;try seeing other fm .&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;manohar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2005 10:18:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-26T10:18:10Z</dc:date>
    <item>
      <title>Problem with Column header through GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110581#M106057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Iam facing a peculiar problem when using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;TO download a header, iam using a MACRO which is as follows:&lt;/P&gt;&lt;P&gt;DEFINE add_field_header.&lt;/P&gt;&lt;P&gt;  clear &amp;amp;1.&lt;/P&gt;&lt;P&gt;  &amp;amp;1-field = &amp;amp;2.&lt;/P&gt;&lt;P&gt;  append &amp;amp;1.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling GUI_DOWNLOAD, iam filling the header as follows:&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Record.No'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Lic.Type'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Ext.Lic.No'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Lic.Text'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Valid.From'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Valid.to'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Customer'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Vendor'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Cust.Grp'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Material'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Mat.Grp'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Country'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Region'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'County'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'City'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Mode.of.Transport'.&lt;/P&gt;&lt;P&gt;  add_field_header lt_fieldnames 'Jurisdiction'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, iam calling the Funcrtion module as follows:&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      FILENAME                = lw_filepath&lt;/P&gt;&lt;P&gt;      FILETYPE                = 'DBF'&lt;/P&gt;&lt;P&gt;      WRITE_FIELD_SEPARATOR   = gc_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB                = GT_OIHL_ERROR_AS&lt;/P&gt;&lt;P&gt;      FIELDNAMES              = lt_fieldnames&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the output excel file has header which is only 10 characters long... Ex:'Jurisdiction' is getting truncated to 'Jurisdicti'...&lt;/P&gt;&lt;P&gt;Moreover, any spaces between the words are getting removed. Example: If i give 'Record Number' it is printing it as 'RecordNumber' in the excel file in the header.&lt;/P&gt;&lt;P&gt;Is there any way by which i can avoid the truncation as well as retain the spaces ?&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 06:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110581#M106057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T06:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Column header through GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110582#M106058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say your itab has 5 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then create a structure like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_header occurs 0,&lt;/P&gt;&lt;P&gt;      col1(100),&lt;/P&gt;&lt;P&gt;      col2(100),&lt;/P&gt;&lt;P&gt;      col3(100 ,&lt;/P&gt;&lt;P&gt;      col4(100) ,&lt;/P&gt;&lt;P&gt;      col5(100) ,&lt;/P&gt;&lt;P&gt;     end of wa_header .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now fill wa_header with header text.&lt;/P&gt;&lt;P&gt;move: 'Column1 heading' to wa_header-col1 ,&lt;/P&gt;&lt;P&gt;      'Column2 heading' to wa_header-col2 ,&lt;/P&gt;&lt;P&gt;      ....&lt;/P&gt;&lt;P&gt;      'Column5 heading' to wa_header-col5 .&lt;/P&gt;&lt;P&gt;append wa_header .&lt;/P&gt;&lt;P&gt;now download wa_header using GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then download the actual itab (with data) using GUI_DOWNLOAD with APPEND = 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 07:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110582#M106058</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-10-26T07:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Column header through GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110583#M106059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried this before, but since i am downloading in DBF format, it is giving an header F1, F2, .... &lt;/P&gt;&lt;P&gt;Any other way out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 08:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110583#M106059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T08:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Column header through GUI_DOWLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110584#M106060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Using GUI_download you can't solve your problem because it is condensing the fieldnames and it is also fixing the size to 10 if it is greater then 10 in fm it is reset to 10.&lt;/P&gt;&lt;P&gt;try seeing other fm .&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;manohar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 10:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-column-header-through-gui-dowload/m-p/1110584#M106060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T10:18:10Z</dc:date>
    </item>
  </channel>
</rss>

