<?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 in GUI_DOWNLOAD Function. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220170#M767950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;try to use field separator..then spaces will be maintained... &lt;/P&gt;&lt;P&gt;&amp;gt; CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;&amp;gt;       EXPORTING&lt;/P&gt;&lt;P&gt;&amp;gt; *   BIN_FILESIZE                    =&lt;/P&gt;&lt;P&gt;&amp;gt;         filename                        = i_file&lt;/P&gt;&lt;P&gt;&amp;gt;        filetype                        = 'ASC'&lt;/P&gt;&lt;P&gt;&amp;gt;        append                          = ' '&lt;/P&gt;&lt;P&gt;        write_field_separator       = 'X '&lt;/P&gt;&lt;P&gt;&amp;gt;        header                          = '00'&lt;/P&gt;&lt;P&gt;&amp;gt;        trunc_trailing_blanks           = ' '&lt;/P&gt;&lt;P&gt;&amp;gt;        write_lf                        = 'X'&lt;/P&gt;&lt;P&gt;&amp;gt; TABLES&lt;/P&gt;&lt;P&gt;&amp;gt;         data_tab                        = i_data_tab&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I use the most standard settings.&lt;/P&gt;&lt;P&gt;&amp;gt; Kindly suggest how can I  get the required output.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Dec 2007 16:40:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-29T16:40:34Z</dc:date>
    <item>
      <title>Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220168#M767948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am trying to do is to download data in a file from a  BAPI&lt;/P&gt;&lt;P&gt;structure and make a flat file with this format and&lt;/P&gt;&lt;P&gt;then try to upload the same data in different client&lt;/P&gt;&lt;P&gt;via LSMW.&lt;/P&gt;&lt;P&gt;What happens is that I get the download of the file&lt;/P&gt;&lt;P&gt;contents but the spacing of the characters have&lt;/P&gt;&lt;P&gt;shifted and so when I run the same file in LSMW the&lt;/P&gt;&lt;P&gt;values of the fields do not appear consistent.&lt;/P&gt;&lt;P&gt;Ours is a unicode system ecc 6.0 and when i go in&lt;/P&gt;&lt;P&gt;debugger I see the values in consistent format but&lt;/P&gt;&lt;P&gt;when it comes to download it changes .&lt;/P&gt;&lt;P&gt;kindly please suggest something.&lt;/P&gt;&lt;P&gt;I also tried to write the file directly with open&lt;/P&gt;&lt;P&gt;dataset for output but in that also I get an error&lt;/P&gt;&lt;P&gt;regarding encoding.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        filename                        = i_file&lt;/P&gt;&lt;P&gt;       filetype                        = 'ASC'&lt;/P&gt;&lt;P&gt;       append                          = ' '&lt;/P&gt;&lt;P&gt;       write_field_separator           = ' '&lt;/P&gt;&lt;P&gt;       header                          = '00'&lt;/P&gt;&lt;P&gt;       trunc_trailing_blanks           = ' '&lt;/P&gt;&lt;P&gt;       write_lf                        = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;        data_tab                        = i_data_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the most standard settings.&lt;/P&gt;&lt;P&gt;Kindly suggest how can I  get the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 13:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220168#M767948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T13:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220169#M767949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sohail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function modules for upload/download are not Unicode-compatible. Instead use the corresponding static methods of class &lt;STRONG&gt;CL_GUI_FRONTEND_SERVICES&lt;/STRONG&gt; (GUI_UPLOAD, GUI_DOWNLOAD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 15:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220169#M767949</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-29T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220170#M767950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;try to use field separator..then spaces will be maintained... &lt;/P&gt;&lt;P&gt;&amp;gt; CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;&amp;gt;       EXPORTING&lt;/P&gt;&lt;P&gt;&amp;gt; *   BIN_FILESIZE                    =&lt;/P&gt;&lt;P&gt;&amp;gt;         filename                        = i_file&lt;/P&gt;&lt;P&gt;&amp;gt;        filetype                        = 'ASC'&lt;/P&gt;&lt;P&gt;&amp;gt;        append                          = ' '&lt;/P&gt;&lt;P&gt;        write_field_separator       = 'X '&lt;/P&gt;&lt;P&gt;&amp;gt;        header                          = '00'&lt;/P&gt;&lt;P&gt;&amp;gt;        trunc_trailing_blanks           = ' '&lt;/P&gt;&lt;P&gt;&amp;gt;        write_lf                        = 'X'&lt;/P&gt;&lt;P&gt;&amp;gt; TABLES&lt;/P&gt;&lt;P&gt;&amp;gt;         data_tab                        = i_data_tab&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I use the most standard settings.&lt;/P&gt;&lt;P&gt;&amp;gt; Kindly suggest how can I  get the required output.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 16:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220170#M767950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T16:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220171#M767951</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;you can set the default codepage for upload/download in the SAPLogon as described in the &lt;STRONG&gt;SAP Note Number: 765763&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP GUI and the server are enhanced in such a way that the user can specify his codepage of choice in the SAPLogon dialog in the connection's advanced properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 17:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220171#M767951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T17:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220172#M767952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Thanks for your prompt replies, I tried all the options that each one told but still I am facing the same problem.&lt;/P&gt;&lt;P&gt;I am not able to download the file in the correct format.&lt;/P&gt;&lt;P&gt;Please do help me if you have any thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Sohail Mansuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 23:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220172#M767952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T23:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220173#M767953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sohail,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably the structure i_data_tab contains non-character fields. Please give more details.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 00:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220173#M767953</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-12-30T00:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220174#M767954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Clemens,&lt;/P&gt;&lt;P&gt;It does contain DATs and NUMC fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 00:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220174#M767954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T00:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_DOWNLOAD Function.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220175#M767955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sohail,&lt;/P&gt;&lt;P&gt;&amp;gt; It does contain DATs and NUMC fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As DATS and NUMC are represented as character fields, this should not be the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd rather suspect that the BAPI structure of the download is different from the LSMW structure expected for input. This is very common with BAPIs that the output structures from BAPI...GET_DETAIL are a litle bit different from the input structures. First check the structures!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may give us more details on structure names and/or fields.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 10:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-download-function/m-p/3220175#M767955</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-12-30T10:46:03Z</dc:date>
    </item>
  </channel>
</rss>

