cancel
Showing results for 
Search instead for 
Did you mean: 

Access to context of COMPONENTCONTROLLER (ABAP)

Former Member
0 Kudos

Hello,

I need to access componentController from one of the view that I have.

How can I do it?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

WD_COMP_CONTROLLER

is declared automatically

and is available in all methods.

so WD_COMP_CONTROLLER->method is possible.

Use code wizard to add. Simple ...

If you want access to the context of controller,

the either create a method in the controller that

reads the controller context and call that method as above

or better, just map the context in view to the component

controller so that data is automatically copied to local view context.

Regards

Phil

Former Member
0 Kudos

Thank you!

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi,

Check http://help.sap.com/saphelp_nw04s/helpdata/en/b8/f56241ce5dfa6de10000000a155106/frameset.htm section <b>Method Call of the Component Controller in the Event Handler of the View-Controller</b>

Best regards, Maksim Rashchynski.