<?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: How to catch the exception CX_SY_REF_IS_INITIAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439912#M209376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  element = l_document-&amp;gt;find_from_name( name = period ). &lt;/P&gt;&lt;P&gt;  catch CX_SY_REF_IS_INITIAL.&lt;/P&gt;&lt;P&gt;    .. code with what you want to do goes here ..&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  str = element-&amp;gt;get_attribute( name = dechu ).&lt;/P&gt;&lt;P&gt;  catch CX_SY_REF_IS_INITIAL.&lt;/P&gt;&lt;P&gt;    .. code with what you want to do goes here ..&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 22:01:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T22:01:11Z</dc:date>
    <item>
      <title>How to catch the exception CX_SY_REF_IS_INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439911#M209375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;my code     &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;element = l_document-&amp;gt;find_from_name( name = period ).
 str = element-&amp;gt;get_attribute( name = dechu ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and i don't have the field dechu so i have a dump with OBJECTS_OBJREF_NOT_ASSIGNED_NO &lt;/P&gt;&lt;P&gt;CX_SY_REF_IS_INITIAL           &lt;/P&gt;&lt;P&gt;how i can catch this exception ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;serge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 15:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439911#M209375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T15:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch the exception CX_SY_REF_IS_INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439912#M209376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  element = l_document-&amp;gt;find_from_name( name = period ). &lt;/P&gt;&lt;P&gt;  catch CX_SY_REF_IS_INITIAL.&lt;/P&gt;&lt;P&gt;    .. code with what you want to do goes here ..&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  str = element-&amp;gt;get_attribute( name = dechu ).&lt;/P&gt;&lt;P&gt;  catch CX_SY_REF_IS_INITIAL.&lt;/P&gt;&lt;P&gt;    .. code with what you want to do goes here ..&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 22:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439912#M209376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T22:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch the exception CX_SY_REF_IS_INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439913#M209377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  Declare a reference variable for the exception class.&lt;/P&gt;&lt;P&gt;data : lref_excep type ref to to CX_SY_REF_IS_INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;element = l_document-&amp;gt;find_from_name( name = period ).&lt;/P&gt;&lt;P&gt; str = element-&amp;gt;get_attribute( name = dechu ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;catch CX_SY_REF_IS_INITIAL into lref_execp.&lt;/P&gt;&lt;P&gt;l_msg = lref_execp-&amp;gt;get_text().&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now display the error message l_msg.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click the below link for detailed documentation...&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/55/bff20efe8c11d4b54a006094b9456f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/55/bff20efe8c11d4b54a006094b9456f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 22:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-the-exception-cx-sy-ref-is-initial/m-p/1439913#M209377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T22:14:16Z</dc:date>
    </item>
  </channel>
</rss>

