cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR: Type "CL_WDABAP_FLIGHT_MODEL=>GET_BOOKINGS(" is unknown or not found

Former Member
0 Kudos

Hi ,

I am getting an error in the following coding saying that

Type "CL_WDABAP_FLIGHT_MODEL=>GET_BOOKINGS(" is unknown or not found

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.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Use CL_ABAPWD_FLIGHT_MODEL as class name

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks for all your answers

Former Member
0 Kudos

Hi,

Use this class instead of CL_ABAPWD_FLIGHT_MODEL instead of CL_WDABAP_FLIGHT_MODEL, it will work.

Regards

Suraj

Former Member
0 Kudos

Hi,

If you are not using the NW 2004s ABAP sneak preview edition, you might get the following error on NW2004s Systems.

"The type CL_WDABAP_FLIGHT_MODEL=>get_bookings is unknown or not found".

Class WDABAP_FLIGHT_MODEL is only provided in our NW 2004s ABAP sneak preview systems.

Please do the following if you encounter the error above.

u2022 Simply create a ZCL_WDABAP_FLIGHT_MODEL class in your get_bookings method.

Its purpose is only to select from the SBOOK table.

select * from sbook into table bookings where

carrid = carrid

connid= connid

fldate = fldate.

->>bookings is the return parameter of type TY_BOOKINGS

Other way is you can also use "CL_ABAPWD_FLIGHT_MODEL" this class in place of "CL_WDABAP_FLIGHT_MODEL"