<?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: regarding transfering data to application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170526#M754469</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;  One long way is , TRANSFER  each field  to the file using offsets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER : wa_BUT00-field1  to  bp_file+0(10),&lt;/P&gt;&lt;P&gt;                       wa_BUT00-field2  to  bp_file+10(10),&lt;/P&gt;&lt;P&gt;                      wa_BUT00-field3  to  bp_file+20(10),&lt;/P&gt;&lt;P&gt;                      ..........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another  way is  concatenate all the fields into a field of char type and TRANSFER that Field to the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;   concatenate itab-field1  itab-field2 ...........into V_CHAR.&lt;/P&gt;&lt;P&gt;   TRANSFER V_CHAR  to bp_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 14:26:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T14:26:41Z</dc:date>
    <item>
      <title>regarding transfering data to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170523#M754466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables: BUT000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: t_but000 type but000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_but000 type standard table of t_but000,&lt;/P&gt;&lt;P&gt;      wa_but000 type t_but000.&lt;/P&gt;&lt;P&gt;data : BP_file(1000) type c.&lt;/P&gt;&lt;P&gt;constants: path_directory(18) type c value '/usr/sap/tmp/Bn_I7'.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;select * from but000&lt;/P&gt;&lt;P&gt;         into table it_but000&lt;/P&gt;&lt;P&gt;         where type  = '1' and&lt;/P&gt;&lt;P&gt;               crdat = sy-datum.&lt;/P&gt;&lt;P&gt;concatenate path_directory SY-DATUM into BP_file.&lt;/P&gt;&lt;P&gt;OPEN DATASET bp_file IN BINARY MODE FOR OUTPUT ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt; if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write: 'not able to open the file'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_but000 into wa_but000.&lt;/P&gt;&lt;P&gt;*transfer the data&lt;/P&gt;&lt;P&gt;  TRANSFER wa_but000 TO bp_file.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Above is my code when i run that it go to dump&lt;/P&gt;&lt;P&gt;my program got activated &lt;/P&gt;&lt;P&gt;when I press &lt;STRONG&gt;F8&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;1. my program go to dump with message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error analysis&lt;/P&gt;&lt;P&gt;   For the statement&lt;/P&gt;&lt;P&gt;      "TRANSFER f TO ..."&lt;/P&gt;&lt;P&gt;   only character-type data objects are supported at the argument position&lt;/P&gt;&lt;P&gt;   "f".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   In this case. the operand "f" has the non-character-type "T_BUT000". The&lt;/P&gt;&lt;P&gt;   current program is a Unicode program. In the Unicode context, the type&lt;/P&gt;&lt;P&gt;   'X' or structures containing not only character-type components are&lt;/P&gt;&lt;P&gt;   regarded as non-character-type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.I can see the file in application server, but when I go to open that file I get message as &lt;STRONG&gt;UNABLE TO DISPLAY THIS FILE&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 13:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170523#M754466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: regarding transfering data to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170524#M754467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. tranfer statement works olny for character values. if u ahve any values other than charater type, convert those values into character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. close the opened close with&lt;/P&gt;&lt;P&gt;  close dataset bp_file statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and file type should be of type sxpgcolist-parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bp_file TYPE sxpgcolist-parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 14:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170524#M754467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T14:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: regarding transfering data to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170525#M754468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can I convert the files datatype I have total 100 fields&lt;/P&gt;&lt;P&gt;and I extracted saying select * how can I find which is of  not char type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 14:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170525#M754468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T14:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: regarding transfering data to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170526#M754469</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;  One long way is , TRANSFER  each field  to the file using offsets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER : wa_BUT00-field1  to  bp_file+0(10),&lt;/P&gt;&lt;P&gt;                       wa_BUT00-field2  to  bp_file+10(10),&lt;/P&gt;&lt;P&gt;                      wa_BUT00-field3  to  bp_file+20(10),&lt;/P&gt;&lt;P&gt;                      ..........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another  way is  concatenate all the fields into a field of char type and TRANSFER that Field to the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;   concatenate itab-field1  itab-field2 ...........into V_CHAR.&lt;/P&gt;&lt;P&gt;   TRANSFER V_CHAR  to bp_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 14:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-transfering-data-to-application-server/m-p/3170526#M754469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T14:26:41Z</dc:date>
    </item>
  </channel>
</rss>

