<?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: store raw data in DB table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094094#M435778</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 at FMs: table_compress and table_decompress and table: PCL4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2007 16:08:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-12T16:08:43Z</dc:date>
    <item>
      <title>store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094088#M435772</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;is it possible (probably is) to store data from an itab in a DB table raw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an itab ZITAB with linetype ZLT containing some datafields and one table (making it a sort of a 'deep' table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i quickly want to store the data in a Db table, only to retreive it later and put it back into itab ZITAB. I cant define a 'deep' table type in DDIC, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i would like to store the itab line-by-line in a Dtable as raw data, and later retreive this raw data and yank it back into a itab ZITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this possible? and how to do this best &amp;amp; easiliest ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks alot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris Bots&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094088#M435772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094089#M435773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use EXPORT TO and IMPORT FROM DATABASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt;1. ... = f (for each field you want to export) &lt;/P&gt;&lt;P&gt;2. ... FROM f (for each field you want to export) &lt;/P&gt;&lt;P&gt;3. ... CLIENT g before ID key ) &lt;/P&gt;&lt;P&gt;4. ... USING form &lt;/P&gt;&lt;P&gt;5. ... FROM wa (as last addition or after dbtab(ar)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Implicit field names not allowed with clusters and Table work areas not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Stores a data cluster in database table dbtab. The specified objects obj1 ... objn (fields, structures, or tables) are stored as a single cluster in the database table dbtab. &lt;/P&gt;&lt;P&gt;The specified database table dbtab must have a standard structure. &lt;/P&gt;&lt;P&gt;The database table dbtab is divided into various logically-related sections (ar, two-character name). &lt;/P&gt;&lt;P&gt;You can export a collection of data objects (a data cluster) to a part of the database using a key (field key). &lt;/P&gt;&lt;P&gt;You can import individual data objects from this collection using the IMPORT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;In classes, you must always assign explicit names to the data objects you want to export, that is, you must use either addition 1 or addition 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In classes, you must always specify the work area explicitly, that is, addition 5 is obligatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table dbtab that appears after DATABAE must be declared under TABLES (except in addition 5). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot export the header lines of internal tables. If you specify the name of an internal table with header line, the system always exports the body of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot export data, object, or interface references. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is stored in the database, and is consequently not actually stored until a database commit occurs (see LUW). Until this point, you can undo all of your changes using a database rollback (see Programming Transactions). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/i&amp;gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094089#M435773</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-12T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094090#M435774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the very fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read in your reply that the dbtab needs to be of the same type as the data you want to store. my data is a 'deep' table (tables in table) and this can not be done in ddic, so how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe a simple example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094090#M435774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094091#M435775</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 use MOVE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chech the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/PROJECTS/TECHNICAL/ABAP%20Source%20codes/Reading%20database%20tables%20-%20logical%20database.html" target="test_blank"&gt;http://www.sapbrain.com/PROJECTS/TECHNICAL/ABAP%20Source%20codes/Reading%20database%20tables%20-%20logical%20database.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094091#M435775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094092#M435776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i get the RAW data into the DB in the first place? remember: the table i want to store contains also tables amoungst other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;Joris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094092#M435776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094093#M435777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not able to figure out how to apply your solution, sorry.&lt;/P&gt;&lt;P&gt;maybe you can shed some extra light?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094093#M435777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094094#M435778</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 at FMs: table_compress and table_decompress and table: PCL4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 16:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094094#M435778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094095#M435779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;re Joris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data Clusters in the Database&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can import and export very complicated structures via the instruction EXPORT TO DATABASE and read them later via IMPORT FROM DATABASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You create the value for the "Key" of the record and an Id to regroup these types of records.&lt;/P&gt;&lt;P&gt;- Id is two-character area for the cluster in the database &lt;/P&gt;&lt;P&gt;- Key is what you want (concatenate in a structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cluster table contains the previous fields, plus standards fields&lt;/P&gt;&lt;P&gt;AEDAT: Date changed&lt;/P&gt;&lt;P&gt;USERA: User name&lt;/P&gt;&lt;P&gt;PGMID: Program name&lt;/P&gt;&lt;P&gt;Two fields for index of the following records and length, then your structure is cut into records of 2886 bytes. IMPORT and EXPORT mae the work to fill these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT &amp;lt;f1&amp;gt; [FROM &amp;lt;g1&amp;gt;] &amp;lt;f2&amp;gt; [FROM &amp;lt;g2&amp;gt;] ...
       TO DATABASE &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) [CLIENT &amp;lt;cli&amp;gt;] ID &amp;lt;key&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example HR use such cluster in "Cluster" tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;First &amp;lt;/b&amp;gt;: Create a Data Cluster. or decide to use SAP INDX  look at &amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3c1f358411d1829f0000e829fbfe/content.htm"&amp;gt;Example of an INDX-Type Database&amp;lt;/a&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Second&amp;lt;/b&amp;gt; Save data in cluster: look at &amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3c2c358411d1829f0000e829fbfe/content.htm"&amp;gt;Saving Data Objects in INDX-Type Databases&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Third&amp;lt;/b&amp;gt;  Read data stored in database cluster : look at x[url=http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3c46358411d1829f0000e829fbfe/content.htm]Reading Data Objects From INDX-Type Databases[/url]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 19:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094095#M435779</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-12T19:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: store raw data in DB table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094096#M435780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raymond, &lt;/P&gt;&lt;P&gt;excellent explanation, it solved my problem AND i gained new knowledge! Thanks alot. Full points rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all,&lt;/P&gt;&lt;P&gt;Thanks for the help. it is much appreciated. some points rewarded&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;Joris Bots&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 08:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-raw-data-in-db-table/m-p/2094096#M435780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T08:30:36Z</dc:date>
    </item>
  </channel>
</rss>

