<?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 Validating User Fields in Change Lease-Out in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-validating-user-fields-in-change-lease-out/m-p/2735682#M635408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've defined two Date Fields in Change Lease Out (transaction FOV2).&lt;/P&gt;&lt;P&gt;I need that when the first date field is empty the system returns a error message stating that the first data field should have data.&lt;/P&gt;&lt;P&gt;The second fill can be with or without data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that, right now, the system returns the error message in every case except if both fields are filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code done by the developer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION field_exit_usrdate_1.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
*"----------------------------------------------------------------------
  DATA dt_usr08 TYPE vzsort-usr08.

  IF input IS INITIAL.
    MESSAGE e005(z3_re).
  ENDIF.

  SET PARAMETER ID 'DT_USR08' FIELD dt_usr08.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Why the system always return the error message except if both the data fields are filled? Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 12:07:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T12:07:46Z</dc:date>
    <item>
      <title>Problems Validating User Fields in Change Lease-Out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-validating-user-fields-in-change-lease-out/m-p/2735682#M635408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've defined two Date Fields in Change Lease Out (transaction FOV2).&lt;/P&gt;&lt;P&gt;I need that when the first date field is empty the system returns a error message stating that the first data field should have data.&lt;/P&gt;&lt;P&gt;The second fill can be with or without data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that, right now, the system returns the error message in every case except if both fields are filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code done by the developer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION field_exit_usrdate_1.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
*"----------------------------------------------------------------------
  DATA dt_usr08 TYPE vzsort-usr08.

  IF input IS INITIAL.
    MESSAGE e005(z3_re).
  ENDIF.

  SET PARAMETER ID 'DT_USR08' FIELD dt_usr08.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Why the system always return the error message except if both the data fields are filled? Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 12:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-validating-user-fields-in-change-lease-out/m-p/2735682#M635408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T12:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problems Validating User Fields in Change Lease-Out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-validating-user-fields-in-change-lease-out/m-p/2735683#M635409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved Myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 11:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-validating-user-fields-in-change-lease-out/m-p/2735683#M635409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T11:02:57Z</dc:date>
    </item>
  </channel>
</rss>

