<?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 create transparent table on runtime? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644961#M1666089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond and Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info, its very useful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine now, I can create dynamic Z-transparent table successfully.&lt;/P&gt;&lt;P&gt;So, i would like to share the code here in case in future anyone need this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: source TYPE ddobjname,&lt;/P&gt;&lt;P&gt;           target TYPE ddobjname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_got_state   TYPE ddgotstate,&lt;/P&gt;&lt;P&gt;      l_s_dd02v     TYPE dd02v,&lt;/P&gt;&lt;P&gt;      l_s_dd09l     TYPE dd09l,&lt;/P&gt;&lt;P&gt;      l_t_dd03p     TYPE dd03p OCCURS 0,&lt;/P&gt;&lt;P&gt;      l_key         TYPE string,&lt;/P&gt;&lt;P&gt;      l_rc          TYPE sysubrc,&lt;/P&gt;&lt;P&gt;      l_langu_space TYPE rs_bool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;      &amp;lt;l_s_dd03p&amp;gt;   TYPE dd03p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read model table (header and technical settings)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name          = source&lt;/P&gt;&lt;P&gt;    state         = 'A'&lt;/P&gt;&lt;P&gt;    langu         = sy-langu&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    gotstate      = l_got_state&lt;/P&gt;&lt;P&gt;    dd02v_wa      = l_s_dd02v&lt;/P&gt;&lt;P&gt;    dd09l_wa      = l_s_dd09l&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dd03p_tab     = l_t_dd03p&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    illegal_input = 1&lt;/P&gt;&lt;P&gt;    OTHERS        = 2.&lt;/P&gt;&lt;P&gt;IF     sy-subrc    &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;    OR l_got_state &amp;lt;&amp;gt; 'A'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adjust header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_s_dd02v-tabname   = target.&lt;/P&gt;&lt;P&gt;l_s_dd02v-ddtext    = target.&lt;/P&gt;&lt;P&gt;l_s_dd02v-as4user   = sy-uname.&lt;/P&gt;&lt;P&gt;l_s_dd02v-as4date   = sy-datum.&lt;/P&gt;&lt;P&gt;l_s_dd02v-as4time   = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adjust technical settings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_s_dd09l-tabname   = target.&lt;/P&gt;&lt;P&gt;l_s_dd09l-as4user   = sy-uname.&lt;/P&gt;&lt;P&gt;l_s_dd09l-as4date   = sy-datum.&lt;/P&gt;&lt;P&gt;l_s_dd09l-as4time   = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adjust tablnm&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT l_t_dd03p ASSIGNING &amp;lt;l_s_dd03p&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;l_s_dd03p&amp;gt;-tabname = target.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'DDIF_TABL_PUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name              = target&lt;/P&gt;&lt;P&gt;    dd02v_wa          = l_s_dd02v&lt;/P&gt;&lt;P&gt;    dd09l_wa          = l_s_dd09l&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dd03p_tab         = l_t_dd03p&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    tabl_not_found    = 1&lt;/P&gt;&lt;P&gt;    name_inconsistent = 2&lt;/P&gt;&lt;P&gt;    tabl_inconsistent = 3&lt;/P&gt;&lt;P&gt;    put_failure       = 4&lt;/P&gt;&lt;P&gt;    put_refused       = 5&lt;/P&gt;&lt;P&gt;    OTHERS            = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DDIF_TABL_ACTIVATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name        = target&lt;/P&gt;&lt;P&gt;    auth_chk    = rs_c_false&lt;/P&gt;&lt;P&gt;    prid        = -2&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    rc          = l_rc&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    not_found   = 1&lt;/P&gt;&lt;P&gt;    put_failure = 2&lt;/P&gt;&lt;P&gt;    OTHERS      = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kelvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 09:31:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-29T09:31:12Z</dc:date>
    <item>
      <title>How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644945#M1666073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any method to create transparent table on runtime instead of using SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program to copy data from a source table into a target table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, User have to enter source table and target table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then program will get the structure of source table and pass the data into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the internal table again insert the data into the target table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say if the target table does not exist in data dictionary, I will have to create a new target transparent table based on the same structure of the source table during runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 08:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644945#M1666073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644946#M1666074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try integrating a BDC for SE 11 and use field symbols to assign the appropriate table fields and types to the table control. Just a suggestion which i think would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if u d like more info on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, post your code, i could make appropriate changes and present it to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AJ Nayak on Feb 27, 2012 2:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 08:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644946#M1666074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T08:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644947#M1666075</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;Can I have more info about that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not only able to get the structure of the source table, but have no idea on creating the target transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code shows how I get the structure of the source table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA testing_data TYPE STANDARD TABLE OF (source).&lt;/P&gt;&lt;P&gt;ASSIGN testing_data-&amp;gt;* TO &amp;lt;source_table&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 08:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644947#M1666075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T08:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644948#M1666076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I have more info about that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not only able to get the structure of the source table, but have no idea on creating the target transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code shows how I get the structure of the source table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA testing_data TYPE STANDARD TABLE OF (source).&lt;/P&gt;&lt;P&gt;ASSIGN testing_data-&amp;gt;* TO &amp;lt;source_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alright, Basically the logic would be to check if the target table already exists by checking the DD02l Table (passing your target table name. If it does exist, proceed with your process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't exist ( sy-subrc ne 0 ) run a BDC which creates it using the same structure as the source table  assuming you already have the target structure as stated above, you can simply pass the structure values of the source to the appropriate fields in the BDC recording to create the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that some data would have to be hardcoded, such as table description, Package to store the table, and Request number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AJ Nayak on Feb 27, 2012 2:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 08:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644948#M1666076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T08:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644949#M1666077</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;Thanks for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to work on it and get back to you if encounter any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644949#M1666077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644950#M1666078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any time !   I hope it was clear enough. maybe we can wait a while and see if anyone comes up with a better idea. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644950#M1666078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644951#M1666079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abetter way to get the field list of the source table would be the FM &lt;STRONG&gt;DDIF_FIELDINFO_GET&lt;/STRONG&gt;   just pass your table name to it and it will return a list of all the fields, domains etc etc in the 'DFIES_TAB' table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644951#M1666079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T09:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644952#M1666080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perform &lt;/P&gt;&lt;P&gt;- First ask database administrator for allowing user to create database tables in a productive system (...)&lt;/P&gt;&lt;P&gt;- Then read documentation on FM DDIF_TABL_PUT (&lt;STRONG&gt;) (&lt;/STRONG&gt;*)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) DDIF_TABL_GET (with from table) and DDIF_TABL_ACTIVATE can be useful too&lt;/P&gt;&lt;P&gt;(**)  "This function module does not perform any authorization check and  does not write any correction entry." but read first task&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644952#M1666080</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-02-27T09:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644953#M1666081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond, That was an eye opener for me ! &lt;/P&gt;&lt;P&gt;Very informative and useful !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644953#M1666081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644954#M1666082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any example program of DDIF_TABL_GET, DDIF_TABL_PUT and DDIF_TABL_ACTIVATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 06:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644954#M1666082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T06:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644955#M1666083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could easily find program like RRV_BUCKET_REPAIR (form MAIN) via a where-used performed on SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 07:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644955#M1666083</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-02-28T07:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644956#M1666084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope this will help you for acheiving the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the below code. i have emtnioned for creating one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : i_tab 	TYPE TABLE OF  dfies,&lt;/P&gt;&lt;P&gt; wa_tab TYPE dfies,&lt;/P&gt;&lt;P&gt; i_fc  TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt; w_table  TYPE dfies-tabname,&lt;/P&gt;&lt;P&gt; wa_fc TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt; w_dy_table   TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_table&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH : i_fc, i_tab.&lt;/P&gt;&lt;P&gt;CLEAR: wa_tab, w_dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_table   = Source table name from selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**get the structure details and fill the field catalogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_FIELDINFO_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      tabname        = w_table&lt;/P&gt;&lt;P&gt;      langu          = sy-langu&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dfies_tab      = i_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found      = 1&lt;/P&gt;&lt;P&gt;      internal_error = 2&lt;/P&gt;&lt;P&gt;      OTHERS         = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;CLEAR : wa_fc.&lt;/P&gt;&lt;P&gt;  wa_fc-fieldname = wa_tab-fieldname.&lt;/P&gt;&lt;P&gt;  wa_fc-datatype = wa_tab-inttype.&lt;/P&gt;&lt;P&gt;  wa_fc-inttype = wa_tab-inttype.&lt;/P&gt;&lt;P&gt;  wa_fc-intlen = wa_tab-outputlen.&lt;/P&gt;&lt;P&gt;  wa_fc-decimals = wa_tab-decimals.&lt;/P&gt;&lt;P&gt;  wa_fc-ref_table =  w_table.&lt;/P&gt;&lt;P&gt;  wa_fc-ref_field = wa_tab-fieldname.&lt;/P&gt;&lt;P&gt;APPEND wa_fc TO i_fc.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK i_fc[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**if field catalogue is filled, then pass it to method to create the internal table, **which then assign it to field symbol and utilize as required.&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = i_fc&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table        = w_dy_table.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;        UNASSIGN: &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;        ASSIGN w_dy_table-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE u2018Error while creating dynamic tableu2019.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;if the second table is not there, then you can use of the last try endtry with &amp;lt;fs_table2&amp;gt; and you can use further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 10:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644956#M1666084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T10:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644957#M1666085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the below code already successfully get the structure of table SPFLI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_dd03p LIKE dd03p OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;           wa_dd02v LIKE dd02v,&lt;/P&gt;&lt;P&gt;           wa_dd09l LIKE dd09l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name      = 'SPFLI'&lt;/P&gt;&lt;P&gt;      state     = 'A'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      dd02v_wa  = wa_dd02v&lt;/P&gt;&lt;P&gt;      dd09l_wa  = wa_dd09l&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dd03p_tab = t_dd03p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is yes, how to proceed to DDIF_TABL_PUT in order to create a new transparent table based on the structure of table SPFLI (including all the keys, fields, datatype, etc of table SPFLI)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 02:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644957#M1666085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T02:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644958#M1666086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend to use the code which i have given, it is working in production.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 05:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644958#M1666086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T05:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644959#M1666087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, its working. But I am trying to use FM DDIF_TABL_GET, DDIF_TABL_PUT and DDIF_TABL_ACTIVATE to create the dynamic Z-Transparent table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code is almost working, but still with some error. Do you notice any error there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_dd03p LIKE dd03p OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      wa_dd02v LIKE dd02v,&lt;/P&gt;&lt;P&gt;      wa_dd09l LIKE dd09v.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dd03p_internal TYPE STANDARD TABLE OF dd03p,&lt;/P&gt;&lt;P&gt;      abc TYPE dd03p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name          = 'SPFLI'&lt;/P&gt;&lt;P&gt;      state         = 'A'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      dd02v_wa      = wa_dd02v&lt;/P&gt;&lt;P&gt;      dd09l_wa      = wa_dd09l&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dd03p_tab     = t_dd03p&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_input = 1. " Value not Allowed for Parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_dd03p INTO abc.&lt;/P&gt;&lt;P&gt;    APPEND abc TO dd03p_internal.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DELETE t_dd03p WHERE fieldname(2) NE 'VV'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_dd02v-tabname  = 'ZNEWTABLE' .&lt;/P&gt;&lt;P&gt;  wa_dd02v-tabclass = 'TRANSP' .&lt;/P&gt;&lt;P&gt;  wa_dd02v-as4user  = sy-uname .&lt;/P&gt;&lt;P&gt;  wa_dd02v-as4time  = sy-uzeit .&lt;/P&gt;&lt;P&gt;  wa_dd02v-as4date  = sy-datum .&lt;/P&gt;&lt;P&gt;  wa_dd02v-applclass = '' .&lt;/P&gt;&lt;P&gt;  wa_dd02v-authclass = '' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_PUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name      = 'ZNEWTABLE'&lt;/P&gt;&lt;P&gt;      dd02v_wa  = wa_dd02v&lt;/P&gt;&lt;P&gt;      dd09l_wa  = wa_dd09l&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dd03p_tab = dd03p_internal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_ACTIVATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name        = 'ZNEWTABLE' &lt;/P&gt;&lt;P&gt;      auth_chk    = 'X' &lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found   = 1 " Table not Found&lt;/P&gt;&lt;P&gt;      put_failure = 2. " Table could not be Written&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 07:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644959#M1666087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T07:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644960#M1666088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Check source code of RRV_BUCKET_REPAIR which I mentioned earlier, this one is SAP standard, it uses the FM above mentionned and perform some check on database status and perform some db commit too.&lt;/P&gt;&lt;P&gt;- Which return code not equal to 0 do you receive and from which FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 07:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644960#M1666088</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-02-29T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create transparent table on runtime?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644961#M1666089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond and Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info, its very useful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine now, I can create dynamic Z-transparent table successfully.&lt;/P&gt;&lt;P&gt;So, i would like to share the code here in case in future anyone need this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: source TYPE ddobjname,&lt;/P&gt;&lt;P&gt;           target TYPE ddobjname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_got_state   TYPE ddgotstate,&lt;/P&gt;&lt;P&gt;      l_s_dd02v     TYPE dd02v,&lt;/P&gt;&lt;P&gt;      l_s_dd09l     TYPE dd09l,&lt;/P&gt;&lt;P&gt;      l_t_dd03p     TYPE dd03p OCCURS 0,&lt;/P&gt;&lt;P&gt;      l_key         TYPE string,&lt;/P&gt;&lt;P&gt;      l_rc          TYPE sysubrc,&lt;/P&gt;&lt;P&gt;      l_langu_space TYPE rs_bool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;      &amp;lt;l_s_dd03p&amp;gt;   TYPE dd03p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read model table (header and technical settings)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name          = source&lt;/P&gt;&lt;P&gt;    state         = 'A'&lt;/P&gt;&lt;P&gt;    langu         = sy-langu&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    gotstate      = l_got_state&lt;/P&gt;&lt;P&gt;    dd02v_wa      = l_s_dd02v&lt;/P&gt;&lt;P&gt;    dd09l_wa      = l_s_dd09l&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dd03p_tab     = l_t_dd03p&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    illegal_input = 1&lt;/P&gt;&lt;P&gt;    OTHERS        = 2.&lt;/P&gt;&lt;P&gt;IF     sy-subrc    &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;    OR l_got_state &amp;lt;&amp;gt; 'A'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adjust header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_s_dd02v-tabname   = target.&lt;/P&gt;&lt;P&gt;l_s_dd02v-ddtext    = target.&lt;/P&gt;&lt;P&gt;l_s_dd02v-as4user   = sy-uname.&lt;/P&gt;&lt;P&gt;l_s_dd02v-as4date   = sy-datum.&lt;/P&gt;&lt;P&gt;l_s_dd02v-as4time   = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adjust technical settings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_s_dd09l-tabname   = target.&lt;/P&gt;&lt;P&gt;l_s_dd09l-as4user   = sy-uname.&lt;/P&gt;&lt;P&gt;l_s_dd09l-as4date   = sy-datum.&lt;/P&gt;&lt;P&gt;l_s_dd09l-as4time   = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adjust tablnm&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT l_t_dd03p ASSIGNING &amp;lt;l_s_dd03p&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;l_s_dd03p&amp;gt;-tabname = target.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'DDIF_TABL_PUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name              = target&lt;/P&gt;&lt;P&gt;    dd02v_wa          = l_s_dd02v&lt;/P&gt;&lt;P&gt;    dd09l_wa          = l_s_dd09l&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dd03p_tab         = l_t_dd03p&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    tabl_not_found    = 1&lt;/P&gt;&lt;P&gt;    name_inconsistent = 2&lt;/P&gt;&lt;P&gt;    tabl_inconsistent = 3&lt;/P&gt;&lt;P&gt;    put_failure       = 4&lt;/P&gt;&lt;P&gt;    put_refused       = 5&lt;/P&gt;&lt;P&gt;    OTHERS            = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DDIF_TABL_ACTIVATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name        = target&lt;/P&gt;&lt;P&gt;    auth_chk    = rs_c_false&lt;/P&gt;&lt;P&gt;    prid        = -2&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    rc          = l_rc&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    not_found   = 1&lt;/P&gt;&lt;P&gt;    put_failure = 2&lt;/P&gt;&lt;P&gt;    OTHERS      = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kelvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 09:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-transparent-table-on-runtime/m-p/8644961#M1666089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T09:31:12Z</dc:date>
    </item>
  </channel>
</rss>

