<?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 delete all the objects in a package in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522897#M1069249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that i need to write a program to delete all the objects in a package. In the selection screen i enter the package name and then i get all the objects in the package from TADIR table and display them in an ALV.&lt;/P&gt;&lt;P&gt;There when i select a object and press the delete button ,the object (program ,table, domain,data element etc..) should be deleted . &lt;/P&gt;&lt;P&gt;For this i tried to DEBUG in SE80 and tried to know how SAP is trying to delete the object. But i couldnot unterstand which Function Module or which Class and Method it uses to delete an object.&lt;/P&gt;&lt;P&gt;Guys please let me know how it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaithanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 08:04:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T08:04:55Z</dc:date>
    <item>
      <title>delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522897#M1069249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that i need to write a program to delete all the objects in a package. In the selection screen i enter the package name and then i get all the objects in the package from TADIR table and display them in an ALV.&lt;/P&gt;&lt;P&gt;There when i select a object and press the delete button ,the object (program ,table, domain,data element etc..) should be deleted . &lt;/P&gt;&lt;P&gt;For this i tried to DEBUG in SE80 and tried to know how SAP is trying to delete the object. But i couldnot unterstand which Function Module or which Class and Method it uses to delete an object.&lt;/P&gt;&lt;P&gt;Guys please let me know how it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaithanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522897#M1069249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522898#M1069250</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;Refer to the link.&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="403563"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522898#M1069250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T08:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522899#M1069251</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;Sumit  the above link is not the solution.&lt;/P&gt;&lt;P&gt;i should not delete the package from the table but i should delete the objects when i click on the delete button.&lt;/P&gt;&lt;P&gt;Guys its urgent plaese help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaithanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522899#M1069251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522900#M1069252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you are getting the objects from TADIR program, you need to delete the objects from this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when you select a record and press delete...get the property of the line so as that you will have the object name in your cursor which can be used to delete the object from TADIR table..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522900#M1069252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522901#M1069253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wondering what is the added advantage of this custom development compared to deleting via SE80 or SE90?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522901#M1069253</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-09-24T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522902#M1069254</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 donot want to delete the object record in the table but i want to physically delete the program.&lt;/P&gt;&lt;P&gt;In SE38 how you give the program name and press on the delete button then that program will be deleted from all the tables where ever it has an entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In se80 a can delete only one object at a time but with this program i want to delete multiple objects at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaithanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522902#M1069254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T08:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522903#M1069255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; In se80 a can delete only one object at a time but with this program i want to delete multiple objects at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you can mark multiple objects (holding down the CTRL- or SHIFT-keys) and delete them in one go.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522903#M1069255</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-09-24T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete all the objects in a package</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522904#M1069256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; check this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zxxxxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: x_fieldcat  TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      it_fieldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;      g_grid    TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      x_layout TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;       g_custom_container type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;        g_container type scrfname value 'I_CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: BEGIN OF ty_itab ,&lt;/P&gt;&lt;P&gt;        check(1) TYPE c,&lt;/P&gt;&lt;P&gt;       PGMID LIKE TADIR-PGMID,&lt;/P&gt;&lt;P&gt;             END OF ty_itab,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;data:itab type standard table of ty_itab,&lt;/P&gt;&lt;P&gt;       itab1 type TADIR.&lt;/P&gt;&lt;P&gt;  call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module STATUS_0100 output.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZSTATUS100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if g_custom_container is initial.&lt;/P&gt;&lt;P&gt;    create object g_custom_container&lt;/P&gt;&lt;P&gt;           exporting container_name = g_container.&lt;/P&gt;&lt;P&gt;    create object g_grid&lt;/P&gt;&lt;P&gt;           exporting i_parent = g_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PGMID&lt;/P&gt;&lt;P&gt;  FROM TADIR&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE itab where DEVCLASS = selection screen package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'CHECK'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext = 'CHECK'.&lt;/P&gt;&lt;P&gt;x_fieldcat-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;x_fieldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;APPEND x_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR x_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'PGMIDt'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext = 'PGMIDt'.&lt;/P&gt;&lt;P&gt;*x_fieldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;APPEND x_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR x_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IS_LAYOUT                     = x_layout&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    it_outtab                     = itab&lt;/P&gt;&lt;P&gt;    IT_FIELDCATALOG               = it_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module USER_COMMAND_0100 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_outtab LIKE LINE OF itab.&lt;/P&gt;&lt;P&gt;DATA: l_valid TYPE c,&lt;/P&gt;&lt;P&gt;      ok_code like sy-ucomm,&lt;/P&gt;&lt;P&gt;       r_ucomm LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;       ls_celltab TYPE lvc_s_styl,&lt;/P&gt;&lt;P&gt;      lt_celltab TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;      l_index TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL METHOD g_grid-&amp;gt;check_changed_data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IMPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;e_valid = l_valid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF l_valid EQ 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;case sy-ucomm.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;when 'DELETE'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP AT itab INTO ls_outtab where check = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;move ls_outtab-object to itab1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;delete TADIR from itab1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endcase.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-all-the-objects-in-a-package/m-p/4522904#M1069256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:52:50Z</dc:date>
    </item>
  </channel>
</rss>

