<?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: appending specific rows to specific columns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679605#M30191</link>
    <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;i have tried it and it is not working the after WHEN after the case when need to put a 'XXXX' and this will not suit my criteria.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 14:14:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-06-28T14:14:53Z</dc:date>
    <item>
      <title>appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679602#M30188</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/166485-jen.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;I am trying to separate the column 1 to two column number 2 and 3 .&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;my criteria is simple and depending on current date, e.g &lt;STRONG&gt;if the lo_date (wt_exdt) =&amp;gt; sy-datum&lt;/STRONG&gt;&lt;STRONG&gt; select wt_date into 2 &lt;/STRONG&gt;..... ....&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;else ,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;select wt_date into 3&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;unfortunately it is not working , can you please guide me to achieve this.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; many thanks in advance.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Jenie&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679602#M30188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-28T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679603#M30189</link>
      <description>&lt;P&gt;Use CASE in the SELECT list.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abensql_case.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abensql_case.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679603#M30189</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-28T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679604#M30190</link>
      <description>&lt;P&gt;can you clear this more i think CASE is sql statement,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;do you have please a doc or a short example for this for select and case together .&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679604#M30190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-28T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679605#M30191</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;i have tried it and it is not working the after WHEN after the case when need to put a 'XXXX' and this will not suit my criteria.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679605#M30191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-28T14:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679606#M30192</link>
      <description>&lt;P&gt;Maybe share a bit of your coding so we can maybe see what can be corrected.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679606#M30192</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2018-06-28T14:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679607#M30193</link>
      <description>&lt;P&gt;Yes, follow the link I gave above.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679607#M30193</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-28T14:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679608#M30194</link>
      <description>&lt;P&gt;Sorry, I do not understand.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679608#M30194</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-28T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679609#M30195</link>
      <description>&lt;P&gt;I think what Jennifer want is something like this (just an image, not working code):&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT wt_date FROM dbtab WHERE CASE wt_exdt WHEN =&amp;gt; sy-datum THEN INTO wt_date1
 							      ELSE INTO wt_date2. &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;with CASE in SQL you have to put a value after WHEN but she want to put variable ( sy-datum ) as condition. i think there is no way to archive it direct in the SQL, you can get the data and loop the itab to assign value only.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 01:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679609#M30195</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-06-29T01:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: appending specific rows to specific columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679610#M30196</link>
      <description>&lt;P&gt;This is possible with CASE in Open SQL. See the link above.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;7.40, SP08&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 04:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-specific-rows-to-specific-columns/m-p/679610#M30196</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-29T04:15:10Z</dc:date>
    </item>
  </channel>
</rss>

