<?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 table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847357#M359313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sairam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my understanding, you want to display proper error messages for table maintainance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating table, follow the follwing procedure.&lt;/P&gt;&lt;P&gt;Got SE11 -&amp;gt; Tabel Maintance generator ( in utilities menu option) -&amp;gt; Press Fn.Gr.Text -&amp;gt; ( a pop will apear) Press Main Programe -&amp;gt; Programe will apear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can write your own logic and custom message for the custom table. The sample code for a custom table zh117 is as follows, which is writen in the programe as mentined above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;*--- No blanks are allowed.&lt;/P&gt;&lt;P&gt;  IF zh117-descr IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-endda IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-begda IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-zdiff IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-zcode IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-zdiff EQ '0'.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zh01) WITH text-004.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Zcode should not have any special charactres.&lt;/P&gt;&lt;P&gt;  IF zh117-zcode CA text-001.        "'!@#$%^&amp;amp;*()_-+=|\":;?/&amp;gt;.'&amp;lt;,'.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zh01) WITH text-002.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- begda must alway &amp;gt; or = to endda.&lt;/P&gt;&lt;P&gt;  IF zh117-begda GE zh117-endda.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zh01) WITH text-003.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Assign changed by and changed date when all entries are correct.&lt;/P&gt;&lt;P&gt;  zh117-changedby = sy-uname.&lt;/P&gt;&lt;P&gt;  zh117-changedon = sy-datum.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is writen in a separate include for the purpose of readility and modularization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it is use ful, Any doubts let me know, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the very best to you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohan Vamsi Krishna.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2007 07:26:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-30T07:26:48Z</dc:date>
    <item>
      <title>Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847354#M359310</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;  Iam developing the one custom table.That table contains 5 columns like product,&lt;/P&gt;&lt;P&gt;plant,message,validity From date,Validate to date.The messages that will be maintained in this table will be product and plant specific.Then when this product plant combination is selcted in the tally analyer the valid message will be displayed,pulling from this custom table.This messages will be displayed in the table to notify the seller of information needed for the product/plant combination and date they have chosen to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There wiill be validity dates associated with each entry.A valid end date needs to be 9/9/99,therefore the message would be valid indefinitely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plant-werks&lt;/P&gt;&lt;P&gt;product-matnr&lt;/P&gt;&lt;P&gt;validfrom date-datbi&lt;/P&gt;&lt;P&gt;valid to date-datab&lt;/P&gt;&lt;P&gt;message-new field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plant and product,dates are primary key.Please give me procedure.Very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 14:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847354#M359310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847355#M359311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a table in SE11 with the below fields...maintain a table maintenance and then u can access table in SM30 wherein required values can be inputted.&lt;/P&gt;&lt;P&gt;now, in ur analyzer, u need to write code as say user has selected material and plant...write a select statement to fetch record from custom table based on material &amp;amp; plant combination....check whether valid from is greater than today and u can display the record to user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 14:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847355#M359311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847356#M359312</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;  But i want to display the my custom message?Means suppose user enter the existing data in i want to dispaly the custom message 'plant alredy exitst' And where i have to write the coding?&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;sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 05:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847356#M359312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T05:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847357#M359313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sairam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my understanding, you want to display proper error messages for table maintainance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating table, follow the follwing procedure.&lt;/P&gt;&lt;P&gt;Got SE11 -&amp;gt; Tabel Maintance generator ( in utilities menu option) -&amp;gt; Press Fn.Gr.Text -&amp;gt; ( a pop will apear) Press Main Programe -&amp;gt; Programe will apear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can write your own logic and custom message for the custom table. The sample code for a custom table zh117 is as follows, which is writen in the programe as mentined above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;*--- No blanks are allowed.&lt;/P&gt;&lt;P&gt;  IF zh117-descr IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-endda IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-begda IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-zdiff IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-zcode IS INITIAL OR&lt;/P&gt;&lt;P&gt;     zh117-zdiff EQ '0'.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zh01) WITH text-004.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Zcode should not have any special charactres.&lt;/P&gt;&lt;P&gt;  IF zh117-zcode CA text-001.        "'!@#$%^&amp;amp;*()_-+=|\":;?/&amp;gt;.'&amp;lt;,'.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zh01) WITH text-002.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- begda must alway &amp;gt; or = to endda.&lt;/P&gt;&lt;P&gt;  IF zh117-begda GE zh117-endda.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zh01) WITH text-003.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Assign changed by and changed date when all entries are correct.&lt;/P&gt;&lt;P&gt;  zh117-changedby = sy-uname.&lt;/P&gt;&lt;P&gt;  zh117-changedon = sy-datum.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is writen in a separate include for the purpose of readility and modularization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it is use ful, Any doubts let me know, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the very best to you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohan Vamsi Krishna.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 07:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847357#M359313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T07:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847358#M359314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have follwed the same procedure.But in the main program many includes is there.Where i have to write this coding?Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;T.saisuresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sairam kappera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 08:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847358#M359314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847359#M359315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the table maitanece in SM30. In your case you can implement. events for this. Go to the Enviranoment section menu u can find the &lt;STRONG&gt;events&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement event like berfor save, after enter like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can implement befor save event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will ask for name of the sub routine. after creation u can write ABAP code in that sub routien.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if the combenation is wrong u can display message.&lt;/P&gt;&lt;P&gt;It will display in SM30 it self and data is not going to save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work, Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 11:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847359#M359315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T11:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847360#M359316</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;go to utilties -&amp;gt; table maintaince generator...&lt;/P&gt;&lt;P&gt;then..go to enviornment -&amp;gt; modification-&amp;gt;events..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 11:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847360#M359316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T11:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847361#M359317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     give me some sample code.Iam using fields like plant(t001w-WERKS),product(vbap-matnr), valid from date,valid to date,message(VBAP-ARKTX).So to i got a Hot messages for product and plant combinations.Please help me.it is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 13:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847361#M359317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847362#M359318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There you can create a new include. That will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem is solved let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohan Vamsi Krishna.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847362#M359318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847363#M359319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Where i have to create the new include.In the standard program or different?&lt;/P&gt;&lt;P&gt;Please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regads,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 05:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table/m-p/1847363#M359319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T05:23:42Z</dc:date>
    </item>
  </channel>
</rss>

