Hi,
I created a BAPI Web Service for Flight Object, then create a added the BAPI_Transaction_Commit. Then i called the SaveReplica method of the flight object then it returns that the flight was successfully created... but executing the method GETDETAIL and using the values created from SaveReplica as parameter... seems like the record has not been committed to the db.
Here's the snippet :
//flightWebService is the proxy for the flight service
//bapiWebService is the proxy for bapi service
FlightInfo.BAPIPAREX[] extensionIn = new FlightInfo.BAPIPAREX[0]; FlightInfo.BAPISFLREP flightData = new FlightInfo.BAPISFLREP(); FlightInfo.BAPIRET2[] bapiReturn = new FlightInfo.BAPIRET2[0];
// fill flightData sturcture here
flightWebService.BAPI_FLIGHT_SAVEREPLICA(
ref extensionIn,
flightData,
ref bapiReturn,
"");
BAPITransaction.BAPIRET2 ret =
bapiWebService.BAPI_TRANSACTION_COMMIT("");
Thanks,
Fredie Savellano