<?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: save string data type text in the application server file opened in binary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682484#M1291601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot open the text file in text mode since the other data which contains TAB_X table is in byte mode.&lt;/P&gt;&lt;P&gt;I need to convert that string into byte mode which is not happening I think. Is there any other solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2009 10:41:57 GMT</pubDate>
    <dc:creator>Madhurivs23</dc:creator>
    <dc:date>2009-06-02T10:41:57Z</dc:date>
    <item>
      <title>save string data type text in the application server file opened in binary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682482#M1291599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to save the string "abcd    23432423   asdada" to the text file in the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written like this. but its not getting saved properly in the text file. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  constants X_LINESIZE type I value 128.
  types X_LINETYPE type X length X_LINESIZE.
data: WA_TAB_X type X_LINETYPE.
  data: str1(64) type C.
  data: WA_TAB_X_HDR1 type xstring.

  str1 = 'abcd    23432423   asdada'.
  CONVERT TEXT STR1 INTO SORTABLE CODE WA_TAB_X_HDR1.
  concatenate F_FILENAME1 SY-SYSID F_FILENAME2 '/' TAB_REGUT-TSNAM '.TXT' into F_FILENAME1.
  open dataset F_FILENAME1 for output in binary mode .
  if SY-SUBRC = 0.
    transfer WA_TAB_X_HDR to F_FILENAME1.
    loop at TAB_X into WA_TAB_X.
      transfer WA_TAB_X to F_FILENAME1.
    endloop.
  endif.
  close dataset F_FILENAME1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: madhuri sonawane on Jun 2, 2009 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682482#M1291599</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2009-06-02T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: save string data type text in the application server file opened in binary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682483#M1291600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhuri,&lt;/P&gt;&lt;P&gt;           try with &lt;/P&gt;&lt;P&gt;OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682483#M1291600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T10:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: save string data type text in the application server file opened in binary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682484#M1291601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot open the text file in text mode since the other data which contains TAB_X table is in byte mode.&lt;/P&gt;&lt;P&gt;I need to convert that string into byte mode which is not happening I think. Is there any other solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682484#M1291601</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2009-06-02T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: save string data type text in the application server file opened in binary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682485#M1291602</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;constants X_LINESIZE type I value 128.&lt;/P&gt;&lt;P&gt;  types X_LINETYPE type X length X_LINESIZE.&lt;/P&gt;&lt;P&gt;data: WA_TAB_X type X_LINETYPE.&lt;/P&gt;&lt;P&gt;  data: str1(64) type C.&lt;/P&gt;&lt;P&gt;  data: WA_TAB_X_HDR1 type xstring.&lt;/P&gt;&lt;P&gt;data : file (1000) type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  str1 = 'abcd    23432423   asdada'.&lt;/P&gt;&lt;P&gt;  CONVERT TEXT STR1 INTO SORTABLE CODE WA_TAB_X_HDR1.&lt;/P&gt;&lt;P&gt;  concatenate F_FILENAME1 SY-SYSID F_FILENAME2 '/' TAB_REGUT-TSNAM '.TXT' into F_FILENAME1.&lt;/P&gt;&lt;P&gt;  open dataset &lt;STRONG&gt;file&lt;/STRONG&gt; for output in binary mode .&lt;/P&gt;&lt;P&gt;  if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    transfer WA_TAB_X_HDR to file.&lt;/P&gt;&lt;P&gt;    loop at TAB_X into WA_TAB_X.&lt;/P&gt;&lt;P&gt;      transfer WA_TAB_X to file&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  close dataset file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Munibabu.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 06:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-string-data-type-text-in-the-application-server-file-opened-in-binary/m-p/5682485#M1291602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T06:09:57Z</dc:date>
    </item>
  </channel>
</rss>

