<?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: How do I concatenate 2 fields in an Open SQL Select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101504#M1360460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you execute the queery as written?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2009 14:38:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-01T14:38:37Z</dc:date>
    <item>
      <title>How do I concatenate 2 fields in an Open SQL Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101503#M1360459</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;I have an internal table (simplified) that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BEGIN OF t_konv,&lt;/P&gt;&lt;P&gt;              kwert_vprs TYPE kwert,&lt;/P&gt;&lt;P&gt;              knumv_kposn type char16,&lt;/P&gt;&lt;P&gt;      END OF t_konv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From an Open SQL Select statement I need to put kwert into kwert and I need to combine knumv and kposn into knumv_kposn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my select, but I do not know how to specify the last 2 fields as being concatenated into kmunv_kposn in my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT h&lt;SUB&gt;kwert h&lt;/SUB&gt;knumv h~kposn&lt;/P&gt;&lt;P&gt;  INTO TABLE it_konv&lt;/P&gt;&lt;P&gt;  FROM konv AS h&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN it_bil_sal&lt;/P&gt;&lt;P&gt;  WHERE h~knumv = it_bil_sal-knumv&lt;/P&gt;&lt;P&gt;    AND h~kposn = it_bil_sal-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101503#M1360459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T14:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I concatenate 2 fields in an Open SQL Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101504#M1360460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you execute the queery as written?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101504#M1360460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I concatenate 2 fields in an Open SQL Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101505#M1360461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a short dump:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    In a SELECT or FETCH command, the field string or internal table&lt;/P&gt;&lt;P&gt;    specified in the INTO clause has 9 fields. It must have&lt;/P&gt;&lt;P&gt;    at least as many fields as in the SELECT clause,&lt;/P&gt;&lt;P&gt;    10 fields in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101505#M1360461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T14:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I concatenate 2 fields in an Open SQL Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101506#M1360462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have to combine both fields into one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could select the data into a table with the correct attributes and then copy the table into another table wit the attributes you want. (ITAB1[] = itab2[].)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101506#M1360462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I concatenate 2 fields in an Open SQL Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101507#M1360463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now, concatenating them is my solution to some other issue, so yea, I'd like to make it work this way, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a thought...I could do as you try.  It just sucks that I can't do it in the select...it's so simple in ANSI SQL:&lt;/P&gt;&lt;P&gt;Select fielda || fieldb from...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your help, Rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 15:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-concatenate-2-fields-in-an-open-sql-select/m-p/6101507#M1360463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T15:05:49Z</dc:date>
    </item>
  </channel>
</rss>

