<?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: How can delete Internal table column if its Initial. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440151#M826155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;removing a field from internal table, and not displaying a coloumn in ALV list are completely different things! If you don't want to display a coloumn in ALV list, all you have to do is to turn off the field in the ALV field catalouge:&lt;/P&gt;&lt;P&gt;fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;and the coloumn won't be displayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 09:58:06 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-02-26T09:58:06Z</dc:date>
    <item>
      <title>How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440142#M826146</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;How can delete Internal table column if its Initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:I have one internal table its has 5. field1 ,field2,field3,field4 have values but field field5 have no value,that col is empty,&lt;/P&gt;&lt;P&gt;I want delete clo5( field5 ) from Internal table,Pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440142#M826146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440143#M826147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;  take 5 internal tables and send the data into them as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 - field1&lt;/P&gt;&lt;P&gt;itab2 - field2&lt;/P&gt;&lt;P&gt;itab3 - field3&lt;/P&gt;&lt;P&gt;itab4 - field4&lt;/P&gt;&lt;P&gt;itab5 - field5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the INITIALITY of these tables while printing the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440143#M826147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440144#M826148</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 use one more itab and use move corresponding and pass only the 4 fields not field5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or append it to new one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440144#M826148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440145#M826149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cannot delete the column in an internal table. you need another table with 4 fields u want and assign this table to the table with 4 fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for initial you can check using this&lt;/P&gt;&lt;P&gt;loop at tab.&lt;/P&gt;&lt;P&gt;if  tab-field5 is initial .&lt;/P&gt;&lt;P&gt;  tab2-field1 = tab-field1&lt;/P&gt;&lt;P&gt;  tab2-field2 = tab-field2&lt;/P&gt;&lt;P&gt;  tab2-field3 = tab-field3&lt;/P&gt;&lt;P&gt;  tab2-field4 = tab-field4&lt;/P&gt;&lt;P&gt;  append tab2.&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;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 26, 2008 12:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440145#M826149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440146#M826150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not follow your previous thread, probably you got answer already...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4912482"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440146#M826150</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-26T09:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440147#M826151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this , it will work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-field5 is initial .&lt;/P&gt;&lt;P&gt;itab2-field1 = itab-field1&lt;/P&gt;&lt;P&gt;itab2-field2 = itab-field2&lt;/P&gt;&lt;P&gt;itab2-field3 = itab-field3&lt;/P&gt;&lt;P&gt;itab2-field4 = itab-field4&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2-field1 = itab-field1&lt;/P&gt;&lt;P&gt;itab2-field2 = itab-field2&lt;/P&gt;&lt;P&gt;itab2-field3 = itab-field3&lt;/P&gt;&lt;P&gt;itab2-field4 = itab-field4&lt;/P&gt;&lt;P&gt;itab2-field5 = itab-field5&lt;/P&gt;&lt;P&gt;append itab2&lt;/P&gt;&lt;P&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440147#M826151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440148#M826152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you already know which field in the internal table doesn't have any value, you can define a different internal table with the fields that you desire, and then do a move-corresponding for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440148#M826152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440149#M826153</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 this by moving the data to target internal table with required fields / you need to create the dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have only 5 fields then you can do this with the below approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to have the internal table columns like Fld1 FLd2 Fld3 Fld4 Fld5 , and make another internal table for the actual column names like below.&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;         fld name&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;FLd1      Matnr&lt;/P&gt;&lt;P&gt;Fld2       ERSDA&lt;/P&gt;&lt;P&gt;Fld3       ERNAM&lt;/P&gt;&lt;P&gt;Fld4       LAEDA&lt;/P&gt;&lt;P&gt;Fld5       VPSTA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now consider fld3 is initial so now build the target table with fld1 , fld2 , fld4 , fld5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for output display you refer the above internal table for actual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440149#M826153</guid>
      <dc:creator>ravisankara_varaprasad</dc:creator>
      <dc:date>2008-02-26T09:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440150#M826154</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;  Sorry Eric for duplicate threads, am using this internal table to display ALV, End user saying its seems not good if it has empty column while display. Already I got answers like it&amp;#146;s not possible at runtime, but again aim trying people who faced same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440150#M826154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440151#M826155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;removing a field from internal table, and not displaying a coloumn in ALV list are completely different things! If you don't want to display a coloumn in ALV list, all you have to do is to turn off the field in the ALV field catalouge:&lt;/P&gt;&lt;P&gt;fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;and the coloumn won't be displayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440151#M826155</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-26T09:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440152#M826156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, Its fine ,before hide the particular column I need to check whether it has any value or empty ,I need hide only if its empty else I need to display that column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 10:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440152#M826156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440153#M826157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hye jay,&lt;/P&gt;&lt;P&gt; Consider your internal table is having 3 fields&amp;#133; fld1 fld2 fld3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare 3 characters of length 1 and initialize to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa.&lt;/P&gt;&lt;P&gt;If wa-fld1 is not initial.&lt;/P&gt;&lt;P&gt;Clear fld1.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;If wa-fld2 is not initial.&lt;/P&gt;&lt;P&gt;Clear fld2.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;If wa-fld3 is not initial.&lt;/P&gt;&lt;P&gt;Clear fld3.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;If fld1 EQ space and fld2 EQ space fld3 EQ space.&lt;/P&gt;&lt;P&gt;Exit.&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;No when you assign the colums to alv, add this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fld1 is intial.&lt;/P&gt;&lt;P&gt;fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;like wise for all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_fldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;        wa_fldcat-fieldname = 'fld1'.&lt;/P&gt;&lt;P&gt;        wa_fldcat-tabname = 'IT_PROJECT'.&lt;/P&gt;&lt;P&gt;        wa_fldcat-seltext_l = field 1.&lt;/P&gt;&lt;P&gt;        if fld1 is intial.&lt;/P&gt;&lt;P&gt;        fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        APPEND wa_fldcat TO it_fldcat.&lt;/P&gt;&lt;P&gt;        CLEAR wa_fldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be this is helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 12:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440153#M826157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete Internal table column if its Initial.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440154#M826158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not duplicate threads...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="750031"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locking this one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 17:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-delete-internal-table-column-if-its-initial/m-p/3440154#M826158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T17:32:16Z</dc:date>
    </item>
  </channel>
</rss>

