<?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 internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538493#M851336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I have an internal table in which for some records all the columns are zero. I don&amp;#146;t want to display this records having zero values for all the columns in the final output. How do we do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 13:26:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T13:26:47Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538493#M851336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I have an internal table in which for some records all the columns are zero. I don&amp;#146;t want to display this records having zero values for all the columns in the final output. How do we do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538493#M851336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538494#M851337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jamnun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you did not mention, if you display the content of the internal table the classical way or with ALV...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;classic:&lt;/P&gt;&lt;P&gt;LOOP AT itab WHERE field NE 0.&lt;/P&gt;&lt;P&gt;WRITE ...&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV:&lt;/P&gt;&lt;P&gt;you have to delete the entries from the internal table before passing to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538494#M851337</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-03-10T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538495#M851338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jamnun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per ur Question,&lt;/P&gt;&lt;P&gt;U have an Internal Table with Some fields,Among that fields , Some of them are Null values.&lt;/P&gt;&lt;P&gt;If U know that fields,which r having Null values, filter those fields(Using Codition) at the &lt;STRONG&gt;Write Statement&lt;/STRONG&gt; in the End-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope It s Helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538495#M851338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538496#M851339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_vbap occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln type vbap-vbeln,&lt;/P&gt;&lt;P&gt;      netwr type vbap-netwr,&lt;/P&gt;&lt;P&gt;      end of it_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln netwr from vbap into table it_vbap up to 50 rows.&lt;/P&gt;&lt;P&gt;data: count type sy-tabix.&lt;/P&gt;&lt;P&gt;loop at it_vbap.&lt;/P&gt;&lt;P&gt; count = sy-tabix.&lt;/P&gt;&lt;P&gt;if it_vbap-netwr is initial.&lt;/P&gt;&lt;P&gt;  delete it_vbap index count.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;loop at it_vbap.&lt;/P&gt;&lt;P&gt;  write: it_vbap-vbeln, it_vbap-netwr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538496#M851339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538497#M851340</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 think what you can do is, first delete those particular records from the internal table prior to diplaying them in the output.One way to do that would be to use the keyword 'DELETE'.&lt;/P&gt;&lt;P&gt;An e.g. would be:&lt;/P&gt;&lt;P&gt;Delete itab from wa where f1 = space f2 -= space f3 = space and so on.I think you have to check for all the fields and then only delete the row.The reason for this being that at any time any other record can have any field empty so you just can check for some fields.You have check for all the fields being empty and then delete it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538497#M851340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538498#M851341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;   DATA: v_number   TYPE N.&lt;/P&gt;&lt;P&gt;    v_number = 00000000009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              input  = v_number&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              output = v_number_aux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: v_number_aux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Balbino&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538498#M851341</guid>
      <dc:creator>balbino_soaresferreirafil</dc:creator>
      <dc:date>2008-03-10T13:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538499#M851342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways:&lt;/P&gt;&lt;P&gt;1. Add another column in the internal table and keep the sum value there of all the columns and while writing check if this new field is not ZERO write otherwise don't.&lt;/P&gt;&lt;P&gt;2. Declare a another parameter type CHAR(1) and While writing (looping....) check if any one field has NON ZERO, set this flag and write the values then reset the flag otherwise don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538499#M851342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538500#M851343</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;You can do as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.
"Assuming if dmbtr is equal to zero then that line items should not be displayed.

   if itab-dmbtr eq 0.
     delete itab.
     clear itab.
     exit.
  else.
     write : itab-fieldnames.
  endif.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram POnna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 14:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3538500#M851343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T14:03:47Z</dc:date>
    </item>
  </channel>
</rss>

