<?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 Transpose rows and columns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417889#M1243801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have an internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 2 3 4&lt;/P&gt;&lt;P&gt;5 6 7 8&lt;/P&gt;&lt;P&gt;9 10 11 12&lt;/P&gt;&lt;P&gt;13 14 15 16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After execution the data should be transposed to display as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 5 9   13&lt;/P&gt;&lt;P&gt;2 6 10 14&lt;/P&gt;&lt;P&gt;3 7 11 15&lt;/P&gt;&lt;P&gt;4 8 12 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can code this or create a dynamic table?&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 08:23:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-24T08:23:46Z</dc:date>
    <item>
      <title>Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417889#M1243801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have an internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 2 3 4&lt;/P&gt;&lt;P&gt;5 6 7 8&lt;/P&gt;&lt;P&gt;9 10 11 12&lt;/P&gt;&lt;P&gt;13 14 15 16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After execution the data should be transposed to display as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 5 9   13&lt;/P&gt;&lt;P&gt;2 6 10 14&lt;/P&gt;&lt;P&gt;3 7 11 15&lt;/P&gt;&lt;P&gt;4 8 12 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can code this or create a dynamic table?&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417889#M1243801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417890#M1243802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is possible only when it is n*n strcuture...I mean... If there are 4 flds in an itab, then the data should also be of 4 records...&lt;/P&gt;&lt;P&gt;Suppose.. if...data is like this,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld1   fld2  fld3   fld4&lt;/P&gt;&lt;P&gt;1       2    3       4&lt;/P&gt;&lt;P&gt;5       6    7      8&lt;/P&gt;&lt;P&gt;9       10   11  12&lt;/P&gt;&lt;P&gt;13     14   15   16&lt;/P&gt;&lt;P&gt;17      18   19   20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how can you transpose it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give a little clear requirement..in this situation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417890#M1243802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417891#M1243803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I am not able to transpose it any ways.. I have just quoted an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417891#M1243803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417892#M1243804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;split wa_itab1 at '' into table itab2 .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417892#M1243804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417893#M1243805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do like this.&lt;/P&gt;&lt;P&gt;read the internal table line by line, each field and concatenate into a string, or an internal table having only one line,&lt;/P&gt;&lt;P&gt;then read the line by index in multiples of 4,like read first entry then 5th and 9th so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417893#M1243805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417894#M1243806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already tried this. What if I have n number of columns and rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417894#M1243806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose rows and columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417895#M1243807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the logic to transpose rows into columns for n...of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab occurs 0,
        word(100),
        word1(100),
       end of itab.

data: begin of jtab occurs 0,
        word(100),
        word1(100),
       end of jtab.

itab-word = 'field1'.
itab-word1 = 'value1'.
append itab.

itab-word = 'field2'.
itab-word1 = 'value2'.
append itab.

itab-word = 'field3'.
itab-word1 = 'value3'.
append itab.

itab-word = 'field4'.
itab-word1 = 'value4'.
append itab.


loop at itab.
   concatenate jtab-word itab-word into jtab-word separated bY SPACE.
   concatenate jtab-word1 itab-word1 into jtab-word1 separated bY SPACE.
endloop.
  append jtab.
 loop at jtab.
   write:/ jtab-word, jtab-word1.
 endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 09:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transpose-rows-and-columns/m-p/5417895#M1243807</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-24T09:18:51Z</dc:date>
    </item>
  </channel>
</rss>

