<?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: Checking NULL value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180914#M757343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use function module &amp;lt;b&amp;gt;CONVERT_DATE_TO_EXTERNAL&amp;lt;/b&amp;gt;. This will convert the date to the user specific format. So if your user specific format is mm/dd/yyyy, then this is all you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below threads as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3228197"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2037247"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="895544"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Dec 2007 10:32:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-15T10:32:15Z</dc:date>
    <item>
      <title>Checking NULL value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180909#M757338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to ABAP Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I am zero in ABAP hence please ingnore my lack of knowledge. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is that I have written an ABAP routine in transfer rule where I am pulling data from R/3 system into my info objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do here is that if the date is NULL "Not present at source", I would like to assign the default date to my info object.&lt;/P&gt;&lt;P&gt;My small piece of code looks like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If TRAN_STRUCTURE-birthdt = ' '.&lt;/P&gt;&lt;P&gt;  RESULT = '01/01/9999'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;  RESULT = TRAN_STRUCTURE-birthdt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me have your expert advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in Advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bobby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 07:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180909#M757338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-15T07:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Checking NULL value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180910#M757339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF NOT &amp;lt;/b&amp;gt; TRAN_STRUCTURE-birthdt  &amp;lt;b&amp;gt;IS INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;RESULT = TRAN_STRUCTURE-birthdt.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;RESULT = '01/01/9999'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 07:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180910#M757339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-15T07:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Checking NULL value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180911#M757340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALWAYS CHECK NULL VALUES BY USING INITIAL STATEMENT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 08:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180911#M757340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-15T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking NULL value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180912#M757341</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 tran_strcuture-birthdt is initial.&lt;/P&gt;&lt;P&gt;result = '99990101'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;result = tran_strucutre-birthdt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 08:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180912#M757341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-15T08:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Checking NULL value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180913#M757342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarvan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fantastic answer and thanks you very much.&lt;/P&gt;&lt;P&gt;My next issue here is that I have extracted date from R/3 structure from 0BPARTNER where the birthdate is of type DATS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an info object which is of type date char 8.&lt;/P&gt;&lt;P&gt;All dates are pulled correctly in the format of mm/dd/yyyy but where the birthdate is null in source system, I am defaulting it to either 99990101 or 19000101 but it picks up really random date. &lt;/P&gt;&lt;P&gt;Do I have to use any function here to convert the date format to mm/dd/yyyy?&lt;/P&gt;&lt;P&gt;Any idea? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bobby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 09:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180913#M757342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-15T09:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Checking NULL value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180914#M757343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use function module &amp;lt;b&amp;gt;CONVERT_DATE_TO_EXTERNAL&amp;lt;/b&amp;gt;. This will convert the date to the user specific format. So if your user specific format is mm/dd/yyyy, then this is all you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below threads as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3228197"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2037247"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="895544"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 10:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-null-value/m-p/3180914#M757343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-15T10:32:15Z</dc:date>
    </item>
  </channel>
</rss>

