<?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 Error when defining a variable  other than CHAR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130705#M111613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting a syntax error when I define variables :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_arbei  type p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:  l_delim  type x  value '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message L_ARBEI must be a character-type field (data type C, N, D or T). an open control structure introduced by "INTERFACE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this problem.  Why can I not define these variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2006 08:23:52 GMT</pubDate>
    <dc:creator>aidaj_hilton</dc:creator>
    <dc:date>2006-01-19T08:23:52Z</dc:date>
    <item>
      <title>Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130705#M111613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting a syntax error when I define variables :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_arbei  type p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:  l_delim  type x  value '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message L_ARBEI must be a character-type field (data type C, N, D or T). an open control structure introduced by "INTERFACE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this problem.  Why can I not define these variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 08:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130705#M111613</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-01-19T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130706#M111614</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;where dpes this error occur?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think in defination step: I don't get this message in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 08:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130706#M111614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T08:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130707#M111615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jill,&lt;/P&gt;&lt;P&gt;   are you trying to use the value l_arbei in any operations like&lt;/P&gt;&lt;P&gt;concatenation, substring, replace, translate etc?&lt;/P&gt;&lt;P&gt;For those operations, all the fields used must be of C, N, D, T types only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 08:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130707#M111615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130708#M111616</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;it is not because of definition, it is because of your opertaions on the l_arbei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 09:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130708#M111616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T09:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130709#M111617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where does this error occurs .. coz when i tried the same code in my system, it didnt give me any error...so i think that its not because of this defintion, u might have used this code somewhere else in ur prog. n its the effect of that operation that u got this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 10:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130709#M111617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T10:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130710#M111618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax error is coming from the fact that you declared 'l_arbei' as type p, whereas the system is expecting it to be of the specified types wherever it is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change it to one of the types(in all probability, it will be N unless you need decimals) mentioned and you will be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 14:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130710#M111618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130711#M111619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: l_arbei  type p decimals 1,&lt;/P&gt;&lt;P&gt;      l_ismnw  type p decimals 1.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;  write w_ops-work_activity to l_arbei.  &lt;/P&gt;&lt;P&gt;  l_arbei = l_arbei - l_ismnw.           &lt;/P&gt;&lt;P&gt;  if l_arbei gt 0.                       &lt;/P&gt;&lt;P&gt;    write l_arbei to w_ops-work_activity.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned same error message when defining the following:&lt;/P&gt;&lt;P&gt;constants:  c_delim  type x value '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     split i_input1-line at c_delim into  &lt;/P&gt;&lt;P&gt;           w_hdr-orderid                  &lt;/P&gt;&lt;P&gt;           w_hdr-order_type.               &lt;/P&gt;&lt;P&gt;                                        &lt;/P&gt;&lt;P&gt;I agree that there should be no problem with the definitions. However cannot understand why it does not like it.  Thought there might be an additional requirement for Unicode systems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 20:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130711#M111619</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-01-19T20:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130712#M111620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes unicode system doesnot allow string based commands such as SPLIT to use hex characters as the delimiter. You can use the same command in non-unicode system successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 20:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130712#M111620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T20:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130713#M111621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.  I looked at &lt;/P&gt;&lt;P&gt;move f1 to l_arbei instead of write f1 to l_arbei and that got rid of the error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(f1 is a char field read from input file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still cannot understand the problem with &lt;/P&gt;&lt;P&gt;split f1 at c_delim into g1 g2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when delim is defined as constant type x value '09' though.  Obviously the problem occurs at this statement and not the original definition but not sure what the alternative is.  I need to split my input file at the tabs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 20:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130713#M111621</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-01-19T20:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130714#M111622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas.  Is there an alternative for splitting a tab delimited file other than changing input file to use a different delimiter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 20:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130714#M111622</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-01-19T20:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130715#M111623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SPLIT i_input1-line AT cl_abap_char_utilities=&amp;gt;horizontal_tab
 INTO w_hdr-orderid w_hdr-order_type.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 22:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130715#M111623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-19T22:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130716#M111624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Srinivas - Worked like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I correctly rewarded you.  Clicled on solved problem before I replied&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2006 23:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130716#M111624</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-01-19T23:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error when defining a variable  other than CHAR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130717#M111625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to be of help John, you got it correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 00:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-defining-a-variable-other-than-char/m-p/1130717#M111625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T00:06:02Z</dc:date>
    </item>
  </channel>
</rss>

