<?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: Custom/ transparent table definition without key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898240#M54679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chetan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what reason on earth one can require this? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; This is not suitable for relational DB structure and DDIC does not allow it even just defined. Or do I lack somethings???&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;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2005 22:11:59 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2005-06-08T22:11:59Z</dc:date>
    <item>
      <title>Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898239#M54678</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;How can I define a custom table / transparent table via SE11 without specifying any fields as part of table key - i.e. table without key fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 21:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898239#M54678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T21:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898240#M54679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chetan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what reason on earth one can require this? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; This is not suitable for relational DB structure and DDIC does not allow it even just defined. Or do I lack somethings???&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;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 22:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898240#M54679</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-06-08T22:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898241#M54680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing I could think of where you might want to do this is in the case where you need a flat structure.  Maybe to hold some comma delimited data to be exported thru some interface.  Even then I would probably suggest to write the data to some flat file on the app server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if DDIC forces you to have a key field or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 00:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898241#M54680</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-09T00:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898242#M54681</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 was about to write not to go into why do I need this, because I really do need this &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually there is no restriction at the database level that a table must have a key. At database level (Oracle, Sybase etc), it is possible to define a table without key fields; and that's exactly is the requirement. I have to replicate a table in SAP which already exists in some other database without any key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know from relational database viewpoint it doesn't make sense, but if things are possible at database level, I wonder why is such a restriction when one goes via SE11. One reason is that to make data client-dependent one has to include MANDT; and it is not possible to have more than one record in a table if MANDT is the only key. I am curious to know why SAP won't allow defining a table without MANDT and without any key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I tried all all options and couldn't suceed. Wanted to check with folks on SDN; but I think the answer is no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 01:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898242#M54681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T01:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898243#M54682</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;SAP does allow defining tables without the key field mandant/client. It's just not recommended.&lt;/P&gt;&lt;P&gt;From my experience you need to define at least 1 key field in the SAP dictionary. &lt;/P&gt;&lt;P&gt;Mabye you can add an extra field, a counter, which your program will fill with a unique value although this information is not present in your other DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, if you know your database well on which the SAP system is running and you know your way around SQL, you can use the native SQL statements in an ABAP program.&lt;/P&gt;&lt;P&gt;Native SQL will allow you to bypass the restrictions the SAP dictionary imposes.&lt;/P&gt;&lt;P&gt;See also: &lt;A href="http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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;Arjan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arjan Aalbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 06:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898243#M54682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T06:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898244#M54683</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 must have at least one key field in a table. For you purposes it might work out to create a table with a somehow generic field (counter, time stamp or whatever) as a key and store the relevant information in the rest of the fields. Each database requires a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 06:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898244#M54683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898245#M54684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Technically a fully qualified RDBMS should not allow a table be defined without a key. I wonder why databases like Oracle allows it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when a table is defined in ABAP dictionary it should be independent of the underlying database, or rather the dictionary definition should be such that it holds good for all databases. Incase any of the database that doesnt allow a table to be defined without a key field, it would be interesting to know how a table defined in ABAP dictionary without a key field( supposing such a definition is allowed in ABAP Dictionary) is generated in the underlying database. May be this is one of the reasons why such definition is not allowed in ABAP dictionary. Just a thought. I amnt sure!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 07:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898245#M54684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T07:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom/ transparent table definition without key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898246#M54685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st option:&lt;/P&gt;&lt;P&gt;you can achieve desired results,to some extent, by including all the fields of the table in the primary key definition. Then you can populate any data as long it's not a complete duplicate copy of any existing row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then in that case I don't see any point in keeping that row in the table as you will never be able to differentiate between the rows if those are exactly same. Further, how does it matter whether it contains 1 row or 2 rows with the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd option:&lt;/P&gt;&lt;P&gt;If you really need, what you said,mainly a dump of all the data in one table where you do not need to differentiate the records.. then I think you should use cluster table ( am I forgetting the name ).&lt;/P&gt;&lt;P&gt;Check the help for statement &lt;/P&gt;&lt;P&gt;EXPORT TO dbtable ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Way:&lt;/P&gt;&lt;P&gt;Or else create a number range for record number and make that primary key...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW..you can surely define a table without MANDT (for Client independent data ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 16:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-transparent-table-definition-without-key/m-p/898246#M54685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T16:22:09Z</dc:date>
    </item>
  </channel>
</rss>

