<?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: Mandatory field in data dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275959#M151521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell me the code or explain what u have done as i have the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanxs in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 13:24:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-09T13:24:57Z</dc:date>
    <item>
      <title>Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275947#M151509</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 have created a ztable and did table maintainance generator. Even though first 3 fields are primary keys but still system is allowed to store the entries without any value (blank). pls suggest how to make it mandatory?&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;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275947#M151509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275948#M151510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; It is possible to create one line as blank line,but not one more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275948#M151510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275949#M151511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradeep,&lt;/P&gt;&lt;P&gt;   field entry mandatory( shud not left blank)&lt;/P&gt;&lt;P&gt;This cannot be done in SE11 while creating a table. &lt;/P&gt;&lt;P&gt;This needs to be done in screen painter.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kinshuk Saxena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275949#M151511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275950#M151512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to add your own custom checks in table maintenance by modifying the generated code. Go to the screen editor and create your own module in PAI and create a z include and add ur validations there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275950#M151512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275951#M151513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;  if you don't want blank entries you can&lt;/P&gt;&lt;P&gt;- set the allowed values in the field domain&lt;/P&gt;&lt;P&gt;- if the table can only be modified by the maintainance view, modify the logic flow of the screen (insert a module in which you check the values and display an error message if the user inserts a blank value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275951#M151513</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-03-22T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275952#M151514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for the answer. it will be great if you could let me know where to do add the pai (own logic). I am able to write the code but do't know where to write.&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;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275952#M151514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275953#M151515</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;- Se11 -&amp;gt; Modify&lt;/P&gt;&lt;P&gt;- choose Utilities -&amp;gt; Table maintenance generator (i presume that a maintenace view already exists)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Environment -&amp;gt; Modification -&amp;gt; Maintenace screen&lt;/P&gt;&lt;P&gt;- Double click on dynpro number&lt;/P&gt;&lt;P&gt;- Inside the LOOP statement (because you have to check all the entries) for example just before the ENDLOOP statement, insert:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD ZFIELD.
  MODULE CHECK_ZFIELD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275953#M151515</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-03-22T15:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275954#M151516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  As you suggested I have added the code but during debugging still system is not able to recognised this module "MODULE CHECK_ZPRPTN1_SPART INPUT."&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Code is given below : &lt;/P&gt;&lt;P&gt;Flow Logic :&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;   FIELD ZPRPTN1-SPART .&lt;/P&gt;&lt;P&gt;   MODULE CHECK_ZPRPTN1_SPART.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;code in include is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE CHECK_ZPRPTN1_SPART INPUT.&lt;/P&gt;&lt;P&gt;IF ZPRPTN1-spart eQ ' '.&lt;/P&gt;&lt;P&gt;   MESSAGE E000(VA) WITH 'PLS FILL VALUE'.&lt;/P&gt;&lt;P&gt;   EXIT.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " MODULE CHECK_ZPRPTN1_SPART  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest how to resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 16:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275954#M151516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275955#M151517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;IF ZPRPTN1-spart &amp;lt;b&amp;gt;IS INITIAL&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 16:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275955#M151517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T16:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275956#M151518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;system is not going at if condition during debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 16:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275956#M151518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T16:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275957#M151519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way. Go to SE54. Enter you table name. In the menu, 'Environment--&amp;gt;Events'. Hit 'enter' on the subsequent popup warning. In the next screen, you will see a table control with three columns. First one is 'T' and the next one is 'FORM routine' and the last one is 'Editor'. Click on 'New Entries' button. Enter '01' in the column 'T' and 'VALIDATE_BEFORE_SAVE' under the 'FORM routine' column. I am just taking an example here, but the name can be anything. What is important is the 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now click on the source code icon that appears in the third column. Next you will get a popup asking for the include name where you want to write the code for this routine. This include will be part of your function group's main program. Once you are in the editor, use the following code for validating the blank values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM validate_before_save.

  DATA: BEGIN OF s_myztable.
          INCLUDE STRUCTURE zmyztable.
          INCLUDE STRUCTURE vimtbflags.
  DATA: END OF s_myztable.

  LOOP AT total.
    CLEAR s_myztable.
    MOVE total TO s_myztable.
*-- only if it is not marked for deletion
    CHECK s_myztable-vim_action &amp;lt;&amp;gt; neuer_geloescht.
    IF s_myztable-keyfield1 IS INITIAL OR
       s_myztable-keyfield2 IS INITIAL.
      MESSAGE i000 WITH 'Key Field1 and Key Field2 cannot be blank.'.
      sy-subrc = 4.
      EXIT.
    ENDIF.
  ENDLOOP.

ENDFORM.                                    " VALIDATE_BEFORE_SAVE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 16:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275957#M151519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275958#M151520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  problem got resolved, thanx a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 17:00:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275958#M151520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T17:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275959#M151521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell me the code or explain what u have done as i have the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanxs in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 13:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-in-data-dictionary/m-p/1275959#M151521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T13:24:57Z</dc:date>
    </item>
  </channel>
</rss>

