<?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: INITIAL or NOT INITIAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924851#M1332235</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;Thomas is right, it can't do it: if you don't insert any value or if you insert 0: it'll be the same for the system, so u can't distinguish the two situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2009 09:19:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-28T09:19:53Z</dc:date>
    <item>
      <title>INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924843#M1332227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation here.  The code goes like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below code, ZTEST-DECI is a Decimal type with length 11 and decimal 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_deci TYPE ztest-deci.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_deci IS INITIAL.&lt;/P&gt;&lt;P&gt;  WRITE 'Empty'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE p_deci.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I leave P_deci in Input screen blank then it will print "Empty", and if I give the input as 0.00 it still prints "Empty". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want that to happen. I want it to print 0.00 as output if I give input as 0.00 or 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I do not want to change the Dala Element of ZTEST-DECI or declaration of p_DECI. However, I am ready for Type Casting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924843#M1332227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924844#M1332228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;IF p_deci IS INITIAL. is work only for data type Character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924844#M1332228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924845#M1332229</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;The comand INITIAL check if the value of a variable is &lt;STRONG&gt;INITIAL VALUE&lt;/STRONG&gt;, the initial value depends on the data type of the of variable:&lt;/P&gt;&lt;P&gt;- for char variable is BLANK, &lt;/P&gt;&lt;P&gt;- for a decimal variable is &lt;STRONG&gt;ZERO&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;- ...................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if you insert 0,00, it means u insert 0, i.e the initial value: the behavior is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you need to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924845#M1332229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924846#M1332230</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;IF p_deci IS INITIAL. it works only for data type Character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924846#M1332230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924847#M1332231</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;Try defining your fields as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : r_deci type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change you condition as &lt;STRONG&gt;initial&lt;/STRONG&gt; as it is used to check character types.&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anil Katoch on Jul 28, 2009 9:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924847#M1332231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924848#M1332232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ignore for the time..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Jul 28, 2009 9:51 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup,My bet with  Thomas &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Jul 28, 2009 11:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924848#M1332232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924849#M1332233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what we are trying to do here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is just that, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I give 0 in the selection screen output should be 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I do not give anything in the selection screen it should print as Blank. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is a little complex and the issue is because of this. Hence I cannot change the declaration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with a Logic using type casting or something? -&amp;gt; Type P and Type C in Typecasting no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924849#M1332233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T07:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924850#M1332234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not possible without changing the data type or introducing a help field, I'm afraid. Wether you enter nothing or 0 or 0.00 on the selection screen, once PAI processing starts, the value of p_deci will be '0.00' internally.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 08:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924850#M1332234</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-07-28T08:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL or NOT INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924851#M1332235</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;Thomas is right, it can't do it: if you don't insert any value or if you insert 0: it'll be the same for the system, so u can't distinguish the two situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 09:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-or-not-initial/m-p/5924851#M1332235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T09:19:53Z</dc:date>
    </item>
  </channel>
</rss>

