<?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: Initializing Instance Attributes of a Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349078#M1540375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe, Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the standard code of "CREATE_KW_EXPLORER" method of standard class, the below interface and method gets auto initialized when i run the Tcode SE80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initialize container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method &lt;STRONG&gt;me-&amp;gt;if_wb_program~wb_manager-&amp;gt;get_window&lt;/STRONG&gt;    exporting&lt;/P&gt;&lt;P&gt;      p_window_id         = i_window_id&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      p_window            = lv_window_ref&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      window_not_existing = 1.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message i001(mimes) with 'GET_WINDOW'&lt;/P&gt;&lt;P&gt;      'CL_MIME_REPOSITORY-&amp;gt;CREATE_KW_EXPLORER'&lt;/P&gt;&lt;P&gt;      raising error_occured.&lt;/P&gt;&lt;P&gt;    return.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when i copy and use the Zclass with the same above code, the interface comes as NULL and the program gives me a dump saying that object is NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how and where should i initialize these interfaces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 10:10:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-08T10:10:38Z</dc:date>
    <item>
      <title>Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349075#M1540372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how can i initialize the instance attributes of a ZClass? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copied the standard class "CL_WB_MIME_REPOSITORY" into my ZClass as "ZCL_WB_MIME_REPOSITORY".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the standard class we have private instance attributes as "HTML_VIEWER" and "KW_EXPLORER" and these gets initialized&lt;/P&gt;&lt;P&gt;automatically when i run the standard tcode SE80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when i am running my ZTcode having my ZClass, these attributes are not initialized and are NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how should i initialize these attributes in my ZClass and where should i write the code and what will be that code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349075#M1540372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349076#M1540373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instance attributes are initialized within the CONSTRUCTOR method.&lt;/P&gt;&lt;P&gt;Static attributes can be set within the CLASS_CONSTRUCTOR method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*---------------------------------------------------------------------*
*       METHOD constructor                                            *
*---------------------------------------------------------------------*
* stores the new object instance in class variable
*---------------------------------------------------------------------*
METHOD constructor .

  cl_wb_mime_repository=&amp;gt;instance = me.

ENDMETHOD.                    "constructor of CL_WB_MIME_REPOSITORY
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attribute HTML_VIEWER is instantiated in method TOGGLE_PREVIEW:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Make sure HTML viewer control is created
  IF me-&amp;gt;html_viewer IS INITIAL.
    DATA: l_html_container TYPE REF TO cl_gui_container.

* Get container for the HTML Viewer
    CALL METHOD me-&amp;gt;splitter-&amp;gt;get_container
      EXPORTING
        row       = wbmr_c_splitter_row_preview
        column    = 1
      RECEIVING
        container = l_html_container
      EXCEPTIONS
        OTHERS    = 1.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE i002(mimes)
        RAISING error_occured.
*   Fehler im Control Framework
      RETURN.
    ENDIF.

* Create HTML Viewer Control
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349076#M1540373</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-10-08T09:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349077#M1540374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attribute "KW_EXPLORER" is being initialised in the method PROCESS_WB_REQUEST of the associated interface IF_WB_PROGRAM. See this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF me-&amp;gt;kw_explorer IS INITIAL.
        CALL METHOD me-&amp;gt;create_kw_explorer
          EXPORTING
            i_window_id   = p_window_id
            name_space    = l_name_space
            application   = l_application
          EXCEPTIONS
            error_occured = 1.
