<?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: Get class/variable from ABAP Callstack. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720245#M1298005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2009 08:06:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-31T08:06:33Z</dc:date>
    <item>
      <title>Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720235#M1297995</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 need some information in one of my methods.&lt;/P&gt;&lt;P&gt;The info residing in higher level method in the ABAP Callstack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My callstack looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;___&lt;STRONG&gt;Event&lt;/STRONG&gt;_______________________________&lt;STRONG&gt;Program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;METHOD___IF_RSPLS_CR_METHODS~DERIVE_____ZFIB0001_IP_CHAR_REL==========CP &amp;lt;- I'm here.&lt;/P&gt;&lt;P&gt;METHOD___IF_RSPLS_CR_MAPPER~DERIVEM_____CL_RSPLS_CR_MAPPER============CP&lt;/P&gt;&lt;P&gt;METHOD___IF_RSPLS_CR_CONTROLLER~DERIVE__CL_RSPLS_CR_CONTROLLER========CP&lt;/P&gt;&lt;P&gt;METHOD___CR_DERIVE_________________________CL_RSPLS_DELTA_BUFFER_B=======CP&lt;/P&gt;&lt;P&gt;METHOD___WRITE______________________________CL_RSPLS_DELTA_BUFFER_B=======CP&lt;/P&gt;&lt;P&gt;METHOD___WRITE______________________________CL_RSPLS_DELTA_BUFFER_AM======CP&lt;/P&gt;&lt;P&gt;METHOD___WRITE_EXT__________________________CL_RSPLS_DELTA_BUFFER=========CP&lt;/P&gt;&lt;P&gt;METHOD___STORE_DELTA_IN_BUFFER____________CL_RSPLFR_CONTROLLER==========CP&lt;/P&gt;&lt;P&gt;METHOD___EXECUTE_SERVICE___________________CL_RSPLFR_CONTROLLER==========CP&lt;/P&gt;&lt;P&gt;METHOD___EXECUTE____________________________CL_RSPLFR_WEB_START_SERVICE===CP&lt;/P&gt;&lt;P&gt;FUNCTION_BICS_CONS_EXECUTE_PLANNING_FUN__SAPLRSBOLAP_BICS_CONSUMER&lt;/P&gt;&lt;P&gt;FORM_____BICS_CONS_EXECUTE_PLANNING_FUN__SAPLRSBOLAP_BICS_CONSUMER&lt;/P&gt;&lt;P&gt;FORM_____REMOTE_FUNCTION_CALL_____________SAPMSSY1&lt;/P&gt;&lt;P&gt;MODULE___%_RFC_START_______________________SAPMSSY1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to access line 4 from the bottom (function in SAPLRSBOLAP_BICS_CONSUMER).&lt;/P&gt;&lt;P&gt;From here i need to access &lt;/P&gt;&lt;P&gt;L_R_DATA_PROVIDER which is a class type  CL_RSPLFR_WEB_START_SERVICE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use the method in &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="991834"&gt;&lt;/A&gt;, but so far it has been unsuccesful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to gain access to a class higher in the hierarchy ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br Rasmus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 11:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720235#M1297995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720236#M1297996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get an access of the object, you can try this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: ld_class  TYPE string,
        ld_method TYPE string.
  DATA: lo_obj    TYPE REF TO object.
  FIELD-SYMBOLS:
   &amp;lt;lo_provider&amp;gt;   TYPE ANY.

  ld_class = '(SAPLRSBOLAP_BICS_CONSUMER)L_R_DATA_PROVIDER'.
  ASSIGN (ld_class) TO &amp;lt;lo_provider&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you want to execute the method, you can try this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  lo_obj ?= &amp;lt;lo_provider&amp;gt;.
  ld_method = 'LINE_GET'.
  CALL METHOD lo_obj-&amp;gt;(ld_method)
    ....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an access of the public attributes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 ld_class = '(SAPLRSBOLAP_BICS_CONSUMER)L_R_DATA_PROVIDER-&amp;gt;attr'.  "put actual attribute name
  ASSIGN (ld_class) TO &amp;lt;lo_attr&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&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>Thu, 04 Jun 2009 13:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720236#M1297996</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-06-04T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720237#M1297997</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 your post.&lt;/P&gt;&lt;P&gt;I have tried you suggestion, but the &amp;lt;lo_provider&amp;gt; does not get assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    lookup_string = '(SAPLRSBOLAP_BICS_CONSUMER)L_R_DATA_PROVIDER'.
    ASSIGN (lookup_string) to &amp;lt;lookup&amp;gt;.
    IF &amp;lt;lookup&amp;gt; is ASSIGNED.
    lo_obj ?= &amp;lt;lookup&amp;gt;.
    endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Rasmus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 14:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720237#M1297997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720238#M1297998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rasmus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the coding of fm BICS_CONS_EXECUTE_PLANNING_FUN I would say you cannot access L_R_DATA_PROVIDER because it is a local variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION bics_cons_execute_planning_fun.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(I_FUNCTION_HANDLE) TYPE  RSBOLAP_HANDLE
*"  EXPORTING
*"     VALUE(E_MAX_MESSAGE_TYPE) TYPE  SYMSGTY
*"     VALUE(E_EXECUTED) TYPE  RS_BOOL
*"     VALUE(E_DATA_AREA_CONTAINS_DATA) TYPE  RS_BOOL
*"  TABLES
*"      E_T_MESSAGE STRUCTURE  BICS_PROV_MESSAGE OPTIONAL
*"      I_T_STATISTIC_INFO STRUCTURE  RSSTA_S_EVENTINPUT OPTIONAL
*"      E_T_OUT_OF_SYNC_DP STRUCTURE  RSBOLAP_S_OBJECT_NAME OPTIONAL
*"  EXCEPTIONS
*"      INVALID_FUNCTION_HANDLE
*"      VARIABLE_INPUT_NECESSARY
*"----------------------------------------------------------------------

