<?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: time field content in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368001#M1839502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your requirement is to check whether the content is initial, use IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abijith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 04:32:00 GMT</pubDate>
    <dc:creator>former_member196651</dc:creator>
    <dc:date>2014-06-06T04:32:00Z</dc:date>
    <item>
      <title>time field content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368000#M1839501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following doubt about a screen field with time format (CI_FLEET-time type sy-uzeit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It only happens in field content in a screen exit in XTOB function group to IE01/IE02 transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a time field added in a new custom screen, inside XTOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user deletes its original 00:00:00 content and press ENTER key, then the PAI is executed, so I check its value in a module in chain/field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I put a condition to check its content, but for my surprise, this condition is not true (even field value = space).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;IF CI_FLEET-time = ''.&lt;/P&gt;
&lt;P&gt;* Do some check here ...but is never true ...so abap execution never enters here ...&lt;/P&gt;
&lt;P&gt;ENDIF.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, a friend asked me to check with space instead of ''....then, it works fine.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;IF CI_FLEET-time = space.&lt;/P&gt;
&lt;P&gt;* Here it works fine. The field is empty and execution enters here ...&lt;/P&gt;
&lt;P&gt;ENDIF.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Main doubt is because I created a test Online program ( module pool ) with a same format field on the screen. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;So when I delete its content and debug the PAI, my IF wa_xpto-time = '' works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;IF wa_xpto-time = ''.&lt;/P&gt;
&lt;P&gt;* do check here, works fine in a test new online ...&lt;/P&gt;
&lt;P&gt;ENDIF.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why it does not work in XTOB like that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 16:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368000#M1839501</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2014-06-05T16:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: time field content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368001#M1839502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your requirement is to check whether the content is initial, use IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abijith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 04:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368001#M1839502</guid>
      <dc:creator>former_member196651</dc:creator>
      <dc:date>2014-06-06T04:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: time field content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368002#M1839503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not said it. I forgot to say that IS INITIAL did not work in XTOB exit function group, to this time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved it comparing the field with SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to know why it does not work with IF time_field = ''. Because it works in my test online program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I still looking for an answer about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 11:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-field-content/m-p/10368002#M1839503</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2014-06-06T11:26:05Z</dc:date>
    </item>
  </channel>
</rss>

