<?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 Code in View? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268904#M492689</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 created a dictionary view based on a Z table that has these fields: &lt;/P&gt;&lt;P&gt;MATNR, WERKS_C, WERKS_F, LGORT, STAT_KANB, LIM_MIN, LIM_MAX,  LAEDA, UZEIT, AENAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created also a transaction code (SM30) for this view for user update those fields. However the user couldn't update LAEDA, UZEIT, AENAM that should be read only and also updated automatically by SAP (sydatum, syuzei and syunam).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel Khouri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 16:59:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T16:59:39Z</dc:date>
    <item>
      <title>Code in View?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268904#M492689</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 created a dictionary view based on a Z table that has these fields: &lt;/P&gt;&lt;P&gt;MATNR, WERKS_C, WERKS_F, LGORT, STAT_KANB, LIM_MIN, LIM_MAX,  LAEDA, UZEIT, AENAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created also a transaction code (SM30) for this view for user update those fields. However the user couldn't update LAEDA, UZEIT, AENAM that should be read only and also updated automatically by SAP (sydatum, syuzei and syunam).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel Khouri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 16:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268904#M492689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T16:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code in View?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268905#M492690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is indeed possible.  Go into the table maintenance generator screen, and then use the menu (Environment-&amp;gt;modification-&amp;gt;Events).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In here, you could specify an event and create your own subroutine in the function group (which is already created for your maintenance view) to populate the LAEDA, UZEIT, and AENAM fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you first create a maintenance view based on your z-table (not a dictionary view), then create the table mainentance on top of that.  Also in the view, you could specify the fields you want as read only (use the maintenance flag).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this document to find out about the different events you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would probably use Event 01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 22:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268905#M492690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T22:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Code in View?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268906#M492691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  freind   just now i testing an Maintanice  view   i can able to  decide the field  whether  it should be display  or  it should be enable  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you goto view fields  in the  maintance view    ...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first   &amp;lt;b&amp;gt;view  fields&amp;lt;/b&amp;gt;  , second &amp;lt;b&amp;gt;table&amp;lt;/b&amp;gt; , third &amp;lt;b&amp;gt;fields&amp;lt;/b&amp;gt;  , in fourth there will be&amp;lt;b&amp;gt;  "P" &amp;lt;/b&amp;gt;  here  you have  to give   &amp;lt;b&amp;gt;'R' &amp;lt;/b&amp;gt; you can  do&amp;lt;b&amp;gt; f4&amp;lt;/b&amp;gt;     ..... so that  you can  understand  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and activate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after creating the view &amp;lt;b&amp;gt;  goto-&amp;gt; Utilities  -&amp;gt; maintance  Generator &amp;lt;/b&amp;gt; ... there itself  in menu  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there   just give    &amp;lt;b&amp;gt;Authorisation group &amp;lt;/b&amp;gt;  it is  must   and &amp;lt;b&amp;gt;function group&amp;lt;/b&amp;gt;   also .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then  the       maintaince  type    &amp;lt;b&amp;gt; two  steps  -&amp;gt; check  box&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;go to main.screen no    &amp;lt;b&amp;gt;overview screen  01 ,  single screen  02 &amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;save &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;come back , activate   your  Maintainance  view   ,, display the  data   .. now  try to edit  so that the&amp;lt;b&amp;gt;  'R' indicated &amp;lt;/b&amp;gt; fields are  in &amp;lt;b&amp;gt; display mode&amp;lt;/b&amp;gt; only ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is use full  reward  points.....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 09:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268906#M492691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T09:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code in View?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268907#M492692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built the Maintain view as you suggested, based on Z-table and with read only fields (UZEIT, LAEDA and AENAM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'm trying to load these information automatically via event. I created a new include, put the code bellow but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, I don't get to save a new entry in this view. It only shows me the content of Z-table. When I try to include a new register in this view it doesn't save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM abc.&lt;/P&gt;&lt;P&gt;DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found&lt;/P&gt;&lt;P&gt;LOOP AT TOTAL.&lt;/P&gt;&lt;P&gt;IF &amp;lt;ACTION&amp;gt; = AENDERN.&lt;/P&gt;&lt;P&gt;READ TABLE EXTRACT WITH KEY &amp;lt;vim_xtotal_key&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;F_INDEX = SY-TABIX.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR F_INDX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY TOTAL.&lt;/P&gt;&lt;P&gt;CHECK F_INDX GT 0.&lt;/P&gt;&lt;P&gt;EXTRACT = TOTAL.&lt;/P&gt;&lt;P&gt;MODIFY EXTRACT INDEX F_INDX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel Khouri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 17:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-view/m-p/2268907#M492692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T17:10:05Z</dc:date>
    </item>
  </channel>
</rss>

