cancel
Showing results for 
Search instead for 
Did you mean: 

passing the component usage

former_member474221
Participant
0 Kudos

Hi

data lr_interfacecontroller TYPE REF TO ZIWCI_INTF. .

  • pass key fields of selected flight to used component instance

lr_interfacecontroller = wd_this->wd_cpifc_details_comp( ).

  • details_comp is my comp usage and ZINTF my interface

however i get a syntax error "structure of lr_intrfacecontroller is incompatible "

Accepted Solutions (0)

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

You need to add the interface controller of the details comp in the used controllers of the view or component controller

wherever you are writing the code.

so if you are wirting it in view controller than go to the properties tab of the view and click on the create new button in the used

controllers list and then add the interface controller of the DETAILS_COMP.

thanks

sarbjeet

former_member474221
Participant
0 Kudos

HI,

I have already done this. Also i changed the like this.

lr_interfacecontroller TYPE REF TO ZIWCI_COMP_1.

lr_interfacecontroller = wd_this->wd_cpifc_details_comp( ).

LR_INTERFACECONTROLLER->display_details(

is_flight = ls_flights ).

now problem is LR_INTERFACECONTROLLER doesnot have a method called display_details but only method wd_get_api

how do i call method display_details from wd_get_api

Former Member
0 Kudos

see my reply here for your other post.

[|]

gill367
Active Contributor
0 Kudos

Display_details should be an interface method.

check whether it is checked as an interface method.

thanks

sarbjeet