<?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: Table maintenance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574622#M259428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the event '05' (Creating a new entry) you have to use the variable &amp;lt;table1&amp;gt; to get the current value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using the event '01' (Before saving the data) you have to use the internal table TOTAL to get the values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Oct 2006 04:50:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-02T04:50:28Z</dc:date>
    <item>
      <title>Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574612#M259418</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;I am creating a custom table.&lt;/P&gt;&lt;P&gt;1. Can the restriction be applied for only particular users?&lt;/P&gt;&lt;P&gt;If so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When the data is saved i need to validate the data by cross checking the existing data. How and where can it be done.&lt;/P&gt;&lt;P&gt;Say for e.g there  are two fields valid from and valid to.&lt;/P&gt;&lt;P&gt;There should not be two records overlaping the date range.&lt;/P&gt;&lt;P&gt;How do i do it in the table maintenance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not possible with Table maintenance, then i would have to write a seperate program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uselful ans will be awarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 09:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574612#M259418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574613#M259419</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;1. You need to create a authorization group. Pls. refer this thread &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="120563"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Goto SE80. Select Function Group and enter your table name. Entire auto generated program would be displayed. Change the code as per your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prashant Patil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 09:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574613#M259419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574614#M259420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can do validations for table entries done vai SM30. u can do this in the program for table maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. go to se11&lt;/P&gt;&lt;P&gt;2. utilities -&amp;gt; table maintenance generator. or SE55&lt;/P&gt;&lt;P&gt;3. now environment -&amp;gt; modifications -&amp;gt; events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here u can select event '05' for validations to be done before saving an entry into DBtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can also check for the user like &lt;/P&gt;&lt;P&gt;  IF SY-USNAME NE 'XXX'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write back for more details..&lt;/P&gt;&lt;P&gt;reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 10:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574614#M259420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574615#M259421</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;small correction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-UNAME and not sy-usname..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 10:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574615#M259421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T10:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574616#M259422</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;Point no.2 can be done. Use se80 to view your table maintenance's function group. From here search for screen no. 1000(i can not remember, as long as the screen no. use to capture the manual input). Double click into the screen no. you will get to the screen's flow logic. Put your additional module within PAI's LOOP AT xxx. ENDLOOP. And code you validation under this module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 10:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574616#M259422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T10:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574617#M259423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    1) BASIS can restrict user for creating&lt;/P&gt;&lt;P&gt;       table using SE11 transaction using authorization &lt;/P&gt;&lt;P&gt;       object &lt;/P&gt;&lt;P&gt;    2)  you can write your validations in table&lt;/P&gt;&lt;P&gt;        maintainence screen in PAI block&lt;/P&gt;&lt;P&gt;        of the Function group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 10:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574617#M259423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T10:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574618#M259424</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;For the custom table you are creating a program SAPZ&amp;lt;customtable name&amp;gt; will be created.  You can go to the program create a Z include(Z*SODB) and inside that write your validation in Module End module.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 11:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574618#M259424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574619#M259425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for your valuable inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how to access the current field entry while validating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i am thinking of using 01 event to write my select stmnt. if successful i do nothing, which means it would save the entry, if error then i say EXIT so that this entry is not saved and i write a error msg. please correct me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 04:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574619#M259425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T04:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574620#M259426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to check the field while creating the data or do you want to check while saving the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 04:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574620#M259426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T04:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574621#M259427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference Narendran?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 04:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574621#M259427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T04:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574622#M259428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the event '05' (Creating a new entry) you have to use the variable &amp;lt;table1&amp;gt; to get the current value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using the event '01' (Before saving the data) you have to use the internal table TOTAL to get the values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 04:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574622#M259428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T04:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574623#M259429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But creating a new entry means saving the data right?&lt;/P&gt;&lt;P&gt;Wht is the diff in 05 and 01. &lt;/P&gt;&lt;P&gt;I want to validate user data before saving, and return an error if invalid. which one should i use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also for 05 i shoudl use&lt;/P&gt;&lt;P&gt;&amp;lt;table1&amp;gt;-fieldname ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 01.&lt;/P&gt;&lt;P&gt;total-feildname ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 05:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574623#M259429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T05:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574624#M259430</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;  Creating a new entry 05 means when a new entry is created in the screen and not in the database. They can even cancel and choose not to save it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  But the event 01 is called before saving the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO access the field you have to do the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WA.&lt;/P&gt;&lt;P&gt;      INCLUDE STRUCTURE ZTABLE.&lt;/P&gt;&lt;P&gt;      INCLUDE STRUCTURE VIMTBFLAGS.&lt;/P&gt;&lt;P&gt;DATA: END OF WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 05 event&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;wa = &amp;lt;table1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa-field_name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 01 event&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WA = TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if wa-fielname.&lt;/P&gt;&lt;P&gt;    .....&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to move the values to the work area WA to access the fieldnames...You cannot directly use TOTAL-FIELDNAME OR &amp;lt;TABLE1&amp;gt;-FIELD..As it will give you a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 05:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574624#M259430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T05:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574625#M259431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use your example, but , for event 01 (before save) , I always set an short dump at the wa = total statement.&lt;/P&gt;&lt;P&gt;The error is UC_OBJECTS_NOT_CONVERTIBLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideea what's happening?&lt;/P&gt;&lt;P&gt;I saw that I am not the only one with this problem here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 07:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance/m-p/1574625#M259431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T07:47:01Z</dc:date>
    </item>
  </channel>
</rss>

