<?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: How to prevent view table source code being replaced in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029877#M1349147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Esther&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what kind of change you would like make to the displayed data. &lt;/P&gt;&lt;P&gt;Could you be a bit more verbose about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2009 08:46:30 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-08-17T08:46:30Z</dc:date>
    <item>
      <title>How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029872#M1349142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add some coding to table maintanence generator generated source code (SE56) but if regenerate the view table, the programmed code will get replaced, can anyone tell me how to prevent the source code being replaced?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 04:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029872#M1349142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T04:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029873#M1349143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Esther&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the standard [events |http://help.sap.com/saphelp_nw2004s/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm]in order to modify your maintenance view? Neither these events nor the coding in there should be touched by any regeneration of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 04:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029873#M1349143</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-17T04:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029874#M1349144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add authorisation check to control who can maintain the view table by company code level, can I use event 25?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unfamiliar with "Event" in table view maintanence, do you have any sample code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 06:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029874#M1349144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T06:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029875#M1349145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Esther&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Event 25 (At the Start of the Maintenance Dialog) appears to be the right one for your purpose.&lt;/P&gt;&lt;P&gt;When you are in the maintenance dialog of your view choose menu Environment -&amp;gt; Modification -&amp;gt; Events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add event number 25 and the name or the FORM routine (e.g. 25_CHECK_AUTH_BY_BUKRS). Double-click on the routine. The system should propose an include which is added to the function group holding the maintenance views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now simply add some mock coding into this routine, e.g.:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM 25_CHECK_AUTH_BY_BUKRS.

  MESSAGE 'Event 25 triggered' TYPE 'I'.
  VIM_AUTH_RC = 4.  " go to display mode
 
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The effect should be that you can only display your maintenance view.&lt;/P&gt;&lt;P&gt;Now you can add the required coding to evaluate the user's authority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sample coding you may have a look at [Event 01: Before Saving the Data in the Database|http://help.sap.com/saphelp_nw2004s/helpdata/EN/91/ca9f0ba9d111d1a5690000e82deaaa/frameset.htm]. Using this coding you can manipulate the maintained data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029875#M1349145</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-17T07:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029876#M1349146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to manipulate on data to be displayed in view table by authorised company code after checking the authorisation, can you provide me the sample code? Can I use Event 26?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 08:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029876#M1349146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T08:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029877#M1349147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Esther&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what kind of change you would like make to the displayed data. &lt;/P&gt;&lt;P&gt;Could you be a bit more verbose about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 08:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029877#M1349147</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-17T08:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029878#M1349148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my view table created, there are the following key fields:&lt;/P&gt;&lt;P&gt;1) BUKRS : Company Code&lt;/P&gt;&lt;P&gt;2) CCGRP: Cost Center Group&lt;/P&gt;&lt;P&gt;3) PRTYP: Product Type&lt;/P&gt;&lt;P&gt;4) KOSTL : Cost Center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;1) When user want to maintain this view table,  I need to get the input of company code. By then, I can only check for this user's authorisation to maintain for the input company code. =&amp;gt; Event 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If authorisation check is successful, I should display only the record which belongs to the input company code for them to maintain.  Other record should not be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Besides that, I need to build-in the code to check if the new entries is allowed before save by checking the Company code entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know the "Event" to use and it would appreciate if there is any sample code as a guideline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029878#M1349148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T09:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029879#M1349149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Esther&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to "capture" the company code I would make field BUKRS a mandatory SELECTION input for your maintenance view. This means when the user calls the view a poup appear where he or she must enter the company code. Next you execute your AUTH_CHECK routine (event 25). If the user is authorized the data will be displayed and can be maintained (but only for BUKRS = &amp;lt;input value&amp;gt;). Otherwise the user will not get into the maintenance dialog at all meaning he or she will not see any records of other company codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where to set this SELECTION option? In the table control displaying the view field choose maintenance property = 'S' (fourth column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029879#M1349149</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-17T09:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent view table source code being replaced</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029880#M1349150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I manage to solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 02:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-prevent-view-table-source-code-being-replaced/m-p/6029880#M1349150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T02:06:28Z</dc:date>
    </item>
  </channel>
</rss>

