<?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 Concatenating a string to a integer variable.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264975#M780199</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;Could anyone of you clarrify whether 'concatenate' could be used to append a string to a integer (int4) variable..?&lt;/P&gt;&lt;P&gt;If not which keyword should be used to add a string variable to integer variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jan 2008 13:56:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-01T13:56:56Z</dc:date>
    <item>
      <title>Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264975#M780199</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;Could anyone of you clarrify whether 'concatenate' could be used to append a string to a integer (int4) variable..?&lt;/P&gt;&lt;P&gt;If not which keyword should be used to add a string variable to integer variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2008 13:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264975#M780199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-01T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264976#M780200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you need to that? Just use a STRING variable...Integer variables are not supposed to hold char values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2008 14:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264976#M780200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-01T14:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264977#M780201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: lv_int type i value '04',&lt;/P&gt;&lt;P&gt;        lv_char type char4 value 'Abap',&lt;/P&gt;&lt;P&gt;        lv_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use it as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_int lv_char into lv_string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2008 15:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264977#M780201</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-01T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264978#M780202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SINDHURI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one of the ABAP features is implicit type conversion.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    lv_string type string,
    lv_int type i.

lv_string = '575'.
lv_int = 5.
lv_int = lv_int + lv_string.
lv_string = lv_string + lv_int.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works good. Did you  even try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to concatenate, you should first put the values into string or character variables and then concatenate them. There is no type conversion within concatenate. Concatenate is for strings and characters.&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>Tue, 01 Jan 2008 16:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264978#M780202</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-01-01T16:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264979#M780203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : n_val TYPE N, &lt;/P&gt;&lt;P&gt;            s_val TYPE STRING VALUE 'PO',&lt;/P&gt;&lt;P&gt;             i_val TYPE INTEGER VALUE 40,&lt;/P&gt;&lt;P&gt;             result  TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n_val = ival.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE n_val s_val INTO result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 15:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264979#M780203</guid>
      <dc:creator>former_member301966</dc:creator>
      <dc:date>2010-04-16T15:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264980#M780204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You will Not Concatenate String or Character type with Integer type.&lt;/P&gt;&lt;P&gt;You can conatenate by moving integer type to character type . because cocatenate only work with character type variables.&lt;/P&gt;&lt;P&gt;You can Directly add string variable to a integer variable but provide that  alphabets and special character should not appeae in that if appeared it goes to dump.&lt;/P&gt;&lt;P&gt;I hope this clarifies you doubt.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 16:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264980#M780204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T16:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264981#M780205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before anyone else answers, look at the date of the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 16:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264981#M780205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T16:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string to a integer variable..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264982#M780206</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;Its not permitted to concatenate the integer value directly with string. Instead you can move the integer value to a string and use concatenate of string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;Data v_count type i,&lt;/P&gt;&lt;P&gt;        v_string type string,&lt;/P&gt;&lt;P&gt;        v_value type string value 'abap',&lt;/P&gt;&lt;P&gt;        v_final  type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_count = 68.&lt;/P&gt;&lt;P&gt;v_string = v_count.&lt;/P&gt;&lt;P&gt;concatenate v_value v_string into v_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;abap68&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 06:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-a-string-to-a-integer-variable/m-p/3264982#M780206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-06T06:31:25Z</dc:date>
    </item>
  </channel>
</rss>

