Skip to Content
0
Former Member
Jul 14, 2008 at 08:56 AM

Help regarding if_component controller interface ...

42 Views

Hi All,

I was trying to implement supply function for practice. I copied this code below from the tutorial and this doesnt work.

I have made a VBAK and VBAP table display, its not a sflight display. Please tell me how do I modify this code so that it works for my scenario. What is happening is it says Object IF_COMPONENTCONTROLLER doesnot exist and I dont know what is Elements_Bookings. Can some one explain where are the classes and object given belowin the code are coming from. I am lost ......

tried double kliking on if_componentcontroller but its not happening.

method GET_SUPPLY .

data: Itab_Bookings type If_COMPONENTCONTROLLER=>Elements_Bookings,

I found out another interface whos name is IG_COMPONENTCONTROLLER. But this IG_...... interface do not have a method name elements_bookings.

This is wrf to my question posted above about trying to implement supply function with the help of tutorial no. 4 available on the internet. Please help.

method GET_BOOKINGS . data: Itab_Bookings type IF_COMPONENTCONTROLLER=>Elements_Bookings, Stru_Bookings like line of Itab_Bookings, Stru_FlightList type if_componentcontroller=>Element_FLIGHT_LIST. parent_element->get_static_attributes( importing static_attributes = Stru_FlightList ). Itab_bookings = CL_WDABAP_FLIGHT_MODEL=>GET_BOOKINGS( CARRID = Stru_FlightList-airlineid CONNID = Stru_FlightList-connectid FLDATE = Stru_FlightList-flightdate ). node->bind_table( Itab_bookings ). endmethod.

Thaks,

Anu.