<?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: Creating dynamic internal table with deep structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173961#M123888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frédéric,&lt;/P&gt;&lt;P&gt;I hope my english is good enough to explain it correctly:&lt;/P&gt;&lt;P&gt;We use a function builder for SEM-BPS which copies data from one Cube to another. This Cube is transactional, so you can't easily read a structure out of DDIC.&lt;/P&gt;&lt;P&gt;The export parameter of this function builder is a table with type 'any table'.&lt;/P&gt;&lt;P&gt;Until today we used a fixed definition e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TYPES:&lt;/P&gt;&lt;P&gt;    BEGIN OF xtyp_chas,&lt;/P&gt;&lt;P&gt;     /sie/sr_ocomp TYPE /b52/oisr_ocomp,&lt;/P&gt;&lt;P&gt;     /sie/ts_03psp TYPE /b52/oits_03psp,&lt;/P&gt;&lt;P&gt;     0activity     TYPE /bi0/oiactivity,&lt;/P&gt;&lt;P&gt;     0acty_elemt   TYPE /bi0/oiacty_elemt,&lt;/P&gt;&lt;P&gt;     0costelmnt    TYPE /bi0/oicostelmnt,&lt;/P&gt;&lt;P&gt;     0co_area      TYPE /bi0/oico_area,&lt;/P&gt;&lt;P&gt;     0creditor     TYPE /bi0/oicreditor,&lt;/P&gt;&lt;P&gt;     0currency     TYPE /bi0/oicurrency,&lt;/P&gt;&lt;P&gt;     0curtype      TYPE /bi0/oicurtype,&lt;/P&gt;&lt;P&gt;     0db_cr_ind    TYPE /bi0/oidb_cr_ind,&lt;/P&gt;&lt;P&gt;     0fiscper      TYPE /bi0/oifiscper,&lt;/P&gt;&lt;P&gt;     0fiscper3     TYPE /bi0/oifiscper3,&lt;/P&gt;&lt;P&gt;     0fiscyear     TYPE /bi0/oifiscyear,&lt;/P&gt;&lt;P&gt;     0metype       TYPE /bi0/oimetype,&lt;/P&gt;&lt;P&gt;     0network      TYPE /bi0/oinetwork,&lt;/P&gt;&lt;P&gt;     0part_actty   TYPE /bi0/oipart_actty,&lt;/P&gt;&lt;P&gt;     0part_cctr    TYPE /bi0/oipart_cctr,&lt;/P&gt;&lt;P&gt;     0piobjsv      TYPE /bi0/oipiobjsv,&lt;/P&gt;&lt;P&gt;     0project      TYPE /bi0/oiproject,&lt;/P&gt;&lt;P&gt;     0unit         TYPE /bi0/oiunit,&lt;/P&gt;&lt;P&gt;     0vtdetail     TYPE /bi0/oivtdetail,&lt;/P&gt;&lt;P&gt;     0vtstat       TYPE /bi0/oivtstat,&lt;/P&gt;&lt;P&gt;     0vtype        TYPE /bi0/oivtype,&lt;/P&gt;&lt;P&gt;     0bus_area     TYPE /bi0/oibus_area,&lt;/P&gt;&lt;P&gt;     0cashdetail   TYPE /bi0/oicashdetail,&lt;/P&gt;&lt;P&gt;     0cashtype     TYPE /bi0/oicashtype,&lt;/P&gt;&lt;P&gt;     0comp_code    TYPE /bi0/oicomp_code,&lt;/P&gt;&lt;P&gt;     0coorder      TYPE /bi0/oicoorder,&lt;/P&gt;&lt;P&gt;     0cs_dimen     TYPE /bi0/oics_dimen,&lt;/P&gt;&lt;P&gt;     0cs_unit      TYPE /bi0/oics_unit,&lt;/P&gt;&lt;P&gt;     0int_bus      TYPE /bi0/oiint_bus,&lt;/P&gt;&lt;P&gt;     0part_abcpr   TYPE /bi0/oipart_abcpr,&lt;/P&gt;&lt;P&gt;     0part_coord   TYPE /bi0/oipart_coord,&lt;/P&gt;&lt;P&gt;     0part_wbsel   TYPE /bi0/oipart_wbsel,&lt;/P&gt;&lt;P&gt;     0piovalue     TYPE /bi0/oipiovalue,&lt;/P&gt;&lt;P&gt;     0profit_ctr   TYPE /bi0/oiprofit_ctr,&lt;/P&gt;&lt;P&gt;     0ps_obj       TYPE /bi0/oips_obj,&lt;/P&gt;&lt;P&gt;     0statussys0   TYPE /bi0/oistatussys0,&lt;/P&gt;&lt;P&gt;     zfbwheroj     TYPE /bic/oizfbwheroj,&lt;/P&gt;&lt;P&gt;    END   OF xtyp_chas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BEGIN OF xtyp_kyfs,&lt;/P&gt;&lt;P&gt;      0amount      TYPE /bi0/oiamount,&lt;/P&gt;&lt;P&gt;      0quantity    TYPE /bi0/oiquantity,&lt;/P&gt;&lt;P&gt;      zf03oaws     TYPE /bic/oizf03oaws,&lt;/P&gt;&lt;P&gt;      zf03oqty     TYPE /bic/oizf03oqty,&lt;/P&gt;&lt;P&gt;      zf03ozsta    TYPE /bic/oizf03ozsta,&lt;/P&gt;&lt;P&gt;    END OF xtyp_kyfs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BEGIN OF xtyp_zf03g003,&lt;/P&gt;&lt;P&gt;      s_chas TYPE xtyp_chas,&lt;/P&gt;&lt;P&gt;      s_kyfs TYPE xtyp_kyfs,&lt;/P&gt;&lt;P&gt;    END   OF xtyp_zf03g003,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    xtyp_zf03g003_t TYPE HASHED TABLE OF xtyp_zf03g003&lt;/P&gt;&lt;P&gt;                      WITH UNIQUE KEY s_chas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_ibm_data TYPE xtyp_zf03g003_t,&lt;/P&gt;&lt;P&gt;      ls_ibm_data TYPE xtyp_zf03g003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So one table (s_chas) contains the characteristics of the Cube and the other (s_kyfs) contains the keyfigures. That's exactly the format we need for the export parameter. At the end of the program, we use the following coding to fill the export table (eto_chas):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_ibm_data into ls_ibm_data.&lt;/P&gt;&lt;P&gt;  collect ls_ibm_data-s_chas into eto_chas.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this moment I give this table the structure that is needed to move the data into the cube. I can't change the requirement because it is a standard interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to change that coding to be dynamically. Because if somebody changes a charasteristic or a keyfigure in the cube, we would have to change the function builder too. I don't think that the SEM-BPS department will let us know every time they've changed something anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I hope that my explanation wasn't too confusing &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2006 16:20:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-10T16:20:27Z</dc:date>
    <item>
      <title>Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173956#M123883</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;I need to create an internal table with deep structure dynamically. I've already created tables with method 'create_dynamic_table' but I'm struggling with the deep structure.&lt;/P&gt;&lt;P&gt;I would need an internal table with the following structure: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF lt_t1, &lt;/P&gt;&lt;P&gt;s1 TYPE REF TO data, &lt;/P&gt;&lt;P&gt;s2 TYPE REF TO data, &lt;/P&gt;&lt;P&gt;END OF lt_t1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1 and S2 have to be tables. &lt;/P&gt;&lt;P&gt;It might be possible with RTTS but all the examples in the forums (that I've found so far) are related to at least one DDIC-structure. And that's my problem because both tables are created during runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173956#M123883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T12:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173957#M123884</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;Look if this weblog gives you any help for creating a deep structure dynamic table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173957#M123884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T12:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173958#M123885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you could read the source code of Create_Dynamic_Table. In fact, SAP create a report, launch this report in memory and make a field-symbols on the table create in this report.&lt;/P&gt;&lt;P&gt;Maybe you could create your own program generator ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173958#M123885</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-01-10T12:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173959#M123886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhaskar,&lt;/P&gt;&lt;P&gt;I've already found this weblog while searching the forum but I can't find a solution there for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric,&lt;/P&gt;&lt;P&gt;this will be a lot of work but might be a solution; I've checked the method - in the end is SAP creating a subroutine pool. But I'm sure that there must be an easier way to create a deep structure table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 15:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173959#M123886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T15:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173960#M123887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why do you need that ?  maybe the solution is to change your requierement ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two dynamic table couldn't be a solution ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 15:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173960#M123887</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-01-10T15:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173961#M123888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frédéric,&lt;/P&gt;&lt;P&gt;I hope my english is good enough to explain it correctly:&lt;/P&gt;&lt;P&gt;We use a function builder for SEM-BPS which copies data from one Cube to another. This Cube is transactional, so you can't easily read a structure out of DDIC.&lt;/P&gt;&lt;P&gt;The export parameter of this function builder is a table with type 'any table'.&lt;/P&gt;&lt;P&gt;Until today we used a fixed definition e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TYPES:&lt;/P&gt;&lt;P&gt;    BEGIN OF xtyp_chas,&lt;/P&gt;&lt;P&gt;     /sie/sr_ocomp TYPE /b52/oisr_ocomp,&lt;/P&gt;&lt;P&gt;     /sie/ts_03psp TYPE /b52/oits_03psp,&lt;/P&gt;&lt;P&gt;     0activity     TYPE /bi0/oiactivity,&lt;/P&gt;&lt;P&gt;     0acty_elemt   TYPE /bi0/oiacty_elemt,&lt;/P&gt;&lt;P&gt;     0costelmnt    TYPE /bi0/oicostelmnt,&lt;/P&gt;&lt;P&gt;     0co_area      TYPE /bi0/oico_area,&lt;/P&gt;&lt;P&gt;     0creditor     TYPE /bi0/oicreditor,&lt;/P&gt;&lt;P&gt;     0currency     TYPE /bi0/oicurrency,&lt;/P&gt;&lt;P&gt;     0curtype      TYPE /bi0/oicurtype,&lt;/P&gt;&lt;P&gt;     0db_cr_ind    TYPE /bi0/oidb_cr_ind,&lt;/P&gt;&lt;P&gt;     0fiscper      TYPE /bi0/oifiscper,&lt;/P&gt;&lt;P&gt;     0fiscper3     TYPE /bi0/oifiscper3,&lt;/P&gt;&lt;P&gt;     0fiscyear     TYPE /bi0/oifiscyear,&lt;/P&gt;&lt;P&gt;     0metype       TYPE /bi0/oimetype,&lt;/P&gt;&lt;P&gt;     0network      TYPE /bi0/oinetwork,&lt;/P&gt;&lt;P&gt;     0part_actty   TYPE /bi0/oipart_actty,&lt;/P&gt;&lt;P&gt;     0part_cctr    TYPE /bi0/oipart_cctr,&lt;/P&gt;&lt;P&gt;     0piobjsv      TYPE /bi0/oipiobjsv,&lt;/P&gt;&lt;P&gt;     0project      TYPE /bi0/oiproject,&lt;/P&gt;&lt;P&gt;     0unit         TYPE /bi0/oiunit,&lt;/P&gt;&lt;P&gt;     0vtdetail     TYPE /bi0/oivtdetail,&lt;/P&gt;&lt;P&gt;     0vtstat       TYPE /bi0/oivtstat,&lt;/P&gt;&lt;P&gt;     0vtype        TYPE /bi0/oivtype,&lt;/P&gt;&lt;P&gt;     0bus_area     TYPE /bi0/oibus_area,&lt;/P&gt;&lt;P&gt;     0cashdetail   TYPE /bi0/oicashdetail,&lt;/P&gt;&lt;P&gt;     0cashtype     TYPE /bi0/oicashtype,&lt;/P&gt;&lt;P&gt;     0comp_code    TYPE /bi0/oicomp_code,&lt;/P&gt;&lt;P&gt;     0coorder      TYPE /bi0/oicoorder,&lt;/P&gt;&lt;P&gt;     0cs_dimen     TYPE /bi0/oics_dimen,&lt;/P&gt;&lt;P&gt;     0cs_unit      TYPE /bi0/oics_unit,&lt;/P&gt;&lt;P&gt;     0int_bus      TYPE /bi0/oiint_bus,&lt;/P&gt;&lt;P&gt;     0part_abcpr   TYPE /bi0/oipart_abcpr,&lt;/P&gt;&lt;P&gt;     0part_coord   TYPE /bi0/oipart_coord,&lt;/P&gt;&lt;P&gt;     0part_wbsel   TYPE /bi0/oipart_wbsel,&lt;/P&gt;&lt;P&gt;     0piovalue     TYPE /bi0/oipiovalue,&lt;/P&gt;&lt;P&gt;     0profit_ctr   TYPE /bi0/oiprofit_ctr,&lt;/P&gt;&lt;P&gt;     0ps_obj       TYPE /bi0/oips_obj,&lt;/P&gt;&lt;P&gt;     0statussys0   TYPE /bi0/oistatussys0,&lt;/P&gt;&lt;P&gt;     zfbwheroj     TYPE /bic/oizfbwheroj,&lt;/P&gt;&lt;P&gt;    END   OF xtyp_chas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BEGIN OF xtyp_kyfs,&lt;/P&gt;&lt;P&gt;      0amount      TYPE /bi0/oiamount,&lt;/P&gt;&lt;P&gt;      0quantity    TYPE /bi0/oiquantity,&lt;/P&gt;&lt;P&gt;      zf03oaws     TYPE /bic/oizf03oaws,&lt;/P&gt;&lt;P&gt;      zf03oqty     TYPE /bic/oizf03oqty,&lt;/P&gt;&lt;P&gt;      zf03ozsta    TYPE /bic/oizf03ozsta,&lt;/P&gt;&lt;P&gt;    END OF xtyp_kyfs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BEGIN OF xtyp_zf03g003,&lt;/P&gt;&lt;P&gt;      s_chas TYPE xtyp_chas,&lt;/P&gt;&lt;P&gt;      s_kyfs TYPE xtyp_kyfs,&lt;/P&gt;&lt;P&gt;    END   OF xtyp_zf03g003,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    xtyp_zf03g003_t TYPE HASHED TABLE OF xtyp_zf03g003&lt;/P&gt;&lt;P&gt;                      WITH UNIQUE KEY s_chas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_ibm_data TYPE xtyp_zf03g003_t,&lt;/P&gt;&lt;P&gt;      ls_ibm_data TYPE xtyp_zf03g003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So one table (s_chas) contains the characteristics of the Cube and the other (s_kyfs) contains the keyfigures. That's exactly the format we need for the export parameter. At the end of the program, we use the following coding to fill the export table (eto_chas):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_ibm_data into ls_ibm_data.&lt;/P&gt;&lt;P&gt;  collect ls_ibm_data-s_chas into eto_chas.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this moment I give this table the structure that is needed to move the data into the cube. I can't change the requirement because it is a standard interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to change that coding to be dynamically. Because if somebody changes a charasteristic or a keyfigure in the cube, we would have to change the function builder too. I don't think that the SEM-BPS department will let us know every time they've changed something anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I hope that my explanation wasn't too confusing &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173961#M123888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173962#M123889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was little busy, but, I thought about your problem. Does this solution help you  ? :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztestfg0003.



