on 02-17-2012 10:40 AM
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.
Use CL_ABAPWD_FLIGHT_MODEL as class name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for all your answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use this class instead of CL_ABAPWD_FLIGHT_MODEL instead of CL_WDABAP_FLIGHT_MODEL, it will work.
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.