<?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: converting rows into columns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161867#M1195622</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;U can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In itab, you will get values as :&lt;/P&gt;&lt;P&gt;Cond 1 45&lt;/P&gt;&lt;P&gt;Cond 1 20. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;here t_dummy is your actual internal table in which you want data in required format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab BY row col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE wa-col.              * eg. col 1 for first time and its values.. &lt;/P&gt;&lt;P&gt;WHEN '1'.&lt;/P&gt;&lt;P&gt;wa_dummy-a = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '2'.&lt;/P&gt;&lt;P&gt;wa_dummy-b = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '3'.&lt;/P&gt;&lt;P&gt;wa_dummy-c = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '4'.&lt;/P&gt;&lt;P&gt;wa_dummy-d = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '5'.&lt;/P&gt;&lt;P&gt;wa_dummy-e = wa-value.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF row.&lt;/P&gt;&lt;P&gt;APPEND wa_dummy TO t_dummy.&lt;/P&gt;&lt;P&gt;CLEAR wa_dummy.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Feb 25, 2009 6:56 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Feb 25, 2009 6:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 05:55:22 GMT</pubDate>
    <dc:creator>keerthy_k</dc:creator>
    <dc:date>2009-02-25T05:55:22Z</dc:date>
    <item>
      <title>converting rows into columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161865#M1195620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data in internal table based on condition types . The Particular condition may have have two or three&lt;/P&gt;&lt;P&gt;rows showing prices based on condition type. so i want all the three rows in same columns. can anybody &lt;/P&gt;&lt;P&gt;suggest me any build in type function available for doing the  same. Is there any List function availaible. &lt;/P&gt;&lt;P&gt;The No. of rows may be 2, 3 or more based on condition type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg :  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cond 1     45&lt;/P&gt;&lt;P&gt;Cond 1     20.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want  Cond1 45  20  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 04:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161865#M1195620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T04:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: converting rows into columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161866#M1195621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By your example &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;for eg : 

Cond 1 45
Cond 1 20. 

I want Cond1 45 20 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you want vice versa.Anyways&lt;/P&gt;&lt;P&gt;Check the thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7089259"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7047734"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sachin sharma on Feb 25, 2009 10:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 05:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161866#M1195621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T05:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: converting rows into columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161867#M1195622</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;U can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In itab, you will get values as :&lt;/P&gt;&lt;P&gt;Cond 1 45&lt;/P&gt;&lt;P&gt;Cond 1 20. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;here t_dummy is your actual internal table in which you want data in required format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab BY row col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE wa-col.              * eg. col 1 for first time and its values.. &lt;/P&gt;&lt;P&gt;WHEN '1'.&lt;/P&gt;&lt;P&gt;wa_dummy-a = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '2'.&lt;/P&gt;&lt;P&gt;wa_dummy-b = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '3'.&lt;/P&gt;&lt;P&gt;wa_dummy-c = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '4'.&lt;/P&gt;&lt;P&gt;wa_dummy-d = wa-value.&lt;/P&gt;&lt;P&gt;WHEN '5'.&lt;/P&gt;&lt;P&gt;wa_dummy-e = wa-value.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF row.&lt;/P&gt;&lt;P&gt;APPEND wa_dummy TO t_dummy.&lt;/P&gt;&lt;P&gt;CLEAR wa_dummy.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Feb 25, 2009 6:56 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Feb 25, 2009 6:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 05:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161867#M1195622</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-02-25T05:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: converting rows into columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161868#M1195623</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;&lt;/P&gt;&lt;P&gt;1. Copy the data in one or more columns or rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Before you paste the copied data, right-click your first destination cell (the first cell of the row or column into which you want to paste your data), and then click Paste Special.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the Paste Special dialog box, select Transpose, and then click OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll find theTranspose check box in the lower-right corner of the dialog box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then Starting with your first cell, Excel pastes the data into a row or column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 07:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161868#M1195623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T07:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: converting rows into columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161869#M1195624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you like to display your outlike like below : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COND1--45--20 
COND2--12--13
COND3--11--14&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Would you like to make the COND1 as a key field? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case then you can go ahead with the dynamic INternal Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease let me know if this is the case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will procide you fruther help to use Dynamic INternal Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KIttu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 06:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161869#M1195624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T06:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: converting rows into columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161870#M1195625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ya i want to display the output &lt;/P&gt;&lt;P&gt;COND1&lt;DEL&gt;45&lt;/DEL&gt;20 &lt;/P&gt;&lt;P&gt;COND2&lt;DEL&gt;12&lt;/DEL&gt;13&lt;/P&gt;&lt;P&gt;COND3&lt;DEL&gt;11&lt;/DEL&gt;14 like this only. you can send me the help regarding dynamic internal Table.&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;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 06:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-rows-into-columns/m-p/5161870#M1195625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T06:48:43Z</dc:date>
    </item>
  </channel>
</rss>