* Begin of the rfc function module
  rfc_function_module_start 'BICS_CONS_EXECUTE_PLANNING_FUN' i_function_handle.

  DATA:
    l_r_data_provider         TYPE REF TO if_rsbolap_data_provider,  " &amp;lt;&amp;lt;&amp;lt; local variable
    l_r_function              TYPE REF TO cl_rsplfr_web_start_service,
    l_invalid_function_handle TYPE rs_bool,
    l_s_mesg                  TYPE rrms_s_mesg,
    l_t_mesg                  TYPE rrms_t_mesg,
    l_t_names                 TYPE RSBOLAP_T_OBJECT_NAME,
    l_s_name                  type rsbolap_s_object_name.

* Get the data provider
  l_r_data_provider = 
    cl_rsbolap_application=&amp;gt;get_data_provider_static( i_handle = i_function_handle ).
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable would be accessible if it were global, i.e. defined in the TOP-include.&lt;/P&gt;&lt;P&gt;The main program SAPLRSBOLAP_BICS_CONSUMER does not know anything about local variables within the function modules.&lt;/P&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, 05 Jun 2009 05:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720238#M1297998</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-06-05T05:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720239#M1297999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course, you are quite right.&lt;/P&gt;&lt;P&gt;How about the import parameters should I be able to access them.&lt;/P&gt;&lt;P&gt;E.g. I_FUNCTION_HANDLE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 07:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720239#M1297999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T07:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720240#M1298000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can get an access of the importing parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ld_class = '(SAPLRSBOLAP_BICS_CONSUMER)I_FUNCTION_HANDLE'.
  ASSIGN (ld_class) TO &amp;lt;lo_provider&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't realize that L_R_PROVIDER is local variable and hence we can't access it. I apologize for that.&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, 08 Jun 2009 13:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720240#M1298000</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-06-08T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720241#M1298001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rasmus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most likely the answer is again: NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why? &lt;/P&gt;&lt;P&gt;Looking at the "&lt;EM&gt;Attributes&lt;/EM&gt;" tabstrip of fm BICS_CONS_EXECUTE_PLANNING_FUN you can see that the flag "&lt;STRONG&gt;Global&lt;/STRONG&gt;" is NOT set. Thus, the interface parameters are NOT globally visible in the function group.&lt;/P&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>Mon, 08 Jun 2009 13:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720241#M1298001</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-06-08T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720242#M1298002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working with the import parameter aswell.&lt;/P&gt;&lt;P&gt;- Rasmus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 13:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720242#M1298002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T13:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720243#M1298003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allright, who said it was going to be easy. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about line no. 5.&lt;/P&gt;&lt;P&gt;this also holds the information that is need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now it is a method call in a class.&lt;/P&gt;&lt;P&gt;Is it possible to get this class ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_RSPLFR_WEB_START_SERVICE===CP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how should it be written?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 13:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720243#M1298003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720244#M1298004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The class has a public attribute called n_handle which should reflect the I_FUNCTION_HANDLE from earlier.&lt;/P&gt;&lt;P&gt;I have tried 2 get it but unsuccesfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what i have tried.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    lookup_string = '(CL_RSPLFR_WEB_START_SERVICE===CP)N_HANDLE'.
    ASSIGN (lookup_string) to &amp;lt;lookup&amp;gt;.
    lookup_string = '(CL_RSPLFR_WEB_START_SERVICE)N_HANDLE'.
    ASSIGN (lookup_string) to &amp;lt;lookup&amp;gt;.
    lookup_string = '(CL_RSPLFR_WEB_START_SERVICE)IF_RSBOLAP_DATA_PROVIDER~N_HANDLE'.
    ASSIGN (lookup_string) to &amp;lt;lookup&amp;gt;.
    lookup_string = '(CL_RSPLFR_WEB_START_SERVICE===CP)IF_RSBOLAP_DATA_PROVIDER~N_HANDLE'.
    ASSIGN (lookup_string) to &amp;lt;lookup&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the time &amp;lt;lookup&amp;gt; does not get assigned. Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 10:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720244#M1298004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T10:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720245#M1298005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 08:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720245#M1298005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T08:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720246#M1298006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still looking for a solution to this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720246#M1298006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720247#M1298007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, first posted in June.  I admire your persistence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I've missed something, this seems very straightforward.  If n_handle is a public static attribute, you can get it directly, without needing the assign, or accessing the call stack.: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_handle TYPE RSBOLAP_HANDLE.

DATA: l_r_data_provider TYPE REF TO if_rsbolap_data_provider

l_handle = CL_RSPLFR_WEB_START_SERVICE=&amp;gt;N_HANDLE. " you don't need the interface qualifier as this attribute is aliased
l_r_data_provider = cl_rsbolap_application=&amp;gt;get_data_provider_static( i_handle = l_handle ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 11:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720247#M1298007</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-09-14T11:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720248#M1298008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attribute is not a static attribute but an instance variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br Rasmus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 12:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720248#M1298008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get class/variable from ABAP Callstack.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720249#M1298009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rasmus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you already considered implementing the implicit enhancement point at the beginning of function module BICS_CONS_EXECUTE_PLANNING_FUN? You could write the value of I_FUNCTION_HANDLE to memory and access this value later in your code. If you have the handle, you can call the static method GET_DATA_PROVIDER_STATIC of class CL_RSBOLAP_APPLICATION to receive the desired object instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 15:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-class-variable-from-abap-callstack/m-p/5720249#M1298009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T15:14:58Z</dc:date>
    </item>
  </channel>
</rss>

