<?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 data into a database table from a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091195#M1507184</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 am need to insert data into a table from  the text file. I pull the data into an internal table using GUI_UPLoad. I read the data into an internal table and concatenate data into a string. I need to do this because the structure of the table is dynamic. it is used to upload a series of tables each with different structure, But the data is stored in the string v_tabledata.  How to do that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after uploading the data  from the textt file into a table &lt;/P&gt;&lt;P&gt;oop at i_final.&lt;/P&gt;&lt;P&gt;   v_tabname = i_final-table_name.&lt;/P&gt;&lt;P&gt;  concatenate i_final-table_rec1 i_final-table_rec2 i_final-table_rec3&lt;/P&gt;&lt;P&gt;              i_final-table_rec4 i_final-table_rec5 into v_tabledata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from  'v_table data'  i need to upload the data into a table and the structue of the table is known dynamically. Any thoughts using field symbols? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 13:28:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-15T13:28:08Z</dc:date>
    <item>
      <title>insert data into a database table from a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091195#M1507184</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 am need to insert data into a table from  the text file. I pull the data into an internal table using GUI_UPLoad. I read the data into an internal table and concatenate data into a string. I need to do this because the structure of the table is dynamic. it is used to upload a series of tables each with different structure, But the data is stored in the string v_tabledata.  How to do that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after uploading the data  from the textt file into a table &lt;/P&gt;&lt;P&gt;oop at i_final.&lt;/P&gt;&lt;P&gt;   v_tabname = i_final-table_name.&lt;/P&gt;&lt;P&gt;  concatenate i_final-table_rec1 i_final-table_rec2 i_final-table_rec3&lt;/P&gt;&lt;P&gt;              i_final-table_rec4 i_final-table_rec5 into v_tabledata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from  'v_table data'  i need to upload the data into a table and the structue of the table is known dynamically. Any thoughts using field symbols? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 13:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091195#M1507184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T13:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into a database table from a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091196#M1507185</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;just a follow up, i am trying something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decl...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs_table&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; assign (v_tabname) to &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;assign the table name to the FS and then try to modify.  something on the similar lines...&lt;/P&gt;&lt;P&gt;   modify &amp;lt;fs_table&amp;gt; from v_tabledata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 13:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091196#M1507185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into a database table from a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091197#M1507186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me see if I've understood your issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a file to be uploaded into an internal table but this file has many different layouts and then you don't know how to link these fields with the internal table...is it your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you've read the internal table, you've sent it to a string divided by space or something else and then are you trying to read this string to send it to a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could read the standard tables which maintain the program names, table names etc... (DD* tables, as the DD03L table) and then create some rules...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could create a parameter table to read your file/table dynamically...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, try to rewrite in other words your problem...because there are a lot of ways to achieve your issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre Mendes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 14:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091197#M1507186</guid>
      <dc:creator>AlexandreMendes</dc:creator>
      <dc:date>2010-07-15T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into a database table from a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091198#M1507187</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;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TY_VALUE,&lt;/P&gt;&lt;P&gt;        VALUE(10) TYPE C,&lt;/P&gt;&lt;P&gt;        VALUE1(20) TYPE C,&lt;/P&gt;&lt;P&gt;   END OF TY_VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : WA TYPE TY_VALUE,&lt;/P&gt;&lt;P&gt;      LV_VALUE TYPE STRING.&lt;/P&gt;&lt;P&gt;LV_VALUE = '1234567890ABCDEFGHIJKLMNOP'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS :&amp;lt;FS&amp;gt; TYPE C .&lt;/P&gt;&lt;P&gt;ASSIGN WA TO &amp;lt;FS&amp;gt; CASTING.&lt;/P&gt;&lt;P&gt;&amp;lt;FS&amp;gt; = LV_VALUE.&lt;/P&gt;&lt;P&gt;IF &amp;lt;FS&amp;gt; IS  ASSIGNED.&lt;/P&gt;&lt;P&gt;  WRITE : WA-VALUE,&lt;/P&gt;&lt;P&gt;          WA-VALUE1.&lt;/P&gt;&lt;P&gt;  UNASSIGN &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 15:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091198#M1507187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into a database table from a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091199#M1507188</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 tried something like this and worked fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   assign v_tabledata to &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;P&gt;      assign &amp;lt;fs_string&amp;gt; to &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;      modify (v_tabname) from &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamically passing the table layouts and passing the data from a string worked perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-database-table-from-a-string/m-p/7091199#M1507188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T13:34:59Z</dc:date>
    </item>
  </channel>
</rss>

