<?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 insert into database table dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290945#M1023591</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;My requirement is i have one table with 4 userdefined fields. In future there may be a chance of adding few more userdefined fields. So each time whenever they are changing the table i have to change the RFC so for avoiding this i am creating one RFC for inserting datas into DB table. Two import parameters are field name &amp;amp; field value. So based on the fieldname that value should be added in that place of the DB table. How can i write code for that. please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 11:30:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-29T11:30:33Z</dc:date>
    <item>
      <title>insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290945#M1023591</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;My requirement is i have one table with 4 userdefined fields. In future there may be a chance of adding few more userdefined fields. So each time whenever they are changing the table i have to change the RFC so for avoiding this i am creating one RFC for inserting datas into DB table. Two import parameters are field name &amp;amp; field value. So based on the fieldname that value should be added in that place of the DB table. How can i write code for that. please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290945#M1023591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290946#M1023592</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;You can achieve this using Field symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component 'field1' of structure &amp;lt;fs_dynamic_tab&amp;gt; to &amp;lt;fs_field1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then assign the value to the FS and update the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290946#M1023592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290947#M1023593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it can easly get by using field symbols&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290947#M1023593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290948#M1023594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can do like that.&lt;/P&gt;&lt;P&gt;Selection parameters, select options will be changed to IMPORTING PARAMETERS.(all these parameters should be pass by value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And If your report contains some Output. then You have to use export or Table parameters For Output table parameters.&lt;/P&gt;&lt;P&gt;and write your code in source code tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290948#M1023594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290949#M1023595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In RFC's can we use field symbols.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u give me small example. i never worked on field symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290949#M1023595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290950#M1023596</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; create data ls_tabn like line of &amp;lt;dbtab&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  assign ls_tabn-&amp;gt;* to &amp;lt;ls_final&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  concatenate lw_tabn va_vbeln into lw_fname separated by '-'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  assign component lw_fname of structure &amp;lt;ls_final&amp;gt;&lt;/P&gt;&lt;P&gt;                               to &amp;lt;ls_fieldval&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    &amp;lt;ls_fieldval&amp;gt; = (value).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert into &amp;lt;dbtab&amp;gt; from &amp;lt;ls_final&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290950#M1023596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290951#M1023597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not clear.. i have to declare field symbol na&lt;/P&gt;&lt;P&gt;Here what is ls_final &amp;amp; ls_fieldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hima on Jul 29, 2008 1:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 11:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290951#M1023597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T11:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: insert into database table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290952#M1023598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  field symbol is nothing but workarea.&lt;/P&gt;&lt;P&gt;  u need not to clear the fieldsymbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 12:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-database-table-dynamically/m-p/4290952#M1023598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T12:29:22Z</dc:date>
    </item>
  </channel>
</rss>