data : it_dyn_table1    type ref to data ,
       it_dyn_table2    type ref to data ,
       it_fieldcatalog  type lvc_t_fcat ,
       begin of is_pwet ,
         t000 type ref to data ,
         t001 type ref to data ,
       end   of is_pwet .




field-symbols : &amp;lt;it_t000&amp;gt;  type standard table ,
                &amp;lt;it_t001&amp;gt;  type standard table ,
                &amp;lt;it_pwet&amp;gt;  type any.





* Get fieldcatalog of first table.
  refresh it_fieldcatalog.
  call function 'LVC_FIELDCATALOG_MERGE'
       exporting
            i_structure_name   = 'T000'
            i_bypassing_buffer = 'X'
       changing
            ct_fieldcat        = it_fieldcatalog.

* Create a dynamic internal table for T000.
  call method cl_alv_table_create=&amp;gt;create_dynamic_table
       exporting it_fieldcatalog = it_fieldcatalog
       importing ep_table        = is_pwet-t000.

  assign is_pwet-t000-&amp;gt;* to &amp;lt;it_t000&amp;gt;.





* Get fieldcatalog of second table.
  refresh it_fieldcatalog.
  call function 'LVC_FIELDCATALOG_MERGE'
       exporting
            i_structure_name   = 'T001'
            i_bypassing_buffer = 'X'
       changing
            ct_fieldcat        = it_fieldcatalog.

