Trip creation Validation
We have a requirement to validate Trips before creating and return the error messages using an RFC. We are using the FM ' HRTRV_IF_MODIFY_TRIP' and returns the RETURN parameter of this FM. Here trip is getting created. I have tried ROLLBACK after creating the trip. But no luck.
We also tried to delete the trip using 'BAPI_TRIP_DELETE' after creating trip. Trip is getting deleted and we are able to get the error messages. But the issue in this case is that the trip number is increasing unnecessarily.
Any other solution is there to validate the trips and get the error messages ?
Any help is appreciated.
Solved by passing CHCK as FCODE in FM HRTRV_IF_MODIFY_TRIP.