<?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: Cyclic Validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934327#M1965038</link>
    <description>&lt;P&gt;Matthew, how do you know the number of times, the DO loop will run?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2019 09:50:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-04-07T09:50:17Z</dc:date>
    <item>
      <title>Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934320#M1965031</link>
      <description>&lt;P&gt;There is a internal table with 3 columns&lt;/P&gt;
  &lt;P&gt;Sample data of it as below.&lt;/P&gt;
  &lt;P&gt;XX YY err&lt;/P&gt;
  &lt;P&gt;a b&lt;/P&gt;
  &lt;P&gt;a l&lt;/P&gt;
  &lt;P&gt;a m&lt;/P&gt;
  &lt;P&gt;b n&lt;/P&gt;
  &lt;P&gt;b x&lt;/P&gt;
  &lt;P&gt;b y&lt;/P&gt;
  &lt;P&gt;c w&lt;/P&gt;
  &lt;P&gt;c t&lt;/P&gt;
  &lt;P&gt;x d&lt;/P&gt;
  &lt;P&gt;d a&lt;/P&gt;
  &lt;P&gt;n c&lt;/P&gt;
  &lt;P&gt;n p&lt;/P&gt;
  &lt;P&gt;n i&lt;/P&gt;
  &lt;P&gt;n j&lt;/P&gt;
  &lt;P&gt;p q&lt;/P&gt;
  &lt;P&gt;q r&lt;/P&gt;
  &lt;P&gt;r s&lt;/P&gt;
  &lt;P&gt;s d&lt;/P&gt;
  &lt;P&gt;For all cyclic records, err column have to be set as X.&lt;/P&gt;
  &lt;P&gt;Cycllic records are those where YY = XX in a cyclic manner.&lt;/P&gt;
  &lt;P&gt;Starting from first record, search starts and all records with XX = b are searched.&lt;/P&gt;
  &lt;P&gt;b n, b x, b y are found, &lt;/P&gt;
  &lt;P&gt;Then we search with YY of what is found, and so on.&lt;/P&gt;
  &lt;P&gt;Cyclic record set (1) in the above example&lt;/P&gt;
  &lt;P&gt;a b&lt;/P&gt;
  &lt;P&gt;b n&lt;/P&gt;
  &lt;P&gt;n p&lt;/P&gt;
  &lt;P&gt;p q&lt;/P&gt;
  &lt;P&gt;q r&lt;/P&gt;
  &lt;P&gt;r s&lt;/P&gt;
  &lt;P&gt;s d&lt;/P&gt;
  &lt;P&gt;d a&lt;/P&gt;
  &lt;P&gt;Cyclic record Set(2) in the above example&lt;/P&gt;
  &lt;P&gt;a b&lt;/P&gt;
  &lt;P&gt;b x&lt;/P&gt;
  &lt;P&gt;x d&lt;/P&gt;
  &lt;P&gt;d a&lt;/P&gt;
  &lt;P&gt;So after execution the output should be as below&lt;/P&gt;
  &lt;P&gt;XX YY err&lt;/P&gt;
  &lt;P&gt;a b X&lt;/P&gt;
  &lt;P&gt;a l&lt;/P&gt;
  &lt;P&gt;a m&lt;/P&gt;
  &lt;P&gt;b n X&lt;/P&gt;
  &lt;P&gt;b x X&lt;/P&gt;
  &lt;P&gt;b y&lt;/P&gt;
  &lt;P&gt;c w&lt;/P&gt;
  &lt;P&gt;c t&lt;/P&gt;
  &lt;P&gt;x d X&lt;/P&gt;
  &lt;P&gt;d a X&lt;/P&gt;
  &lt;P&gt;n c&lt;/P&gt;
  &lt;P&gt;n p X&lt;/P&gt;
  &lt;P&gt;n i&lt;/P&gt;
  &lt;P&gt;n j&lt;/P&gt;
  &lt;P&gt;p q X&lt;/P&gt;
  &lt;P&gt;q r X&lt;/P&gt;
  &lt;P&gt;r s X&lt;/P&gt;
  &lt;P&gt;s d X&lt;/P&gt;
  &lt;P&gt;Can anyone suggest some logic?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 11:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934320#M1965031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-04-04T11:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934321#M1965032</link>
      <description>&lt;P&gt;Do you have an dynamic internal table and you want to set other columns?Please rephrase your question once again.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 13:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934321#M1965032</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2019-04-04T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934322#M1965033</link>
      <description>&lt;P&gt;The truth I didn't understand your question. It would be helpful a before and after example of what you want to achieve...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 14:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934322#M1965033</guid>
      <dc:creator>Jean_Sagi</dc:creator>
      <dc:date>2019-04-04T14:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934323#M1965034</link>
      <description>&lt;P&gt;I modified the question to make it more understandable.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 04:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934323#M1965034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-04-05T04:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934324#M1965035</link>
      <description>&lt;P&gt;What have you tried? It looks straightforward to me - one or two DO loops, reads from the table, storing interim results.&lt;BR /&gt;&lt;BR /&gt;For each element - next elements. Do this recursively until you end up repeating or the chain ends. Effectively you're looking for loops in a hierarchy.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 06:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934324#M1965035</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-04-05T06:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934325#M1965036</link>
      <description>&lt;P&gt;These are records of input excel file that are taken in an internal table.&lt;/P&gt;&lt;P&gt;The number of loops cannot be defined, as number and pattern of records changes when you change the data.&lt;/P&gt;&lt;P&gt;Can you show me the logic in ABAP that you are proposing please.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 07:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934325#M1965036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-04-05T07:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934326#M1965037</link>
      <description>&lt;P&gt;&lt;EM&gt;Can you show me the logic in ABAP that you are proposing please.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Nope. That is an exercise left to the programmer who is being paid to program the solution.&lt;/P&gt;&lt;P&gt;It doesn't matter where the data comes from, why mention it? Furthermore, there's nothing in what I've said that indicates that the number of loops has to be defined. You start at one element, test all possibilities there, then take the next element and test all possibilities there until there are no elements remaining. There's scope for some optimisation as if you have A-&amp;gt;B, then you obviously don't need to check B again.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 10:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934326#M1965037</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-04-05T10:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934327#M1965038</link>
      <description>&lt;P&gt;Matthew, how do you know the number of times, the DO loop will run?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 09:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934327#M1965038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-04-07T09:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934328#M1965039</link>
      <description>&lt;P&gt;You don't. But when you reach the end of a chain, you can leave the loop using exit.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 16:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934328#M1965039</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-04-07T16:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934329#M1965040</link>
      <description>&lt;P&gt;Please use the COMMENT button to reply to someone asking for details. ANSWER is only to propose a solution.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 18:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934329#M1965040</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-04-07T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934330#M1965041</link>
      <description>&lt;P&gt;Please use the COMMENT button to reply to someone asking for details. ANSWER is only to propose a solution.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 18:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934330#M1965041</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-04-07T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934331#M1965042</link>
      <description>&lt;P&gt;Fun algorithm... As a human, can you solve the problem without a computer? Yes -&amp;gt; convert your logic into an algorithm and convert it into a program. No -&amp;gt; you won't be able to code the program.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 18:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934331#M1965042</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-04-07T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934332#M1965043</link>
      <description>&lt;P&gt;You can try the iterative call of a subroutine:  here is the algorithm.&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt;      PERFORM F_CYCLE tables ITAB &lt;/P&gt;&lt;P&gt;                                          using ITAB-YY&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;*------------------------------&lt;/P&gt;&lt;P&gt;FORM F_CYCLE.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt; Loop at ITAB where XX = YY into LS_LINE.&lt;/P&gt;&lt;P&gt;       SET the ITAB-ERR = 'X'.&lt;/P&gt;&lt;P&gt;      PERFORM F_CYCLE tables ITAB &lt;/P&gt;&lt;P&gt;                                          using LS_LINE-YY&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 12:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cyclic-validation/m-p/11934332#M1965043</guid>
      <dc:creator>r010101010</dc:creator>
      <dc:date>2019-04-10T12:08:15Z</dc:date>
    </item>
  </channel>
</rss>

