cancel
Showing results for 
Search instead for 
Did you mean: 

Trip creation Validation

former_member436332
Participant
0 Kudos

Hi,

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.


Regards,

Veena

Accepted Solutions (1)

Accepted Solutions (1)

former_member436332
Participant
0 Kudos

Solved by passing CHCK as FCODE in FM HRTRV_IF_MODIFY_TRIP.

Answers (2)

Answers (2)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Veena,

please go a lot more into detail:

  • what system are you on?
  • what UI are you using (as Siegfried already asked)?
  • what functional need do you have for your requirement, i.e. why are you using these FMs? Please describe your business process in detail.
  • what do you mean by "validate trip", validate against what?

Otherwise it's like pulling teeth to understand what you are trying to achieve.

Cheers, Lukas

Former Member
0 Kudos

Hi Veena,

have you built a custom fronted or which frontend are you using?

Best regards, Sigi