<?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 Problems with dynamic drop-down and required fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183266#M1823261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a new screen with two drop downs. The first drop down ("List A") will determine what the values are of the second drop down ("List B").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all works fine until I make the drop downs and other fields on the screen "required" in the screen painter. With the "required" setting, when testing the screen, the second drop down (List B) cannot be filled with values until all "required" values have been entered. How do I get past this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to stop using the "required' option on the screen painter and then manually code the validations? Or is there a better way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an overview of how it is set up so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; PROCESS BEFORE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;OUTPUT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Clear List B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_DELETE_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; id_not_found &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Fill values based on List A&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Set values for List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_SET_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lt_listbox&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; PROCESS AFTER &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INPUT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;MODULE exit AT EXIT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;COMMAND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"handle user-command – check sy-ucomm…&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"If List A changes…&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Clear List B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_DELETE_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; id_not_found &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Fill values based on List A&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Set values for List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_SET_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lt_listbox&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can assume that there are 5 fields on the screen, all marked as "required" in the screen painter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 11:30:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-10T11:30:40Z</dc:date>
    <item>
      <title>Problems with dynamic drop-down and required fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183266#M1823261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a new screen with two drop downs. The first drop down ("List A") will determine what the values are of the second drop down ("List B").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all works fine until I make the drop downs and other fields on the screen "required" in the screen painter. With the "required" setting, when testing the screen, the second drop down (List B) cannot be filled with values until all "required" values have been entered. How do I get past this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to stop using the "required' option on the screen painter and then manually code the validations? Or is there a better way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an overview of how it is set up so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; PROCESS BEFORE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;OUTPUT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Clear List B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_DELETE_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; id_not_found &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Fill values based on List A&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Set values for List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_SET_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lt_listbox&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; PROCESS AFTER &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INPUT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;MODULE exit AT EXIT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;COMMAND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"handle user-command – check sy-ucomm…&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"If List A changes…&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Clear List B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_DELETE_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; id_not_found &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Fill values based on List A&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Set values for List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'VRM_SET_VALUES'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ls_field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"List B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lt_listbox&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can assume that there are 5 fields on the screen, all marked as "required" in the screen painter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 11:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183266#M1823261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-10T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with dynamic drop-down and required fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183267#M1823262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code for the Validation instead of Checking the REQUIRED parameter, you will have write code for each field to check if it is initial and show an error message if initail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 11:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183267#M1823262</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2014-03-10T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with dynamic drop-down and required fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183268#M1823263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Syed, but the dynamic drop down is filled in the PAI which causes validation problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the drop down is empty, and then the PAI is triggered by another drop down value change, it will fill the drop down with possible values in the PAI, and then immediately check if a value has been selected and give an error because no value has been selected yet. Since the validation and the dynamic drop down fill must be done in the PAI, how do you avoid the validation error? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I go into the screen for the first time- List A has possible values, and list B does not. I have to select a value from List A so that List B is populated with values. When I do this, then PAI is triggered. the PAI fills List B with possible values, but an actual value is not SELECTED yet since the user has not had a chance to do anything yet. No the PAI continues and checks if a value has been selected from List B - this will always fail, since the user does not get a chance to select a value before the validation is done...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 12:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183268#M1823263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-10T12:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with dynamic drop-down and required fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183269#M1823264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you delay the List B Validation until List A has some value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ListA is not initial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then only validate ListB.&lt;/P&gt;&lt;P&gt;End.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 12:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183269#M1823264</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2014-03-10T12:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with dynamic drop-down and required fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183270#M1823265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed - no, I think you have misunderstood the problem... Not to worry though because I came right. I had to check the UCOMM and only execute the validations on SAVE, and not on every pass through the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help though &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-dynamic-drop-down-and-required-fields/m-p/10183270#M1823265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-10T15:44:08Z</dc:date>
    </item>
  </channel>
</rss>

