<?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: Using Check table after dynamic selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355444#M1541317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to all your question is YES! Check the code below for the details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_table TYPE tabname OBLIGATORY.

DATA: lcl_struc TYPE REF TO cl_abap_structdescr,
      it_ddic_detail TYPE ddfields,
      wa_ddic_detail TYPE dfies.

lcl_struc ?= cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).

* Check if the structure is DDIC
CHECK lcl_struc-&amp;gt;is_ddic_type( ) = 'X'.
it_ddic_detail = lcl_struc-&amp;gt;get_ddic_field_list( ).

READ TABLE it_ddic_detail INTO wa_ddic_detail
WITH KEY fieldname = 'KSCHL'.
CHECK sy-subrc = 0.
WRITE: 'Check table for KSCHL:', 30 wa_ddic_detail-checktable.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 07:05:22 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-10-11T07:05:22Z</dc:date>
    <item>
      <title>Using Check table after dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355442#M1541315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB A006 is described dynamically using concatinate.&lt;/P&gt;&lt;P&gt;Concatinate 'var1' 'var2' into var3 --&amp;gt; result = A006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;I want to describe var3 using  the method cl_abap_typedescr=&amp;gt;describe_by_data&lt;/P&gt;&lt;P&gt;Q:&lt;/P&gt;&lt;P&gt;Is this possible. If yes, please how??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;I then want to access the compoment field of var3. Example A003-KSCHA&lt;/P&gt;&lt;P&gt;Q:&lt;/P&gt;&lt;P&gt;Is this possible. If yes, please how??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;If point 2 above is successful, I want to access the Check table of A003-KSCHA (T681A)&lt;/P&gt;&lt;P&gt;Q:&lt;/P&gt;&lt;P&gt;Is this possible. If yes, please how??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ys,&lt;/P&gt;&lt;P&gt;Blacky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 12:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355442#M1541315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T12:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Check table after dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355443#M1541316</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;If A006 is a table name then you can find the it's field information using fm DDIF_FIELDINFO_GET, you also get the check table name for every field from the o/p of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amitava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 04:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355443#M1541316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T04:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Check table after dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355444#M1541317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to all your question is YES! Check the code below for the details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_table TYPE tabname OBLIGATORY.

DATA: lcl_struc TYPE REF TO cl_abap_structdescr,
      it_ddic_detail TYPE ddfields,
      wa_ddic_detail TYPE dfies.

lcl_struc ?= cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).

* Check if the structure is DDIC
CHECK lcl_struc-&amp;gt;is_ddic_type( ) = 'X'.
it_ddic_detail = lcl_struc-&amp;gt;get_ddic_field_list( ).

READ TABLE it_ddic_detail INTO wa_ddic_detail
WITH KEY fieldname = 'KSCHL'.
CHECK sy-subrc = 0.
WRITE: 'Check table for KSCHL:', 30 wa_ddic_detail-checktable.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355444#M1541317</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-11T07:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Check table after dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355445#M1541318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u all for your suggestion, but i have solved this problem myself.&lt;/P&gt;&lt;P&gt;How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I selected all fields of database DD03L Dynamically... &lt;/P&gt;&lt;P&gt;            Select * from dd03l into table itab where tabname = my_dynamic_table_value&lt;/P&gt;&lt;P&gt;2. Loop over ITAB into WA_ITAB&lt;/P&gt;&lt;P&gt;§. Dynamic selection of CHECKTABLE... &lt;/P&gt;&lt;P&gt;          DATA: line(72) TYPE c,&lt;/P&gt;&lt;P&gt;            list LIKE TABLE OF line .&lt;/P&gt;&lt;P&gt;           Select (gs_filedname_of_check_table) into table LIST from (my_dynamic_checktable_value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 12:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-check-table-after-dynamic-selection/m-p/7355445#M1541318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T12:45:46Z</dc:date>
    </item>
  </channel>
</rss>

