<?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 help with internal table required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860083#M670692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an internal table of such structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB ,    VC  , VALUE  - Fields&lt;/P&gt;&lt;P&gt;a   ,         a1   ,       1&lt;/P&gt;&lt;P&gt;a    ,       a2      ,    3&lt;/P&gt;&lt;P&gt;a    ,       a3       ,   2&lt;/P&gt;&lt;P&gt;b     ,      b1        ,  1  &lt;/P&gt;&lt;P&gt;b      ,     b2         , 2&lt;/P&gt;&lt;P&gt;b       ,    b3          ,0&lt;/P&gt;&lt;P&gt;b     ,   b4          ,1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to loop and somehow check that if that field value against any one of the VC corresponding to one VB is 0, then i need to check if all the other values for that same VB are 0 or not.if even for a single VB not all values are 0 i need to throw an error message.I need to check this for all VBs in the table.&lt;/P&gt;&lt;P&gt;The requirement is that if for one VB any value is zero all values for that VB should be zero or else all should be non zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, here above since the 3rd value entry against VB = B is 0 and other are non zero i need to throw an error. no error for VB = A since all are non zero. How do I go about processing this internal table. Immediate help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 19:41:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-20T19:41:24Z</dc:date>
    <item>
      <title>help with internal table required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860083#M670692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an internal table of such structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB ,    VC  , VALUE  - Fields&lt;/P&gt;&lt;P&gt;a   ,         a1   ,       1&lt;/P&gt;&lt;P&gt;a    ,       a2      ,    3&lt;/P&gt;&lt;P&gt;a    ,       a3       ,   2&lt;/P&gt;&lt;P&gt;b     ,      b1        ,  1  &lt;/P&gt;&lt;P&gt;b      ,     b2         , 2&lt;/P&gt;&lt;P&gt;b       ,    b3          ,0&lt;/P&gt;&lt;P&gt;b     ,   b4          ,1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to loop and somehow check that if that field value against any one of the VC corresponding to one VB is 0, then i need to check if all the other values for that same VB are 0 or not.if even for a single VB not all values are 0 i need to throw an error message.I need to check this for all VBs in the table.&lt;/P&gt;&lt;P&gt;The requirement is that if for one VB any value is zero all values for that VB should be zero or else all should be non zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, here above since the 3rd value entry against VB = B is 0 and other are non zero i need to throw an error. no error for VB = A since all are non zero. How do I go about processing this internal table. Immediate help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 19:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860083#M670692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T19:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: help with internal table required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860084#M670693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hint for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  read table itab with key VC = '0'&lt;/P&gt;&lt;P&gt;                                     VB= itab-VC.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   endif &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 19:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860084#M670693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: help with internal table required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860085#M670694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditi&lt;/P&gt;&lt;P&gt;Assume the below mentioned values are in itab1.&lt;/P&gt;&lt;P&gt;take a copy to itab2 and itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in itab2.&lt;/P&gt;&lt;P&gt;delete itab2 where value = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in itab3 delete itab2 where valuen ne = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;   read table itab3 with key vb = itab2-vb.&lt;/P&gt;&lt;P&gt;       if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*Means there is value other zero&lt;/P&gt;&lt;P&gt;           error message&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know, whether it works&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 20:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860085#M670694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T20:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: help with internal table required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860086#M670695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 03:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-internal-table-required/m-p/2860086#M670695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T03:59:02Z</dc:date>
    </item>
  </channel>
</rss>

