cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic check-in and check-out dates

MicuPrinZZ
Newcomer
0 Kudos
121

Hi, I have an application with Itineraries and Booking, where booking has 2 fields "checkin" and "checkout". Right now, I can choose the check-ins and check-outs of both Bookings and Itineraries, but i want Itineraries to get it automatically by getting the smallest check-in date and biggest check-out date from it's bookings. Itinerary is the root and Booking is the child. Any on how I can do that?

View Entire Topic
Nathanael
Explorer
0 Kudos

Hi,

I assume that you are implementing a RAP Application. The desired behaviour can be archieved using a determination. A determination can be defined in the Behaviour Definition and implemented in the corresponding Behaviour Pool. 

More infos about determinations:
https://software-heroes.com/en/blog/abap-rap-determination 
https://community.sap.com/t5/technology-blogs-by-sap/determinations-in-abap-restful-programming-mode... 
And the flight demo app (e.g. /DMO/I_Travel_M) has the example of a determination to calculate the total price.

Greetings