<?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 Open Dataset - Transfer to Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-transfer-to-problem/m-p/5128166#M1188934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I perform OPEN DATASET for INPUT in Text Mode with default encoding, and do transfer I encounter the following problems :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have to convert mandatorily all the Decimal fields of the Internal Table structure to Character.&lt;/P&gt;&lt;P&gt;    My Question is : Is it necessary???&lt;/P&gt;&lt;P&gt;2  When I perform transfer &amp;lt;var&amp;gt; to filename, the &amp;lt;var&amp;gt; length is 512 inspite of this it puts only 100 &lt;/P&gt;&lt;P&gt;    odd   characters. &lt;/P&gt;&lt;P&gt;    My Question : Am I doing something wrong???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : fname(80) VALUE '/bdcusers/test.dat'.&lt;/P&gt;&lt;P&gt; DATA : BEGIN OF i_tab,&lt;/P&gt;&lt;P&gt;         rcomponen(18),&lt;/P&gt;&lt;P&gt;         month1(30),  " these were actually : typedec 23- 5&lt;/P&gt;&lt;P&gt;         month2(30),&lt;/P&gt;&lt;P&gt;         month3(30),&lt;/P&gt;&lt;P&gt;         month4(30),&lt;/P&gt;&lt;P&gt;         month5(30),&lt;/P&gt;&lt;P&gt;         month6(30),&lt;/P&gt;&lt;P&gt;         month7(30),&lt;/P&gt;&lt;P&gt;         month8(30),&lt;/P&gt;&lt;P&gt;         month9(30),&lt;/P&gt;&lt;P&gt;         month10(30),&lt;/P&gt;&lt;P&gt;         month11(30),&lt;/P&gt;&lt;P&gt;         month12(30),&lt;/P&gt;&lt;P&gt;         total(30),&lt;/P&gt;&lt;P&gt;         srno(8),&lt;/P&gt;&lt;P&gt;       END OF i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET fname FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;      ENCODING DEFAULT.   "WITH SMART LINEFEED.&lt;/P&gt;&lt;P&gt;  LOOP AT it_data INTO i_data.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING i_data TO i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE i_tab-rcomponen i_tab-month1 i_tab-month2&lt;/P&gt;&lt;P&gt;     i_tab-month3 i_tab-month4 i_tab-month5 i_tab-month6&lt;/P&gt;&lt;P&gt;     i_tab-month7 i_tab-month8 i_tab-month9 i_tab-month10&lt;/P&gt;&lt;P&gt;     i_tab-month11 i_tab-month12 i_tab-total i_tab-srno&lt;/P&gt;&lt;P&gt;     INTO xtab SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSFER i_tab TO fname.  " LENGTH 1024.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET fname.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Any help in this regard will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;JGupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2009 05:34:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-30T05:34:20Z</dc:date>
    <item>
      <title>Open Dataset - Transfer to Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-transfer-to-problem/m-p/5128166#M1188934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I perform OPEN DATASET for INPUT in Text Mode with default encoding, and do transfer I encounter the following problems :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have to convert mandatorily all the Decimal fields of the Internal Table structure to Character.&lt;/P&gt;&lt;P&gt;    My Question is : Is it necessary???&lt;/P&gt;&lt;P&gt;2  When I perform transfer &amp;lt;var&amp;gt; to filename, the &amp;lt;var&amp;gt; length is 512 inspite of this it puts only 100 &lt;/P&gt;&lt;P&gt;    odd   characters. &lt;/P&gt;&lt;P&gt;    My Question : Am I doing something wrong???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : fname(80) VALUE '/bdcusers/test.dat'.&lt;/P&gt;&lt;P&gt; DATA : BEGIN OF i_tab,&lt;/P&gt;&lt;P&gt;         rcomponen(18),&lt;/P&gt;&lt;P&gt;         month1(30),  " these were actually : typedec 23- 5&lt;/P&gt;&lt;P&gt;         month2(30),&lt;/P&gt;&lt;P&gt;         month3(30),&lt;/P&gt;&lt;P&gt;         month4(30),&lt;/P&gt;&lt;P&gt;         month5(30),&lt;/P&gt;&lt;P&gt;         month6(30),&lt;/P&gt;&lt;P&gt;         month7(30),&lt;/P&gt;&lt;P&gt;         month8(30),&lt;/P&gt;&lt;P&gt;         month9(30),&lt;/P&gt;&lt;P&gt;         month10(30),&lt;/P&gt;&lt;P&gt;         month11(30),&lt;/P&gt;&lt;P&gt;         month12(30),&lt;/P&gt;&lt;P&gt;         total(30),&lt;/P&gt;&lt;P&gt;         srno(8),&lt;/P&gt;&lt;P&gt;       END OF i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET fname FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;      ENCODING DEFAULT.   "WITH SMART LINEFEED.&lt;/P&gt;&lt;P&gt;  LOOP AT it_data INTO i_data.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING i_data TO i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE i_tab-rcomponen i_tab-month1 i_tab-month2&lt;/P&gt;&lt;P&gt;     i_tab-month3 i_tab-month4 i_tab-month5 i_tab-month6&lt;/P&gt;&lt;P&gt;     i_tab-month7 i_tab-month8 i_tab-month9 i_tab-month10&lt;/P&gt;&lt;P&gt;     i_tab-month11 i_tab-month12 i_tab-total i_tab-srno&lt;/P&gt;&lt;P&gt;     INTO xtab SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSFER i_tab TO fname.  " LENGTH 1024.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET fname.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Any help in this regard will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;JGupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 05:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-transfer-to-problem/m-p/5128166#M1188934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T05:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset - Transfer to Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-transfer-to-problem/m-p/5128167#M1188935</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;1. You can use this FM HR_99S_COPY_STRUC1_STRUC2  to convert the intrenal table wa to string type.From this you can overcome converting decimal fields to char fields. If ypu try to transfer the decimal fileds then it gives short dump so you need to convert to char type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Regarding the number characters getting dispayed in the AL11 is restricted upon  the configuration to how much to display. Try to download the same file after upload and check wether all the data is getting downloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Avinash Kodarapu on Jan 30, 2009 11:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 05:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-transfer-to-problem/m-p/5128167#M1188935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T05:43:39Z</dc:date>
    </item>
  </channel>
</rss>

