<?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 Database storage problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979312#M1160340</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 have created a table with two fields. the first field is of type numc and second field is of type char. I generated the maintenance view. While entering the records in sm30, it is automatically sorting out the numc field and storing it in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to store the records in the database field as per the sequence I entered in the numc field and not in a sorted manner. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2009 21:44:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-06T21:44:19Z</dc:date>
    <item>
      <title>Database storage problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979312#M1160340</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 have created a table with two fields. the first field is of type numc and second field is of type char. I generated the maintenance view. While entering the records in sm30, it is automatically sorting out the numc field and storing it in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to store the records in the database field as per the sequence I entered in the numc field and not in a sorted manner. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 21:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979312#M1160340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T21:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Database storage problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979313#M1160341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN, but please do not cross post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6814165"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6814051"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 21:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979313#M1160341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T21:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Database storage problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979314#M1160342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you defined key fields in the table, check once.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 21:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979314#M1160342</guid>
      <dc:creator>nkr1shna</dc:creator>
      <dc:date>2009-01-06T21:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Database storage problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979315#M1160343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I rejected the other duplicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a moment to read the forum rules, and also note that if you dont keep to them (e.g. duplicate posting) then people tend to avoid answering them completely, because such threads typically get deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN though, &lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 22:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979315#M1160343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T22:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Database storage problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979316#M1160344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain with an example of values, and what you expect exactly ? (I don't understand well)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 22:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979316#M1160344</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-06T22:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Database storage problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979317#M1160345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have probably answered your own question by now, but for those who might read this thread later, I thought I would try to close the loop or, if nothing else, provide some insight into how a generated Table Maintenance Dialog can be custom enhanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that, at a minumum, the NUMC field is defined as the key field of your table, right?  If that is the case, then this is the reason for the records being stored (and presented) in sorted order based on the values stored in the NUMC field.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want the records to be stored and presented in the order in which you enter them, then you need to define an additional field (e.g. an Integer type field to the 'left' of the NUMC field) and make it the key field instead of the NUMC field. &lt;/P&gt;&lt;P&gt;Once you have done that (and regenerated your Table Maintenance Dialog) you must then implement the Table Maintenance Dialog's Save Event exit to populate that Integer field in each of the newly entered records with a unique number that is greater than the number assigned to records already stored in the table, you know what I mean?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Here is the SAP Help Portal link to the topic 'Extended Table Maintenance Events' which contains details about the Save Event (Event 01 'Before saving the data in the database') I reference above, as well as all other Events available in the Table Maintenance Dialog functionality:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.  Let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 22:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-storage-problem/m-p/4979317#M1160345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T22:49:43Z</dc:date>
    </item>
  </channel>
</rss>