ELSE.
 ............
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly check how the attribute "HTML_VIEWER" is being instantiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although i've not worked with the class CL_WB_MIME_REPOSITORY, what i understand is the class exposes itself to the external user via the associated IFs. (Most of the methods of the class are PRIVATE!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349077#M1540374</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-08T10:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349078#M1540375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe, Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the standard code of "CREATE_KW_EXPLORER" method of standard class, the below interface and method gets auto initialized when i run the Tcode SE80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initialize container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method &lt;STRONG&gt;me-&amp;gt;if_wb_program~wb_manager-&amp;gt;get_window&lt;/STRONG&gt;    exporting&lt;/P&gt;&lt;P&gt;      p_window_id         = i_window_id&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      p_window            = lv_window_ref&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      window_not_existing = 1.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message i001(mimes) with 'GET_WINDOW'&lt;/P&gt;&lt;P&gt;      'CL_MIME_REPOSITORY-&amp;gt;CREATE_KW_EXPLORER'&lt;/P&gt;&lt;P&gt;      raising error_occured.&lt;/P&gt;&lt;P&gt;    return.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when i copy and use the Zclass with the same above code, the interface comes as NULL and the program gives me a dump saying that object is NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how and where should i initialize these interfaces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349078#M1540375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T10:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349079#M1540376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have debug the standard code of SE80 and got struck at a point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the standard code, whenever we run SE80 an object of the class "CL_WB_MIME_REPOSITORY" gets created and in that we have an interface as "IF_WB_PROGRAM" with an attribute "WB_MANAGER".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this interface gets initialized somewhere in the standard code and the rest of the code is based on this and it works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to find out where this interface is getting initialized, because when i am running my ZClass code this interface is coming as NULL and my ZProgram gives me a DUMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how and where should i initialize this interface in my ZClass so that my code works similar to that of the standard one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 05:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349079#M1540376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T05:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349080#M1540377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you read my response thoroughly? Have a look &amp;amp; in case of have any more questions feel free to shoot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:  You don't have to debug to understand the basic functionality of the class;-) All the elements are so closely knit in the class builder that mere navigation gives you sufficient idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349080#M1540377</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-11T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349081#M1540378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did read through your eariler post and understood where "HTML_VIEWER" and "KW_EXPLORER" are being initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of this logic for initializing the objects is based on the interface "IF_WB_PROGRAM~WB_PROGRAM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i am using the same interface in my ZClass, this interface is coming as NULL, while this comes auto initialized for the standard class "CL_WB_MIME_REPOSITORY" with the object value = "&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how should i update my ZClass so that this interface will not be NULL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 08:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349081#M1540378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T08:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349082#M1540379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have copied the class CL_WB_MIME_REPOSITORY to your Z class, but didn't change the use of all Static Variables of the class CL_WB_MIME_REPOSITORY. In your Z class search the string CL_WB_MIME_REPOSITORY. You may find occurrence where your Z class is still using the static variables of the CL_WB_MIME_REPOSITORY. If you may want to replace them and try again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 14:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349082#M1540379</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2010-10-11T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349083#M1540380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already commented all the occurences of "CL_WB_MIME_REPOSITORY" in my ZClass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you exaplain your point about static variables in more details?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 06:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349083#M1540380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349084#M1540381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also like to tell you that, the standard class is being used in "SE80" Tcode i.e. Workbench Navigator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ZClass which is a copy of standard class is used in my ZTcode only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there must be some relation of interface "IF_WB_PROGRAM" in Tcode "SE80" which is missing in my ZTcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 07:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349084#M1540381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T07:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349085#M1540382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your questions I'd like to know one thing: why are you copying and trying to change the standard class, what is your requirement? Based on your questions I think you don't have enough understanding of ABAP OO, and to do this copy you should have this understanding and do an analysis beforehand.&lt;/P&gt;&lt;P&gt;Maybe you're trying to achieve your requirement by copying when you could use an enhancement or something simpler...&lt;/P&gt;&lt;P&gt;Just an idea.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 02:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349085#M1540382</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2010-10-14T02:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349086#M1540383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to open the MIME content which i save in SE80 on my ZScreen just similar to the "PREVIEW" option that we have in SE80 for MIME Repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i have checked the code of SE80, its using the class "CL_WB_MIME_REPOSITORY" and the method "PREVIEW_MIME" to show the MIME object in the previewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the same logic of showing the MIME content in my ZScreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think we have any User Exit or anything else for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope my question is clear to you now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how can we achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 05:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349086#M1540383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T05:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349087#M1540384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a quick look at the method and it seems the core funcionality is in the SKWF_PHIO_LOAD_CONTENT function module...then I did a usage reference an it's used from lots of places, including the class CL_MIME_REPOSITORY_API which seems to be a good candidate for you to USE (not copy).&lt;/P&gt;&lt;P&gt;You should handle in your program your own instance of an HTML viewer (CL_GUI_HTML_VIEWER) and then use the above class to load the contents...&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 14:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349087#M1540384</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2010-10-15T14:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349088#M1540385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a new object of container as "MYCONTAINER" with object value = "&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing i noticed in this, the " CUR_EVENT" which is a public attribute comes as "INITIAL" and "PARENT" which is a public instance attribute comes as "INITIAL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i am trying to create an object of html viewer as "my_html_viewer" passing the below parameteres, it gives me an exception as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create object my_html_viewer&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     CLSID = SAP.HTMLControl.1&lt;/P&gt;&lt;P&gt;     PARENT = &lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;    Access via 'NULL' object reference not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;    Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The current ABAP program "CL_GUI_CFW====================CP" had to be&lt;/P&gt;&lt;P&gt;     terminated because it has&lt;/P&gt;&lt;P&gt;    come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    You attempted to use a 'NULL' object reference (points to 'nothing')&lt;/P&gt;&lt;P&gt;    access a component (variable: " ").&lt;/P&gt;&lt;P&gt;    An object reference must point to an object (an instance of a class)&lt;/P&gt;&lt;P&gt;    before it can be used to access components.&lt;/P&gt;&lt;P&gt;    Either the reference was never set or it was set to 'NULL' using the&lt;/P&gt;&lt;P&gt;    CLEAR statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trigger Location of Runtime Error&lt;/P&gt;&lt;P&gt;    Program                                 CL_GUI_CFW====================CP&lt;/P&gt;&lt;P&gt;    Include                                 CL_GUI_CFW====================CCIMP&lt;/P&gt;&lt;P&gt;    Row                                     393&lt;/P&gt;&lt;P&gt;    Module type                             (METHOD)&lt;/P&gt;&lt;P&gt;   Module Name                             LCL_GET_SHELLID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code Extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  363 ENDCLASS.&lt;/P&gt;&lt;P&gt;  364 CLASS LCL_DRAGDROPHELPER IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  365   METHOD GET_DROP_EVT_PARAM.&lt;/P&gt;&lt;P&gt;  366     STATICS : PARAMHELPER TYPE REF TO LCL_LOCAL_DDPARAMS.&lt;/P&gt;&lt;P&gt;  367&lt;/P&gt;&lt;P&gt;  368     CLEAR DRAGDROPPARAM.&lt;/P&gt;&lt;P&gt;  369     CREATE OBJECT PARAMHELPER.&lt;/P&gt;&lt;P&gt;  370     CALL METHOD PARAMHELPER-&amp;gt;GETPARAMS.&lt;/P&gt;&lt;P&gt;  371     IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;  372       RAISE ERROR_GET_OBJ.&lt;/P&gt;&lt;P&gt;  373     ENDIF.&lt;/P&gt;&lt;P&gt;  374     DRAGDROPPARAM = PARAMHELPER.&lt;/P&gt;&lt;P&gt;  375   ENDMETHOD.&lt;/P&gt;&lt;P&gt;  376&lt;/P&gt;&lt;P&gt;  377   METHOD CLEAR_DROP_EVT_PARAM.&lt;/P&gt;&lt;P&gt;  378     CLEAR DRAGDROPPARAM.&lt;/P&gt;&lt;P&gt;  379   ENDMETHOD.&lt;/P&gt;&lt;P&gt;  380&lt;/P&gt;&lt;P&gt;  381 ENDCLASS.&lt;/P&gt;&lt;P&gt;  382 class lcl_friend_of_gui_control implementation.&lt;/P&gt;&lt;P&gt;  383   method get_reg_events_internal.&lt;/P&gt;&lt;P&gt;  384     call method control-&amp;gt;get_registered_events_ex&lt;/P&gt;&lt;P&gt;  385                 importing eventtab = events&lt;/P&gt;&lt;P&gt;  386                 exceptions cntl_error = 1&lt;/P&gt;&lt;P&gt;  387                            others     = 2.&lt;/P&gt;&lt;P&gt;  388     if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  389       raise cntl_error.&lt;/P&gt;&lt;P&gt;  390     endif.&lt;/P&gt;&lt;P&gt;  391   endmethod.&lt;/P&gt;&lt;P&gt;  392   METHOD LCL_GET_SHELLID.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;     SHELLID = REF-&amp;gt;H_CONTROL-SHELLID.&lt;/P&gt;&lt;P&gt;  394   ENDMETHOD.&lt;/P&gt;&lt;P&gt;  395 endclass.&lt;/P&gt;&lt;P&gt;  396 class lcl_dynpro implementation.&lt;/P&gt;&lt;P&gt;  397&lt;/P&gt;&lt;P&gt;  398   method constructor.&lt;/P&gt;&lt;P&gt;  399     move: program      to me-&amp;gt;program,&lt;/P&gt;&lt;P&gt;  400           DYNNR        to me-&amp;gt;dynnr,&lt;/P&gt;&lt;P&gt;  401           TOP_PARENTID to me-&amp;gt;TOP_PARENT&lt;/P&gt;&lt;P&gt;  402           STACKLEVEL   to me-&amp;gt;stacklevel&lt;/P&gt;&lt;P&gt;  403   endmethod.&lt;/P&gt;&lt;P&gt;  404&lt;/P&gt;&lt;P&gt;  405   method get_total_extensions.&lt;/P&gt;&lt;P&gt;  406     x = total_extension-x.&lt;/P&gt;&lt;P&gt;  407     y = total_extension-y.&lt;/P&gt;&lt;P&gt;  408   endmethod.&lt;/P&gt;&lt;P&gt;  409&lt;/P&gt;&lt;P&gt;  410   method set_total_extensions.&lt;/P&gt;&lt;P&gt;  411     total_extension-x = x.&lt;/P&gt;&lt;P&gt;  412     total_extension-y = y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 10:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349088#M1540385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing Instance Attributes of a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349089#M1540386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved this problem at my end only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 13:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-instance-attributes-of-a-class/m-p/7349089#M1540386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T13:26:21Z</dc:date>
    </item>
  </channel>
</rss>

