<?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 Do not allow blank values for key fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984689#M402191</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;I have a table for which the key fields cannot be blank. I read in the forum that in the table maintenance generator i need to code. Can any one please tell me where in the following code i need to write that code...The highlighted fields are key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt; module liste_initialisieren.&lt;/P&gt;&lt;P&gt; loop at extract with control&lt;/P&gt;&lt;P&gt;  tctrl_zfpbtc cursor nextline.&lt;/P&gt;&lt;P&gt;   module liste_show_liste.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt; module liste_exit_command at exit-command.&lt;/P&gt;&lt;P&gt; module liste_before_loop.&lt;/P&gt;&lt;P&gt; loop at extract.&lt;/P&gt;&lt;P&gt;   module liste_init_workarea.&lt;/P&gt;&lt;P&gt;   chain.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    field zfpbtc-kostl .&lt;/P&gt;&lt;P&gt;    field zfpbtc-bukrs .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    field zfpbtc-z3pr .&lt;/P&gt;&lt;P&gt;    field zfpbtc-zbtc .&lt;/P&gt;&lt;P&gt;    field zfpbtc-aedtm .&lt;/P&gt;&lt;P&gt;    field zfpbtc-uname .&lt;/P&gt;&lt;P&gt;    module set_update_flag on chain-request.&lt;/P&gt;&lt;P&gt;   endchain.&lt;/P&gt;&lt;P&gt;   field vim_marked module liste_mark_checkbox.&lt;/P&gt;&lt;P&gt;   chain.&lt;/P&gt;&lt;P&gt;    field zfpbtc-kostl .&lt;/P&gt;&lt;P&gt;    field zfpbtc-bukrs .&lt;/P&gt;&lt;P&gt;    module liste_update_liste.&lt;/P&gt;&lt;P&gt;   endchain.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; module liste_after_loop.&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;Pranati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2007 19:57:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-19T19:57:53Z</dc:date>
    <item>
      <title>Do not allow blank values for key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984689#M402191</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;I have a table for which the key fields cannot be blank. I read in the forum that in the table maintenance generator i need to code. Can any one please tell me where in the following code i need to write that code...The highlighted fields are key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt; module liste_initialisieren.&lt;/P&gt;&lt;P&gt; loop at extract with control&lt;/P&gt;&lt;P&gt;  tctrl_zfpbtc cursor nextline.&lt;/P&gt;&lt;P&gt;   module liste_show_liste.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt; module liste_exit_command at exit-command.&lt;/P&gt;&lt;P&gt; module liste_before_loop.&lt;/P&gt;&lt;P&gt; loop at extract.&lt;/P&gt;&lt;P&gt;   module liste_init_workarea.&lt;/P&gt;&lt;P&gt;   chain.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    field zfpbtc-kostl .&lt;/P&gt;&lt;P&gt;    field zfpbtc-bukrs .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    field zfpbtc-z3pr .&lt;/P&gt;&lt;P&gt;    field zfpbtc-zbtc .&lt;/P&gt;&lt;P&gt;    field zfpbtc-aedtm .&lt;/P&gt;&lt;P&gt;    field zfpbtc-uname .&lt;/P&gt;&lt;P&gt;    module set_update_flag on chain-request.&lt;/P&gt;&lt;P&gt;   endchain.&lt;/P&gt;&lt;P&gt;   field vim_marked module liste_mark_checkbox.&lt;/P&gt;&lt;P&gt;   chain.&lt;/P&gt;&lt;P&gt;    field zfpbtc-kostl .&lt;/P&gt;&lt;P&gt;    field zfpbtc-bukrs .&lt;/P&gt;&lt;P&gt;    module liste_update_liste.&lt;/P&gt;&lt;P&gt;   endchain.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; module liste_after_loop.&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;Pranati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 19:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984689#M402191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T19:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Do not allow blank values for key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984690#M402192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the user can only maintain this table using the screens created by table maintenance generator, then you can add foreign key relationship to the key fields. Once you have that, there will be no need to code your own check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have to code your own check, then in table maintenance generator go to menu environment -&amp;gt; modifications -&amp;gt; events. Create events 05 and 21 pointing to same form routine. In that routine, you can add your check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 20:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984690#M402192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T20:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Do not allow blank values for key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984691#M402193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems to be a customized table which you have created. You can un-tick the Initial Value Checkbox in the table declaration in SE11 and reactivate the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bbye tac care&lt;/P&gt;&lt;P&gt;Ashwani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984691#M402193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T22:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Do not allow blank values for key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984692#M402194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendra,&lt;/P&gt;&lt;P&gt;i used event 05 to write the code..&lt;/P&gt;&lt;P&gt;Thanks for your help...&lt;/P&gt;&lt;P&gt;Pranati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-not-allow-blank-values-for-key-fields/m-p/1984692#M402194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T22:51:25Z</dc:date>
    </item>
  </channel>
</rss>