* Create a dynamic internal table for T001.
  call method cl_alv_table_create=&amp;gt;create_dynamic_table
       exporting it_fieldcatalog = it_fieldcatalog
       importing ep_table        = is_pwet-t001.

  assign is_pwet-t001-&amp;gt;* to &amp;lt;it_t001&amp;gt;.



* Set data into T000 / T001.
  select *
         into table &amp;lt;it_t000&amp;gt;
         from t000.

  select *
         into table &amp;lt;it_t001&amp;gt;
         from t001.

  break siebec.

  assign is_pwet to &amp;lt;it_pwet&amp;gt;.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 09:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173962#M123889</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-01-12T09:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173963#M123890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frédéric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for your help, I've rewarded you points. I tried your solution and it works pretty well, the only problem I have is that I don't know how to move the data into my internal table eto_chas. Table  contains the reference of the data not the data itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, many thanks&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 10:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173963#M123890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T10:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173964#M123891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, &amp;lt;IT_PWET&amp;gt; contains reference, and you need to assign this reference to others field-symbols type standard table to be able to set data inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to find another solution, but, it's little hard &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 10:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173964#M123891</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-01-12T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic internal table with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173965#M123892</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;I am also having the similar requirement.&lt;/P&gt;&lt;P&gt;In my case, number of internal tables can be determined on runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could you people help me out with the approach to be followed for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 14:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-with-deep-structure/m-p/1173965#M123892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T14:37:51Z</dc:date>
    </item>
  </channel>
</rss>

