<?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 required fields in dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451752#M1553030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a dynpro with 3 fields required; each field is a code and near it I put corresponding description. I created 3 module for the field on chain-request and in this I chedck code is legal and set the description.&lt;/P&gt;&lt;P&gt;The problem I have is that when I enter one code and press enter key, the module is triggered and description is set, but system alert me for the other (the second field) is empty, when I set second UI Ihave the same error on third.&lt;/P&gt;&lt;P&gt;How is it possible to avoid this behaviour so that alert for missing required field is shown only when trying to leave dynpro ?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 09:26:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-20T09:26:46Z</dc:date>
    <item>
      <title>required fields in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451752#M1553030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a dynpro with 3 fields required; each field is a code and near it I put corresponding description. I created 3 module for the field on chain-request and in this I chedck code is legal and set the description.&lt;/P&gt;&lt;P&gt;The problem I have is that when I enter one code and press enter key, the module is triggered and description is set, but system alert me for the other (the second field) is empty, when I set second UI Ihave the same error on third.&lt;/P&gt;&lt;P&gt;How is it possible to avoid this behaviour so that alert for missing required field is shown only when trying to leave dynpro ?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451752#M1553030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T09:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: required fields in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451753#M1553031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have to write the validations at times when you click BACK or some button on the screen.&lt;/P&gt;&lt;P&gt;You have to remove the CHAIN ENDCHAIN validations for these fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451753#M1553031</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2010-12-20T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: required fields in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451754#M1553032</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;Don't use chain statment. follow the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD fld_name1 MODULE mod1.&lt;/P&gt;&lt;P&gt;FIELD fld_name2 MODULE mod2.&lt;/P&gt;&lt;P&gt;FIELD fld_name3 MODULE mod3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write code in module to pick up description. you can use ON-REQUEST or ON-INPUT option in statment FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Syed Maheboob on Dec 20, 2010 10:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451754#M1553032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T09:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: required fields in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451755#M1553033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make fields mandatory, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN
  IF SCREEN-NAME = 'MY1'
  OR SCREEN-NAME = 'MY2'
  OR SCREEN-NAME = 'MY3'
  SCREEN-REQUIRED = 'X'.   "SCREEN-REQUIRED = 'X'
  ENDIF.
  MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451755#M1553033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T09:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: required fields in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451756#M1553034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved:&lt;/P&gt;&lt;P&gt;the problem was that I was using as reference in program the fields of a structure.&lt;/P&gt;&lt;P&gt;In this way, I don't know why, the dynpro automatically alert me in case of required field left empty. If instead I use separated variales in program as reference of dynpro field, when I hit enter key on a field, there is no alert for others field.&lt;/P&gt;&lt;P&gt;I passed from &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* program
DATA wa TYPE struct.

* dynpro fields
wa-field1
wa-field2
wa-filed3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* program
DATA field1 TYPE struct-field1.
DATA field2 TYPE struct-field2.
DATA field3 TYPE struct-field3.

* dynpro fields
field1
field2
filed3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem in this way is that I have to check manually that required fileds are filled before leaving page, but is really better that see alert continuosly.&lt;/P&gt;&lt;P&gt;Hope this help &lt;/P&gt;&lt;P&gt;Thank you for trying answer me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 10:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-fields-in-dynpro/m-p/7451756#M1553034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T10:21:39Z</dc:date>
    </item>
  </channel>
</rss>

