<?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: Error NULL object reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979869#M400950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must first create the object, but since it is not put in an event, it is not triggering the CREATE OBJECT.  Modify like so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  data : disp_help type ref to l_display_help.
  intialization.
       create object disp_help.
  at selection-screen on help-request for p_awerk.
       call method disp_help-&amp;gt;m_display_help( ).



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  data : disp_help type ref to l_display_help.

  at selection-screen on help-request for p_awerk.
    if   disp_help is initial
          create object disp_help.
    endif..
    call method disp_help-&amp;gt;m_display_help( ).



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 20:34:36 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-02-07T20:34:36Z</dc:date>
    <item>
      <title>Error NULL object reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979868#M400949</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;I am calling a method in at selection-screen on help-request event. But it is giving me dump ie "Access not possible using 'NULL' object reference"&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  data : disp_help type ref to l_display_help.
  create object disp_help.
  at selection-screen on help-request for p_awerk.
    call method disp_help-&amp;gt;m_display_help( ).


*&amp;amp;---------------------------------------------------------------------*
* Class l_display_help Implementation                                  *
*&amp;amp;---------------------------------------------------------------------*
* To display the documentation for the button clicked                  *
*----------------------------------------------------------------------*
class l_display_help implementation.
  method m_display_help.
    clear wa_help.
    refresh i_help.

    wa_help-tdline = text-069.
    wa_help-tdformat = '1'.
    append wa_help to i_help.
    clear wa_help.

    wa_help-tdline = text-070.
    wa_help-tdformat = '2'.
    append wa_help to i_help.
    clear wa_help.

    wa_help-tdline = text-071.
    wa_help-tdformat = '3'.
    append wa_help to i_help.
    clear wa_help.
    v_title = text-072.
    call function 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
      exporting
        task       = c_display
        titel      = v_title
      tables
        text_table = i_help.
  endmethod.                             " M_display_help
endclass.                                " L_display_help IMPLEMENTATION

class l_display_help definition.
  public section.
    data : v_title type n.
    data : t_help  type tline.
    data : i_help  type standard table of t_help.
    data : wa_help type t_help.
    methods : m_display_help.
endclass.                                " L_display_help

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979868#M400949</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-02-07T20:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error NULL object reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979869#M400950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must first create the object, but since it is not put in an event, it is not triggering the CREATE OBJECT.  Modify like so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  data : disp_help type ref to l_display_help.
  intialization.
       create object disp_help.
  at selection-screen on help-request for p_awerk.
       call method disp_help-&amp;gt;m_display_help( ).



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  data : disp_help type ref to l_display_help.

  at selection-screen on help-request for p_awerk.
    if   disp_help is initial
          create object disp_help.
    endif..
    call method disp_help-&amp;gt;m_display_help( ).



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979869#M400950</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-02-07T20:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error NULL object reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979870#M400951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your reply is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-null-object-reference/m-p/1979870#M400951</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-02-07T20:37:56Z</dc:date>
    </item>
  </channel>
</rss>

