<?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 fields  in dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647929#M610138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said there are few mandatory fields in the dynpro, i dont think it is possible to skip them with out entering data in those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, what you can do is - &lt;/P&gt;&lt;P&gt;Do not make those fields as mandatory during design time. &lt;/P&gt;&lt;P&gt;Instead write code in PAI Module to check if values are entered in those fields if the button is not clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Reward points for informatory answers.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 09:05:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T09:05:10Z</dc:date>
    <item>
      <title>mandatory fields  in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647928#M610137</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 some mandatory fields in my dynpro, but i also have a option to fill data in the dynpro after filling 2 fields and clickin a button. &lt;/P&gt;&lt;P&gt;The problem is that if I click the button, it says that I have to fill the mandatory fields. Is there a way to stop the control-function only for this button-click?&lt;/P&gt;&lt;P&gt;i tried it with exit-commands, but so i don´t get the data from the 2 filled fields, because it only transports the user-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 08:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647928#M610137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T08:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory fields  in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647929#M610138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said there are few mandatory fields in the dynpro, i dont think it is possible to skip them with out entering data in those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, what you can do is - &lt;/P&gt;&lt;P&gt;Do not make those fields as mandatory during design time. &lt;/P&gt;&lt;P&gt;Instead write code in PAI Module to check if values are entered in those fields if the button is not clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Reward points for informatory answers.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 09:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647929#M610138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory fields  in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647930#M610139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;How you set the mandatory check for the field?is it through screen painter or you use the chain..endchain statement for the mandatory check.if you are using the chain .. endchain statement for madatory check you can write inside the module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI of the screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;field field1 module check.&lt;/P&gt;&lt;P&gt;endchain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module check you have to write following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module check input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm &amp;lt;&amp;gt; 'BUTTON'&lt;/P&gt;&lt;P&gt;check here the field is empty&lt;/P&gt;&lt;P&gt;then give appropriate message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hop this will be helpfule for u.&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;shibu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 09:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647930#M610139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory fields  in dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647931#M610140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Andreas..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Solution for u..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using the Module AT EXIT-COMMAND to avoid the Mandatory field checks. But in this module the Screen fields are not Copied to Program Variables.&lt;/P&gt;&lt;P&gt;Only the OK_CODE(SY-UCOMM) will be copied.&lt;/P&gt;&lt;P&gt;But you can read the Values of the SCREEN FIELDS by Calling the FM&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DYNP_VALUES_READ&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;(This Fm reads the Screen field values even before they are transported to program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;dyname = sy-cprog&lt;/P&gt;&lt;P&gt;dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynpfields = h_dynpfields&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if there are any issues.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 09:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-fields-in-dynpro/m-p/2647931#M610140</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-20T09:23:28Z</dc:date>
    </item>
  </channel>
</rss>

