<?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 Writing events through table maintenance generator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472230#M1849392</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;We have a Z table which contains Sales org(VKORG) as one of the fields. When the entries in this table are maintained through table maintenance SM30, sales org which is for example 0800 is getting saved as 800 which means the leading zero is not appearing in the table.&amp;nbsp; So, I am planning to write an event " “Before saving the data in the database” through table maintenance generator to add leading zeroes while saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the z table also gets updated from some programs. I am not sure how sales org is updated this way (with leading zero or without leading zero).&lt;/P&gt;&lt;P&gt;If I write an event using table maintenance generator as above, will it only apply to&amp;nbsp; sales orgs which are maintained through SM30 or&amp;nbsp; will the event also apply to the programs which update the Z table? I am ok if it applies to Z table as well. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 22:30:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-23T22:30:02Z</dc:date>
    <item>
      <title>Writing events through table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472230#M1849392</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;We have a Z table which contains Sales org(VKORG) as one of the fields. When the entries in this table are maintained through table maintenance SM30, sales org which is for example 0800 is getting saved as 800 which means the leading zero is not appearing in the table.&amp;nbsp; So, I am planning to write an event " “Before saving the data in the database” through table maintenance generator to add leading zeroes while saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the z table also gets updated from some programs. I am not sure how sales org is updated this way (with leading zero or without leading zero).&lt;/P&gt;&lt;P&gt;If I write an event using table maintenance generator as above, will it only apply to&amp;nbsp; sales orgs which are maintained through SM30 or&amp;nbsp; will the event also apply to the programs which update the Z table? I am ok if it applies to Z table as well. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 22:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472230#M1849392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-23T22:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Writing events through table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472231#M1849393</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; The event is in the table maintenance dialog, so it will (of course) only affect items entered using that table maintenance dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Any Z table updates done by other programs will not be affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 01:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472231#M1849393</guid>
      <dc:creator>paul_bakker2</dc:creator>
      <dc:date>2014-07-24T01:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Writing events through table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472232#M1849394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you refer to data element VKORG? I check the standard table TVKO. The sales org can be saved as leading zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the data saved in table has the leading zero. But displayed as ALV. In ALV layout will hide the leading zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yawa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 02:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472232#M1849394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-24T02:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Writing events through table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472233#M1849395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt; Please find the below steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In Table Maintenance Generator.&amp;nbsp; Click Environment -&amp;gt;Modification -&amp;gt; Events&lt;/LI&gt;&lt;LI&gt;In List of Event, Select 1(Before saving data in Database). &lt;/LI&gt;&lt;LI&gt;Give the Subroutine name as 'APPEND_ZERO' and write the code as shown below. &lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="margin-top: 10px; font-size: 11.199999809265137px; color: #333333;"&gt;&lt;SPAN class="L0S52" style="color: #575757; font-size: 10pt;"&gt;FORM APPEND_ZERO.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 10px; font-size: 11.199999809265137px; color: #333333;"&gt;&lt;SPAN class="L0S52" style="color: #575757; font-size: 10pt;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #575757; font-size: 10pt;"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="color: #575757; font-size: 10pt;"&gt;'CONVERSION_EXIT_ALPHA_INPUT'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;input&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ztab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;vkorg&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;OUTPUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;ztab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;vkorg&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;ENDFORM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please find the following link for detailed screenshots to create the event in Table Maintenance Generator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE+MAINTENANCE" title="http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE+MAINTENANCE"&gt;EVENTS IN TABLE MAINTENANCE - ABAP 开发 (ABAP Development) - SCN Wiki&lt;/A&gt;&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;Rajkumar Narasimman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 04:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-events-through-table-maintenance-generator/m-p/10472233#M1849395</guid>
      <dc:creator>rajkumarnarasimman</dc:creator>
      <dc:date>2014-07-24T04:31:25Z</dc:date>
    </item>
  </channel>
</rss>

