<?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 can i insert into dynamic table  ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554969#M251443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this....&lt;/P&gt;&lt;P&gt;searchsap.techtarget.com/tip/1,289483,sid21_gci783048,00.html &lt;/P&gt;&lt;P&gt;searchsap.techtarget.com/tip/0,289483,sid21_gci1163224,00.html &lt;/P&gt;&lt;P&gt;/people/community.user/blog/2006/11/08/calling-smartforms-dynamically-using-dynamic-function-parameters &lt;/P&gt;&lt;P&gt;sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;d=3038&amp;amp;a=s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Nov 2006 04:45:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-19T04:45:03Z</dc:date>
    <item>
      <title>how can i insert into dynamic table  ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554966#M251440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have regular internal table with data  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have dynamic table &amp;lt;dyn_tab&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i insert the data from itab &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ITAB TO &amp;lt;LS_LINE&amp;gt;.&lt;/P&gt;&lt;P&gt;    INSERT &amp;lt;LS_LINE&amp;gt; INTO TABLE &amp;lt;DYN_TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK  , NOW I WANT TO ADD THE DATA FROM OTHER TABLE &lt;/P&gt;&lt;P&gt;THAT HOLD THE DATA THAT ALL THE DYNAMIC TAB BUILD FOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I DO THIS INSERT  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I NEED TO INSERT "KOSTL" TO MATCH LINE in &amp;lt;DYN_TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS WHAT I TRIED TO DO :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SHIFT INDX1 LEFT DELETING LEADING SPACE.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'KOSTL' INDX1 INTO FIELD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN COMPONENT FIELD  OF STRUCTURE &amp;lt;DYN_TABLE&amp;gt; TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt; &amp;lt;FS&amp;gt; = IT_EKKN-KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  but i get dump that &amp;lt;FS&amp;gt; not been assign .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554966#M251440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: how can i insert into dynamic table  ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554967#M251441</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;Have a look at this link which will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://fr1041.de.bosch.com/saphelp46c/helpdata/en/fc/eb3923358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://fr1041.de.bosch.com/saphelp46c/helpdata/en/fc/eb3923358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554967#M251441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: how can i insert into dynamic table  ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554968#M251442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2006 02:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554968#M251442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-19T02:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: how can i insert into dynamic table  ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554969#M251443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this....&lt;/P&gt;&lt;P&gt;searchsap.techtarget.com/tip/1,289483,sid21_gci783048,00.html &lt;/P&gt;&lt;P&gt;searchsap.techtarget.com/tip/0,289483,sid21_gci1163224,00.html &lt;/P&gt;&lt;P&gt;/people/community.user/blog/2006/11/08/calling-smartforms-dynamically-using-dynamic-function-parameters &lt;/P&gt;&lt;P&gt;sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;d=3038&amp;amp;a=s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2006 04:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554969#M251443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-19T04:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: how can i insert into dynamic table  ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554970#M251444</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;pls chk the sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zmaschl_create_data_dynamic . 

TYPE-POOLS: slis. 

DATA: it_fcat TYPE slis_t_fieldcat_alv, 
is_fcat LIKE LINE OF it_fcat. 
DATA: it_fieldcat TYPE lvc_t_fcat, 
is_fieldcat LIKE LINE OF it_fieldcat. 
DATA: new_table TYPE REF TO data. 
DATA: new_line TYPE REF TO data. 
FIELD-SYMBOLS: &amp;lt;l_table&amp;gt; TYPE ANY TABLE, 
&amp;lt;l_line&amp;gt; TYPE ANY, 
&amp;lt;l_field&amp;gt; TYPE ANY. 

* Build fieldcat 
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' 
EXPORTING 
i_structure_name = 'SYST' 
CHANGING 
ct_fieldcat = it_fcat[]. 
LOOP AT it_fcat INTO is_fcat WHERE NOT reptext_ddic IS initial. 
MOVE-CORRESPONDING is_fcat TO is_fieldcat. 
is_fieldcat-fieldname = is_fcat-fieldname. 
is_fieldcat-ref_field = is_fcat-fieldname. 
is_fieldcat-ref_table = is_fcat-ref_tabname. 
APPEND is_fieldcat TO it_fieldcat. 
ENDLOOP. 

* Create a new Table 
CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table 
EXPORTING 
it_fieldcatalog = it_fieldcat 
IMPORTING 
ep_table = new_table. 

* Create a new Line with the same structure of the table. 
ASSIGN new_table-&amp;gt;* TO &amp;lt;l_table&amp;gt;. 
CREATE DATA new_line LIKE LINE OF &amp;lt;l_table&amp;gt;. 
ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;. 

* Test it... 
DO 30 TIMES. 
ASSIGN COMPONENT 'SUBRC' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;. 
&amp;lt;l_field&amp;gt; = sy-index. 
INSERT &amp;lt;l_line&amp;gt; INTO TABLE &amp;lt;l_table&amp;gt;. 
ENDDO. 

LOOP AT &amp;lt;l_table&amp;gt; ASSIGNING &amp;lt;l_line&amp;gt;. 
ASSIGN COMPONENT 'SUBRC' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;. 
WRITE &amp;lt;l_field&amp;gt;. 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;if hlped pls mark points&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2006 07:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-insert-into-dynamic-table/m-p/1554970#M251444</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-19T07:38:13Z</dc:date>
    </item>
  </channel>
</rss>

