cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a method in Interface Controller

Former Member
0 Kudos

Hi Guys,

I am working with webdynpro ABAP sample application "Component usage" . There i got a issue like i am not able to create a method in Interface controller. There i am not able to edit anything. Can anybody please let me know how to do that.

Thanks In Advance

Regards

Ravikumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi,

Check This

If one Web Dynpro component (parent component) needs access to another Web

Dynpro component (child component) the parent component can declare the use

of the child component. A specific component usage instance is then created and

the parent component accesses the functionality of the child component via its

component interface controller.

The only parts of a Web Dynpro component that are visible to the user, are the

interface controller and the interface view(s).

All Web Dynpro components have only one interface controller. Via the

interface controller, data, methods, and event handlers can be exposed to

other components.

Interface views represent the visual interface of a Web Dynpro component.

There is a one-to-one relationship between a Window and an interface view.

Each time a window is defined, a related interface view is automatically

generated, which makes the window accessible from outside the component.

The interface view only exposes those inbound and outbound plugs to the

component user that have the interface property checked. Methods and

context data of the window are not accessible via the related interface view.

If the component has no views, there is no need to have Windows. In this

case, the component will not implement an interface view. Such components

having no visual interface are known as faceless components.

Regards

Sarath

anand_nidamanuru
Active Participant
0 Kudos

Hi Ravi,

Go to the used component and not its interface controller.

In the used component, goto component controller methods.

All the methods here with "interface" property checked will be available in the interface controller.

If you want to edit/create methods in the interface controller, you can only do it by editing/creating them in the actual used components, comp. controller.

Thanks,

Anand

Former Member
0 Kudos

hi ravikumar...

with respect to the sample application component usage, you have to create the method show_customer in your view and not in the interface controller.

moreover you cannot create methods in hte interface controllers directly.

--regards,