<?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: Problem in creating a Persistent Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533831#M1426953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are creating a persistent class for SAP tables, then effectively you are attempting to update the tables directly.  And that is a really bad idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See [here|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1567148"&gt;&lt;/A&gt;; and [here |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1564655"&gt;&lt;/A&gt;; for more discussion on that topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Only create persistent classes for database operations on your own tables.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess your classes are failing because you haven't done the mapping.  Did you click on the button marked "persistence" on the SE24 view of your ZCL class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing - it's against the forum rules to ask for material and links...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 07:59:41 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2009-12-29T07:59:41Z</dc:date>
    <item>
      <title>Problem in creating a Persistent Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533829#M1426951</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;I am working on Persistent Classes for the first time. I have tried to gain some info by going through some related threads and of course Thomas' Blog on Persistent Classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to create a Persistent Class that takes fields from multiple database tables (KNA1 and KNVV).&lt;/P&gt;&lt;P&gt;I wasn't able to generate mapping successfully. &lt;/P&gt;&lt;P&gt;So, the solution was to create 2 Persistent Classes and create a data model class for these two (It was mentioned in one of the threads)&lt;/P&gt;&lt;P&gt;I have been trying to create a Persistent Class for the fields from table KNA1 (I need only some 11 fields)&lt;/P&gt;&lt;P&gt;When I activate, I again get a warning 'No mapping exists for the fields' as a result of which the main class is not activated.&lt;/P&gt;&lt;P&gt;I read somewhere that all fields from a table needs to be included in the 'Inclusion area', otherwise, the class doesn't activate.&lt;/P&gt;&lt;P&gt;So I tried creating a view, but I get another warning message saying 'Database operations with view are not allowed' and the main class remains unactivated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if there are any related materials on how to deal with multiple tables, I would be more than glad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 04:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533829#M1426951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T04:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating a Persistent Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533830#M1426952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 04:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533830#M1426952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T04:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating a Persistent Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533831#M1426953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are creating a persistent class for SAP tables, then effectively you are attempting to update the tables directly.  And that is a really bad idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See [here|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1567148"&gt;&lt;/A&gt;; and [here |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1564655"&gt;&lt;/A&gt;; for more discussion on that topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Only create persistent classes for database operations on your own tables.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess your classes are failing because you haven't done the mapping.  Did you click on the button marked "persistence" on the SE24 view of your ZCL class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing - it's against the forum rules to ask for material and links...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 07:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-a-persistent-class/m-p/6533831#M1426953</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-12-29T07:59:41Z</dc:date>
    </item>
  </channel>
</rss>

