<?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 dynamic internal table!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574883#M259573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have got an dynamic internal table generated and i need to pass these values..since it's dynamic the no of values can b any thing from 1 to n..i need to pass these values one by one to some fm and retrieve the value n move it in the dynamic table again in the same order!!&lt;/P&gt;&lt;P&gt;how to achieve the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gunjna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 10:39:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T10:39:52Z</dc:date>
    <item>
      <title>dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574883#M259573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have got an dynamic internal table generated and i need to pass these values..since it's dynamic the no of values can b any thing from 1 to n..i need to pass these values one by one to some fm and retrieve the value n move it in the dynamic table again in the same order!!&lt;/P&gt;&lt;P&gt;how to achieve the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gunjna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 10:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574883#M259573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T10:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574884#M259574</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;this kind of dynamism can be achieved by using field symbols appraoch. Please check if you can use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 10:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574884#M259574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T10:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574885#M259575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;to create the table dynamically you may use following method -&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;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_FIELDCAT&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EP_TABLE        = I_PTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN I_PTABLE-&amp;gt;* TO &amp;lt;I_TABLE&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 10:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574885#M259575</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-09-18T10:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574886#M259576</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 sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;REPORT zmaschl_create_data_dynamic . &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: it_fcat TYPE slis_t_fieldcat_alv, &lt;/P&gt;&lt;P&gt;is_fcat LIKE LINE OF it_fcat. &lt;/P&gt;&lt;P&gt;DATA: it_fieldcat TYPE lvc_t_fcat, &lt;/P&gt;&lt;P&gt;is_fieldcat LIKE LINE OF it_fieldcat. &lt;/P&gt;&lt;P&gt;DATA: new_table TYPE REF TO data. &lt;/P&gt;&lt;P&gt;DATA: new_line TYPE REF TO data. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;l_table&amp;gt; TYPE ANY TABLE, &lt;/P&gt;&lt;P&gt;&amp;lt;l_line&amp;gt; TYPE ANY, &lt;/P&gt;&lt;P&gt;&amp;lt;l_field&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build fieldcat &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;i_structure_name = 'SYST' &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;ct_fieldcat = it_fcat[]. &lt;/P&gt;&lt;P&gt;LOOP AT it_fcat INTO is_fcat WHERE NOT reptext_ddic IS initial. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING is_fcat TO is_fieldcat. &lt;/P&gt;&lt;P&gt;is_fieldcat-fieldname = is_fcat-fieldname. &lt;/P&gt;&lt;P&gt;is_fieldcat-ref_field = is_fcat-fieldname. &lt;/P&gt;&lt;P&gt;is_fieldcat-ref_table = is_fcat-ref_tabname. &lt;/P&gt;&lt;P&gt;APPEND is_fieldcat TO it_fieldcat. &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 a new Table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = it_fieldcat &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;ep_table = new_table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create a new Line with the same structure of the table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ASSIGN new_table-&amp;gt;* TO &amp;lt;l_table&amp;gt;. &lt;/P&gt;&lt;P&gt;CREATE DATA new_line LIKE LINE OF &amp;lt;l_table&amp;gt;. &lt;/P&gt;&lt;P&gt;ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Test it... &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DO 30 TIMES. &lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'SUBRC' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;. &lt;/P&gt;&lt;P&gt;&amp;lt;l_field&amp;gt; = sy-index. &lt;/P&gt;&lt;P&gt;INSERT &amp;lt;l_line&amp;gt; INTO TABLE &amp;lt;l_table&amp;gt;. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;l_table&amp;gt; ASSIGNING &amp;lt;l_line&amp;gt;. &lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'SUBRC' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;. &lt;/P&gt;&lt;P&gt;WRITE &amp;lt;l_field&amp;gt;. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do reward if it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 11:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574886#M259576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574887#M259577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have recently done something similar, This is similar to what you need. Obviously with a couple of changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 10 TIMES.&lt;/P&gt;&lt;P&gt;  READ TABLE &amp;lt;t1&amp;gt; ASSIGNING &amp;lt;line_table1&amp;gt; INDEX loop_count.&lt;/P&gt;&lt;P&gt;    LOOP AT fields INTO field.&lt;/P&gt;&lt;P&gt;      fieldname = field-fieldname.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT fieldname OF STRUCTURE&lt;/P&gt;&lt;P&gt;         &amp;lt;line_table1&amp;gt; TO &amp;lt;field_table1&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 11:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574887#M259577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T11:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574888#M259578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after gettin the fieldname shall i pass it to FM and then return parameter to be used to create using ur statement&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT fieldname OF STRUCTURE&lt;/P&gt;&lt;P&gt;&amp;lt;line_table1&amp;gt; TO &amp;lt;field_table1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can both the dynamic internal table be same?the one we use in the starting n after passing it fm ..the return value's internal table..do i need to create catalogue in the starting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 11:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574888#M259578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574889#M259579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gunjan,&lt;/P&gt;&lt;P&gt;   I hope u r asking about how to populate the data into the dynamically created internal table ,Please try the following method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep ur final data into one internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the dynamic internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a temporary internal table using the field symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;gt; type any&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_line&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say ur dynamic internal table is &amp;lt;itab&amp;gt; and the data is present in internal table t_final .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; assign local copy of &amp;lt;itab&amp;gt; to &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;v_lines = 1.&lt;/P&gt;&lt;P&gt;loop at t_final.&lt;/P&gt;&lt;P&gt;at new (keyfield).&lt;/P&gt;&lt;P&gt;  assgin v_lines of structure &amp;lt;fs_table&amp;gt; to &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;fs_line&amp;gt; = t_final-field1.&lt;/P&gt;&lt;P&gt;  v_lines = v_lines + 1.&lt;/P&gt;&lt;P&gt;  assgin v_lines of structure &amp;lt;fs_table&amp;gt; to &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;fs_line&amp;gt; = t_final-field1.&lt;/P&gt;&lt;P&gt;  v_lines = v_lines + 1.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;   assgin v_lines of structure &amp;lt;fs_table&amp;gt; to &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;fs_line&amp;gt; = t_final-field1.&lt;/P&gt;&lt;P&gt;  v_lines = v_lines + 1.&lt;/P&gt;&lt;P&gt;   assgin v_lines of structure &amp;lt;fs_table&amp;gt; to &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;fs_line&amp;gt; = t_final-field1.&lt;/P&gt;&lt;P&gt;  v_lines = v_lines + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of (keyfield)&lt;/P&gt;&lt;P&gt; append &amp;lt;fs_table&amp;gt; to &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the above method(syntaxes used may not be correct)..Hope it will be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 11:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574889#M259579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T11:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic internal table!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574890#M259580</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 have got five(may vary for each row) dynamic columns(fld1--fld5) in my dynamic internal table ...which has value 1 2 3 4 5...&lt;/P&gt;&lt;P&gt;i have to pass these 5 values one by one to some FM and the export parameter needs to be stored in the same dynamic internal table with diff col (fld6-fld10)..&lt;/P&gt;&lt;P&gt;how shall i go about them?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 11:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1574890#M259580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T11:49:22Z</dc:date>
    </item>
  </channel>
</rss>

