<?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: Table conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531840#M1071016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi here they are using do varying ......means they may using the repretitive structures....look at the repetitive structures...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 11:52:13 GMT</pubDate>
    <dc:creator>former_member203501</dc:creator>
    <dc:date>2008-09-25T11:52:13Z</dc:date>
    <item>
      <title>Table conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531839#M1071015</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 a screen maintained in the following format.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CCD          CCR
------------------------
XXX            1111
YYY           3333
ZZZ             7777
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is maintained in the table as follows&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Key      CCD1   CCR1    CCD2 CCR2  CCD3  CCR3
-----------------------------------------------------------------------------
k           XXX       1111      yyy   3333    zzz    7777 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i access these values in an internal table, in the follwing format&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   xxx 1111
   yyy  3333 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531839#M1071015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531840#M1071016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi here they are using do varying ......means they may using the repretitive structures....look at the repetitive structures...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531840#M1071016</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2008-09-25T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531841#M1071017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF text, 
        word1 TYPE c LENGTH 4 VALUE 'AAAA', 
        word2 TYPE c LENGTH 4 VALUE 'BBBB', 
        word3 TYPE c LENGTH 4 VALUE 'CCCC', 
        word4 TYPE c LENGTH 4 VALUE 'DDDD', 
      END OF text. 

DATA: word  TYPE c LENGTH 4, 
      char1 TYPE c LENGTH 1, 
      char2 TYPE c LENGTH 1, 
      leng TYPE i. 

FIELD-SYMBOLS &amp;lt;word&amp;gt; LIKE text-word1. 
DATA inc TYPE i. 

DESCRIBE FIELD text LENGTH leng IN CHARACTER MODE. 
leng = leng / 2. 

DO leng TIMES VARYING char1 FROM text(1) 
                            NEXT text+2(1) RANGE text 
              VARYING char2 FROM text+1(1) 
                            NEXT text+3(1) RANGE text. 
  WRITE: char1, char2. 
  char1 = 'x'. 
  char2 = 'y'. 
ENDDO. 

DO 4 TIMES VARYING word FROM text-word1 NEXT text-word2. 
  WRITE / word. 
ENDDO. 

DO. 
  inc = sy-index  - 1. 
  ASSIGN text-word1 INCREMENT inc TO &amp;lt;word&amp;gt; RANGE text. 
  IF sy-subrc = 0. 
    WRITE / &amp;lt;word&amp;gt;. 
  ELSE. 
    EXIT. 
  ENDIF. 
ENDDO. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 12:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion/m-p/4531841#M1071017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T12:04:45Z</dc:date>
    </item>
  </channel>
</rss>

