on 04-23-2006 11:11 PM
Hi,
I am doing the 5th Web dynpro, Flight Booking Tutorial. for the set methods I am getting an error which states,
"The Method setReserve_Only(boolean) is undefined for the type IPrivateFlightBookingView.IBapi_FlBooking_Create_from_Data_Input".
Could you please tell me how to fix this?.
Thanks,
Sunita.
hi
Check if any boolean variable called
Reserve_Only is there if not declare it, and right click your mouse on edit viewsourcegenerate getters and setters-- click on that select check box for Reserve_Only click ok.
Regards
Abhijith YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunita,
Check the data type of attribute <b>Reserve_Only</b> whether it is Boolean or not .
wdContext.currentBapi_Flbooking_Createfromdata_InputElement()
.setReserve_Only(true);
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c">Handling Transactions with BAPIs in Web Dynpro</a>
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunita,
Ca you copy the line where you are trying to use this method setReserve_Only. It will only accept boolean argument.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct the method call in the
method public void onActionBook to
wdContext.currentBapi_Flbooking_Createfromdata_InputElement()
.modelObject()
.setReserve_Only(false);
and
method public void onActionReserve to
wdContext.currentBapi_Flbooking_Createfromdata_InputElement()
.modelObject()
.setReserve_Only(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just check if you have done this.
//Create a new element in node Bapi_Flbooking_Createfromdata_Input
Bapi_Flbooking_Createfromdata_Input input =
new Bapi_Flbooking_Createfromdata_Input();
wdContext.nodeBapi_Flbooking_Createfromdata_Input()
.bind(input);
Hope this helps....revert back for any further help.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.