<?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 Preselect mandatory dynpro field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358252#M1400028</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 want to preselect a mandatory dynpro field dependent on user inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user pushs "enter" the field should be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there comes always the "Please fill all required fields" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is in the screen painter defined as "required". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to check the field value manually or how can I fill the field before the check occurs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 10:54:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-02T10:54:16Z</dc:date>
    <item>
      <title>Preselect mandatory dynpro field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358252#M1400028</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 want to preselect a mandatory dynpro field dependent on user inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user pushs "enter" the field should be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there comes always the "Please fill all required fields" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is in the screen painter defined as "required". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to check the field value manually or how can I fill the field before the check occurs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 10:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358252#M1400028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T10:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Preselect mandatory dynpro field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358253#M1400029</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;Please specify the requirement clearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358253#M1400029</guid>
      <dc:creator>qamar_javed</dc:creator>
      <dc:date>2009-12-02T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Preselect mandatory dynpro field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358254#M1400030</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;lets say we have two dynpro fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;field1 and field2&lt;/P&gt;&lt;P&gt;field2 is mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the user enters a value in field1 the value should be automatically filled in field2 after pushing enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to fill the field2 in PBO of my screen. &lt;/P&gt;&lt;P&gt;But there is always the "Fill all required fields" message..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358254#M1400030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T11:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preselect mandatory dynpro field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358255#M1400031</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;Ok. for the user command of 'enter' copy the value of field 1 to field 2  in PBO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358255#M1400031</guid>
      <dc:creator>qamar_javed</dc:creator>
      <dc:date>2009-12-02T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Preselect mandatory dynpro field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358256#M1400032</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;write a little test program and try your solution.. &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will not work!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Wolfgang Bauer on Dec 2, 2009 1:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 12:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358256#M1400032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T12:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Preselect mandatory dynpro field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358257#M1400033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wolfgang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your requirement is not at all possible.  You have to make the first field as Mandatory, other wise if you want to make second field as mandatory &amp;amp; press enter the system wont allow us to proceed by default since we have a mandatory field on the second line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a function AT EXIT-COMMAND using which we can by pass all the mandatory fields on the screen but in your case I tried to use this function whats happening, the moment you enter some value in the first input field &amp;amp; hit enter the system processes AT EXIT-COMMAND but it deletes the values in the fisrt input field, so you cant move the value of the first field into the second field since it will be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So What I suggest is make first field as Mandatory &amp;amp; proceed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a small program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code snippet for your perusal :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Design two input fields of length on the screen&lt;/P&gt;&lt;P&gt;SE 38 code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_scr .

DATA : field1(15) TYPE c,
       field2(15) TYPE c.

START-OF-SELECTION.

  CALL SCREEN 0100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
case sy-ucomm.
when ' '.           "When you hit enter SY-UCOMM will be blank
  field2 = field1.

  endcase.
ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51 Code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*
PROCESS AFTER INPUT.
 MODULE USER_COMMAND_0100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Abhii on Dec 2, 2009 1:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 12:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preselect-mandatory-dynpro-field/m-p/6358257#M1400033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T12:50:37Z</dc:date>
    </item>
  </channel>
</rss>

