<?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 Access via 'NULL' object reference not possible in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333301#M1396348</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;I'm trying to pass parameter in object CL_GOS_MANAGER. This is my coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : cocode(3) type c,&lt;/P&gt;&lt;P&gt;       docno(10) type c,&lt;/P&gt;&lt;P&gt;       fiscal(4) type c,&lt;/P&gt;&lt;P&gt;       temp(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cocode = ORGANISATIONS(3).&lt;/P&gt;&lt;P&gt;docno = CORR_DOC(10).&lt;/P&gt;&lt;P&gt;fiscal = CORR_DOC+13(4).&lt;/P&gt;&lt;P&gt;concatenate cocode ' ' docno fiscal into temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LO_MANAGER TYPE REF TO CL_GOS_MANAGER,&lt;/P&gt;&lt;P&gt;LA_OBJ TYPE BORIDENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LA_OBJ-OBJTYPE = 'BUS2021'.&lt;/P&gt;&lt;P&gt;LA_OBJ-OBJKEY = temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method LO_MANAGER-&amp;gt;set_id_of_published_object&lt;/P&gt;&lt;P&gt;  exporting is_object = la_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I always get ABAP dump message Access via 'NULL' object reference not possible.&lt;/P&gt;&lt;P&gt;Anyone can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 06:42:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-17T06:42:56Z</dc:date>
    <item>
      <title>Access via 'NULL' object reference not possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333301#M1396348</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;I'm trying to pass parameter in object CL_GOS_MANAGER. This is my coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : cocode(3) type c,&lt;/P&gt;&lt;P&gt;       docno(10) type c,&lt;/P&gt;&lt;P&gt;       fiscal(4) type c,&lt;/P&gt;&lt;P&gt;       temp(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cocode = ORGANISATIONS(3).&lt;/P&gt;&lt;P&gt;docno = CORR_DOC(10).&lt;/P&gt;&lt;P&gt;fiscal = CORR_DOC+13(4).&lt;/P&gt;&lt;P&gt;concatenate cocode ' ' docno fiscal into temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LO_MANAGER TYPE REF TO CL_GOS_MANAGER,&lt;/P&gt;&lt;P&gt;LA_OBJ TYPE BORIDENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LA_OBJ-OBJTYPE = 'BUS2021'.&lt;/P&gt;&lt;P&gt;LA_OBJ-OBJKEY = temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method LO_MANAGER-&amp;gt;set_id_of_published_object&lt;/P&gt;&lt;P&gt;  exporting is_object = la_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I always get ABAP dump message Access via 'NULL' object reference not possible.&lt;/P&gt;&lt;P&gt;Anyone can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 06:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333301#M1396348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333302#M1396349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="8377422"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 06:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333302#M1396349</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-11-17T06:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333303#M1396350</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;Here's is the whole scenario I'm facing.&lt;/P&gt;&lt;P&gt;When I open FIBLFFP (payment request) -&amp;gt; I create object. This is in order to be able attach file&lt;/P&gt;&lt;P&gt;(Method CREATE_FREEFORM_PAYMENT)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :  LA_OBJ TYPE BORIDENT.

         LA_OBJ-OBJTYPE = 'BUS2021'.
         LA_OBJ-OBJKEY = '0000000000'.   * This is an initial document number, because the correct doc no not yet generated

         CREATE OBJECT CL_GOS_MANAGER
            EXPORTING
               IS_OBJECT = LA_OBJ
               IP_NO_COMMIT = SPACE
            EXCEPTIONS
               OTHERS = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I want to save my payment request, then only I can get the document number generated by SAP. &lt;/P&gt;&lt;P&gt;I need to pass the the combination company code + doc no + fiscal year to the object key of object CL_GOS_MANAGER I've created earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(EXIT_SAPL2021_002)
DATA : cocode(3) TYPE c,
             docno(10) TYPE c,
             fiscal(4) TYPE c,
             temp(20) TYPE c,
             la_obj TYPE borident.

              cocode = organisations(3).
              docno = corr_doc(10).
              fiscal = corr_doc+13(4).
              CONCATENATE cocode ' ' docno fiscal INTO temp.

               la_obj-objtype = 'BUS2021'.
               la_obj-objkey = temp.

               CALL METHOD lo_manager-&amp;gt;set_id_of_published_object
                 EXPORTING
                   is_object        = la_obj.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I get the error message. &lt;/P&gt;&lt;P&gt;Any suggestion so that I could have the attached file linked to the new document created ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 07:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333303#M1396350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T07:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333304#M1396351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it dumping  at the below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method LO_MANAGER-&amp;gt;set_id_of_published_object&lt;/P&gt;&lt;P&gt;exporting is_object = la_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if there is some value in LO_MANAGER, before this statement is called,  in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you freeing or clearing it before ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 14:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333304#M1396351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333305#M1396352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved it by my own. &lt;/P&gt;&lt;P&gt;I need to define the variable in global parameter that both of the exit and function module can recognized. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 05:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/6333305#M1396352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T05:54:27Z</dc:date>
    </item>
  </channel>
</rss>

