<?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 to Delete a table field dynamically through a program...??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363791#M180248</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;for deletion of field you can do some thing like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa type dd03l.
data: field like dd03l-fieldname,
      itab like ztest_sav occurs 0 with header line.
      wa_tab like ztest_table.
select single * from ZTEST_TABLE into wa_tab where FIELD = 'TEST'.
clear wa_tab-field.
modify ZTEST_TABLE FROM WA.
if sy-subrc = 0.
commit work.
endif.
      select single * from dd03l
               into wa 
           where tabname = 'ZTEST_TABLE'
           and fieldname = 'FIELD'.

DELETE  DD03L  FROM wa.  "deletion fo field
if sy-subrc = 0.
COMMIT WORK.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't think this is the Proper way to delete the field from table.&lt;/P&gt;&lt;P&gt;But check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2006 13:33:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-12T13:33:57Z</dc:date>
    <item>
      <title>How to Delete a table field dynamically through a program...???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363790#M180247</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;   I am required to delete a desired field from a table dyanmically through a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynamically it has to delete content of that field and then it should dynamically delete that field from that table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 13:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363790#M180247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete a table field dynamically through a program...???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363791#M180248</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;for deletion of field you can do some thing like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa type dd03l.
data: field like dd03l-fieldname,
      itab like ztest_sav occurs 0 with header line.
      wa_tab like ztest_table.
select single * from ZTEST_TABLE into wa_tab where FIELD = 'TEST'.
clear wa_tab-field.
modify ZTEST_TABLE FROM WA.
if sy-subrc = 0.
commit work.
endif.
      select single * from dd03l
               into wa 
           where tabname = 'ZTEST_TABLE'
           and fieldname = 'FIELD'.

DELETE  DD03L  FROM wa.  "deletion fo field
if sy-subrc = 0.
COMMIT WORK.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't think this is the Proper way to delete the field from table.&lt;/P&gt;&lt;P&gt;But check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 13:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363791#M180248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete a table field dynamically through a program...???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363792#M180249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;    is it requried to delete only from dd30l ...? coz if you look in to dd03m view table we have 3 table...!is it not requierd to delete from those tables also???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 15:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363792#M180249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T15:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete a table field dynamically through a program...???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363793#M180250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this FM:&lt;/P&gt;&lt;P&gt;DB_ALTER_TABLE&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 15:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-a-table-field-dynamically-through-a-program/m-p/1363793#M180250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T15:19:59Z</dc:date>
    </item>
  </channel>
</rss>

