<?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 creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371648#M1642012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By adding the code in PBO you can do this one.try with that code which is posted By &lt;STRONG&gt;PawanG&lt;/STRONG&gt; . i am pretty sure,it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Naresh Bammidi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 11:54:42 GMT</pubDate>
    <dc:creator>naresh_bammidi</dc:creator>
    <dc:date>2011-11-09T11:54:42Z</dc:date>
    <item>
      <title>Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371640#M1642004</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 custom table with 4 fields. user can maintain via SM30 for 3 fields, other 4th field is in display mode (updates via program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the display field (4th field) value, example display field value = X, user shouldn't be able to modify hole record.&lt;/P&gt;&lt;P&gt;If display field blank, user can change other 3 fields data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a possibility of display field (4th field) may contains value for some records and some blank.&lt;/P&gt;&lt;P&gt;which ever is blank user can modify that record. Which having the value in 4th field other fields can be modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this requirement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Please use a more descriptive subject line for your post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Nov 9, 2011 4:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 09:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371640#M1642004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371641#M1642005</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 think you have to build an ALV application that handles your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 09:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371641#M1642005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T09:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371642#M1642006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply , &lt;/P&gt;&lt;P&gt;can you please tell in bit clear, let me know if you have any related links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 09:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371642#M1642006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T09:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371643#M1642007</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;You can also use the SM30, instead of to create a new program, but the SM30 has to be generated for a maintenance view based on your Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way the 4th field can be set for read-only, then you need to change the PBO in order to change the attributes of others fields by statament LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the SM30 you can have a problem with the new hit, because in this situation 4th will be blank so other fields could be protected for input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 9, 2011 10:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 09:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371643#M1642007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371644#M1642008</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;There are two ways you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Way 1) Try to modify the function module that you created while generating the Table maintenance. There will be a PAI include within which you can put your logic to check if the 4th field has 'X', then put a loop to deactivate the edit feature of the other three fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Way 2)  Build a program to display the table entries in ALV. In ALV, you can open the fields editable and have a Sy-UCOMM button to update the value once it is editied. In this, while displaying the ALV output, put your logic to see if the 4th field has 'X', then make that column as no_edit option while building the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say, way 2 would be much easier than the way one, but the choice is yours. Let me know if you require more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 10:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371644#M1642008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T10:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371645#M1642009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u can try the below option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to maintainence screen of your table maintainence ( go to SE11 -&amp;gt;table maintainence-&amp;gt;enviornment-&amp;gt;modification-&amp;gt;maintenance screens).&lt;/P&gt;&lt;P&gt;Go to element list of the screen and give modification group1 as GR1 to first three fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check the PBO of the screen there you will get a table control loop so inside this loop you can create your module to write logic to hide the fields. I just gave logic below which you can write in this module&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE modify_records OUTPUT.
    IF (Your screen field name for field 4) = 'X'.   
       LOOP AT SCREEN.
         IF screen-group = 'GR1'. 
            screen-input = 0.    
            MODIFY SCREEN.
         ENDIF.
    ENDLOOP.
  ENDIF.
 ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 10:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371645#M1642009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T10:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371646#M1642010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KKP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for the read event in TMG and implement your logic so that you can filter all the records having X in the 4th field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way user cannot modify records which are having X in 4th field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For TMG events, search the SDN Wiki/Forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 11:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371646#M1642010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371647#M1642011</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;Why not simply use the maintenance view events and trigger an error message when needed? (SE56-&amp;gt;Environment-&amp;gt;Modification-&amp;gt;Events)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added: just see the reply from Karthik...Agree &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manu D'Haeyer on Nov 9, 2011 12:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 11:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371647#M1642011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T11:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371648#M1642012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By adding the code in PBO you can do this one.try with that code which is posted By &lt;STRONG&gt;PawanG&lt;/STRONG&gt; . i am pretty sure,it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Naresh Bammidi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 11:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371648#M1642012</guid>
      <dc:creator>naresh_bammidi</dc:creator>
      <dc:date>2011-11-09T11:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371649#M1642013</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;&lt;/P&gt;&lt;P&gt;Thanks a lot for your valuable inputs , it has been resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 01:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-creation/m-p/8371649#M1642013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T01:53:03Z</dc:date>
    </item>
  </channel>
</rss>

