cancel
Showing results for 
Search instead for 
Did you mean: 

IF_COMPONENTCONTROLLER vs IG_COMPONENTCONTROLLER

Former Member
0 Kudos

hi friends..

I am new to WDA,

i have some basic doubts.

what is IF_COMPONENTCONTROLLER ? what is the use of this interface in WDA ?

what is IG_COMPONENTCONTROLLER ? what is the use of this interface in WDA ?

what is the need of IG_COMPONENTCONTROLLER ?

what is the difference between IF_COMPONENTCONTROLLER and IG_COMPONENTCONTROLLER ?

kindly give me some inputs

Regards

deva

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Deva,

IF_COMPONENTCONTROLLER is an interface. When we need to refer to component controller, we need to create a variable which should be of IF_COMPONENTCONTROLLER type.

IG_COMPONENTCONTROLLER is also an interface. When we access all publicly accessible methods, variables declared in the component controller , we have attribute WD_COMP_CONTROLLER ( contained in view controller ) which is a reference variable of the type IG_COMPONENTCONTROLLER.

I hope it helps.

Regards

Arjun

Answers (2)

Answers (2)

pranav_nagpal2
Contributor
0 Kudos

Hi Deva,

1. IG_COMPONENTCONTROLLER

if you want to use used component in your view you have to declare the usage of that component. your view controller already contains the attribute WD_COMP_CONTROLLER, which is a

reference variable of the type IG_COMPONENTCONTROLLER. In each view controller, you

can use the attribute WD_COMP_CONTROLLER to access all publicly accessible methods of

the component-global generated interface of the corresponding component controller.

2. IF_COMPONENTCONTROLLER

each component has a local interface, the controller attribute WD_THIS is a reference to this local interface.Depending on the controller, a reference variable can be of IF_COMPONENTCONTROLLER type. now this type of refrence variable will allow you to use methods and attribute of local component controller.

regards

Pranav

Former Member
0 Kudos

There is info on various components controller here.

http://help.sap.com/saphelp_nw04s/helpdata/en/fc/501b42b5815133e10000000a155106/frameset.htm.

I think this will help you.

Best regards,

Rohit