<?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: Chk values from a Dynamic Internal Table ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/chk-values-from-a-dynamic-internal-table/m-p/3359855#M806178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1 . use GET_COMPONENT_LIST  before the dynamic internal table created, it will give all the fieldname into one itab , say itab_before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 . use the same FM after dynamic table created, it will give all the fieldnames including dynamic fieldnames  into one itab , say itab_after&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 3. now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          loop at itab_before.&lt;/P&gt;&lt;P&gt;             read table itab_after with key  COMPNAME eq itab_before-COMPNAME.&lt;/P&gt;&lt;P&gt;             if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;                delete itab_after.&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;     now ur itab_after will consists only the dynamic fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is just an idea , try from here if it can help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 17:11:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T17:11:08Z</dc:date>
    <item>
      <title>Chk values from a Dynamic Internal Table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chk-values-from-a-dynamic-internal-table/m-p/3359854#M806177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a dynamic internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It'll have the values in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

F1  F2  DYN1 DYN2 DYN3 FN
--------------------------

A    a   X      X    X  1
B    c   -      X    X  6
C    b   X      -    X  3

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;In the above table DYN1,DYN2,DYN3 are the dynamic fields.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The field values of those will be either blank or 'X '.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now I need to count the no. of X's for all the respective Dynamic Fields.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e I need a table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DYN1 2 " 2 bcoz the column DYN1 has 2 X's from the above table 
DYN2 2 
DYN3 3
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I'm clear in explaining my scenario !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to achieve the above functionality ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 16:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chk-values-from-a-dynamic-internal-table/m-p/3359854#M806177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T16:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chk values from a Dynamic Internal Table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chk-values-from-a-dynamic-internal-table/m-p/3359855#M806178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1 . use GET_COMPONENT_LIST  before the dynamic internal table created, it will give all the fieldname into one itab , say itab_before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 . use the same FM after dynamic table created, it will give all the fieldnames including dynamic fieldnames  into one itab , say itab_after&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 3. now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          loop at itab_before.&lt;/P&gt;&lt;P&gt;             read table itab_after with key  COMPNAME eq itab_before-COMPNAME.&lt;/P&gt;&lt;P&gt;             if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;                delete itab_after.&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;     now ur itab_after will consists only the dynamic fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is just an idea , try from here if it can help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 17:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chk-values-from-a-dynamic-internal-table/m-p/3359855#M806178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T17:11:08Z</dc:date>
    </item>
  </channel>
</rss>

