<?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: Finding tables in a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-tables-in-a-program/m-p/3004830#M710027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;you can choose the application component in the popup that comes&lt;/P&gt;&lt;P&gt;then all the tables / views will be stored in the pt_cust_obj internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-pools scust.
type-pools spro.
type-pools cmpwl.

data: ps_objlist_statistic type slcov_s_statistic_type.

data: pt_cust_obj type slcov_s_cust_obj_type occurs 0 with header line.

data:et_devclasses type slcov_devclass_s_type
  occurs 0 with header line,

    call function 'SCT1_DEVCLASS_GET_BY_APP_TREE'
      exporting
        iv_start_x    = 5
        iv_start_y    = 5
      importing
        ev_canceled   = lv_canceled
      tables
        et_devclasses = et_devclasses
      exceptions
        canceled      = 1
        others        = 2.



*get objects according to what is selected
    call function 'SCOV_GET_CUST_OBJECTS'
      exporting
        iv_clidep                   = 'X'
        iv_cliindep                 = 'X'
        iv_obj_type_sel             = 'CLSTV'
        iv_img_relation             = 'X'
        iv_no_img_relation          = ' '
        iv_tabs_of_vc_items         = 'X'
        iv_vc_items_as_object       = 'X'
        iv_get_statistic            = 'X'
        iv_get_item_ddtext          = 'X'
        iv_get_object_ddtext        = 'X'
        iv_get_item_clidep          = 'X'
        iv_select_via_devclass_list = 'X'
        iv_select_via_object_list   = ' '
        iv_get_devclass             = 'X'
        iv_get_table_delivery_class = 'X'
        iv_get_app_comp             = 'X'
      importing
        es_statistic                = ps_objlist_statistic
      tables
        et_cust_obj                 = pt_cust_obj
        it_devclass_list            = et_devclasses.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 08:12:37 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2007-10-30T08:12:37Z</dc:date>
    <item>
      <title>Finding tables in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-tables-in-a-program/m-p/3004829#M710026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I want to write a report program which returns all transparent database tables and views which belong to a specific application component.How can that be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 05:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-tables-in-a-program/m-p/3004829#M710026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T05:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding tables in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-tables-in-a-program/m-p/3004830#M710027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;you can choose the application component in the popup that comes&lt;/P&gt;&lt;P&gt;then all the tables / views will be stored in the pt_cust_obj internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-pools scust.
type-pools spro.
type-pools cmpwl.

data: ps_objlist_statistic type slcov_s_statistic_type.

data: pt_cust_obj type slcov_s_cust_obj_type occurs 0 with header line.

data:et_devclasses type slcov_devclass_s_type
  occurs 0 with header line,

    call function 'SCT1_DEVCLASS_GET_BY_APP_TREE'
      exporting
        iv_start_x    = 5
        iv_start_y    = 5
      importing
        ev_canceled   = lv_canceled
      tables
        et_devclasses = et_devclasses
      exceptions
        canceled      = 1
        others        = 2.



*get objects according to what is selected
    call function 'SCOV_GET_CUST_OBJECTS'
      exporting
        iv_clidep                   = 'X'
        iv_cliindep                 = 'X'
        iv_obj_type_sel             = 'CLSTV'
        iv_img_relation             = 'X'
        iv_no_img_relation          = ' '
        iv_tabs_of_vc_items         = 'X'
        iv_vc_items_as_object       = 'X'
        iv_get_statistic            = 'X'
        iv_get_item_ddtext          = 'X'
        iv_get_object_ddtext        = 'X'
        iv_get_item_clidep          = 'X'
        iv_select_via_devclass_list = 'X'
        iv_select_via_object_list   = ' '
        iv_get_devclass             = 'X'
        iv_get_table_delivery_class = 'X'
        iv_get_app_comp             = 'X'
      importing
        es_statistic                = ps_objlist_statistic
      tables
        et_cust_obj                 = pt_cust_obj
        it_devclass_list            = et_devclasses.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 08:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-tables-in-a-program/m-p/3004830#M710027</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-10-30T08:12:37Z</dc:date>
    </item>
  </channel>
</rss>

