<?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: Avoid validation error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003866#M1804863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for helpping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answering the question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is because I do not have a field like DateTime. The user will input something like that: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date: 01.04.2014 to 02.04.2014&lt;/P&gt;&lt;P&gt;Time: 23:59:59 to 08:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---&amp;gt; Here is the problem, the initial hour is greater then the final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to use all of it in a SELECT like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM table WHERE iniDate &amp;gt;= '01.04.2014' and finalDate &amp;lt;= '02.04.2014' and iniHour &amp;gt;= '23:59:59' and finalHour &amp;lt;= '08:00:00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actually I have already fixed using independent fields in order to avoid the standard check.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, do you know a better solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is is possible to have in ABAP a field DateTime (Date and time in the same field)... Something in the format: "DD/MM/AAAA HH:MM:SS.SSS" like some databases do like MySQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 18:50:29 GMT</pubDate>
    <dc:creator>lferreira</dc:creator>
    <dc:date>2014-04-17T18:50:29Z</dc:date>
    <item>
      <title>Avoid validation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003864#M1804861</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;&lt;/P&gt;&lt;P&gt;How can I avoid the message bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/362445" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The check shoud consider the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could just remove this check, it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;WA_PERDATA&amp;nbsp; &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;SY&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;DATUM&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WA_PERHORA&amp;nbsp; &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;SY&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;UZEIT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BLOCK &lt;/SPAN&gt;B1_SEL &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FRAME &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TITLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;001&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT-OPTIONS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPERDATA&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;WA_PERDATA OBLIGATORY&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPERHORA&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;WA_PERHORA OBLIGATORY&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BLOCK &lt;/SPAN&gt;B1_SEL&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003864#M1804861</guid>
      <dc:creator>lferreira</dc:creator>
      <dc:date>2014-01-13T17:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid validation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003865#M1804862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a standard check for the select-options. It is telling you that the variable LOW is higher than the variable HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify why you need to remove this check? If you invert the dates it will stop bothering you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 18:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003865#M1804862</guid>
      <dc:creator>FabioPagoti</dc:creator>
      <dc:date>2014-01-13T18:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid validation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003866#M1804863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for helpping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answering the question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is because I do not have a field like DateTime. The user will input something like that: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date: 01.04.2014 to 02.04.2014&lt;/P&gt;&lt;P&gt;Time: 23:59:59 to 08:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---&amp;gt; Here is the problem, the initial hour is greater then the final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to use all of it in a SELECT like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM table WHERE iniDate &amp;gt;= '01.04.2014' and finalDate &amp;lt;= '02.04.2014' and iniHour &amp;gt;= '23:59:59' and finalHour &amp;lt;= '08:00:00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actually I have already fixed using independent fields in order to avoid the standard check.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, do you know a better solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is is possible to have in ABAP a field DateTime (Date and time in the same field)... Something in the format: "DD/MM/AAAA HH:MM:SS.SSS" like some databases do like MySQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003866#M1804863</guid>
      <dc:creator>lferreira</dc:creator>
      <dc:date>2014-04-17T18:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid validation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003867#M1804864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lindomar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was going to suggest exactly the same solution you have made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's no problem to do this way. I believe that even in standard tables/transactions you'll find an independent treatment for hour fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewardful points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;João&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003867#M1804864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-17T20:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid validation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003868#M1804865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just have to revert your time as we can see it is enteterd in the wrong column.&lt;/P&gt;&lt;P&gt;Regarding your second query as your looking to optimize your select where condition using 2 values(high and low date time stamp) instead of 4 fields separately i can suggest you one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate low-&lt;SPAN style="color: #333333; font-size: 12px;"&gt;date low-time&amp;nbsp; to a variable and do similarly for high.&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Finally use those variable in select.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; But frankly i will go for 4 fields as it is one of the standard provided by SAP.Please let me know your findings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Kannan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003868#M1804865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-17T20:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid validation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003869#M1804866</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;U can resolve this issue by taking 2 different parameter for time.&lt;/P&gt;&lt;P&gt;i mean p_from _time&amp;nbsp; and p_to_time.&lt;/P&gt;&lt;P&gt;So , system wil not validate from time and to time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and U can use the comment syntax for getting same layout with different variable. From_time and To_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satyen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 08:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-validation-error/m-p/10003869#M1804866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-18T08:19:31Z</dc:date>
    </item>
  </channel>
</rss>

