Skip to Content
author's profile photo Former Member
Former Member

Accessing impl class attribute

Hi Experts,

if i declare one variable in controller class of a view and how can access the variable in contex naode .

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 22, 2011 at 08:37 AM

    You can declare a static variable in the controller and then you can do *_impl=>gv_var in the context node.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi srinivas.yangal,

      You can access the View implementation Class Attributes in Context.

      1] Go to Context Node Implementation Class

      2] Create a attribute GV_VIEW_CONTROLLER in Impl class of Context Node.


      3] Go to INIT method of Context Node.

      4] Assign instance LV_VIEW_CONTROLLER to GV_VIEW_CONTROLLER of Context Node Impl. Class.


      Then you can access your Instance attributes defined in View Impl. class inside the context node through GV_VIEW_CONTROLLER attribute as follows.


      Reward points if useful.

      Kind Regards,


      Edited by: Dhananjay SAP CRM on Nov 24, 2011 12:56 PM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.