Skip to content

Quantity element DISTANCE contains unsupported datatype INT4. #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
saurabhakumbhare opened this issue Jan 2, 2024 · 1 comment
Open

Comments

@saurabhakumbhare
Copy link

While creating Service Binding, we are getting an error below when using the database table /dmo/connection.

When I define a view entity and add the Semantics line, it pops up the error in the header when creating a service binding.
When I delete the semantics line, everything seems to work fine. Is there an issue with the Data Element "Distance" ?

define view entity ZI_Connection_Techn
as select from /dmo/connection as Connection
{
key carrier_id as CarrierId,
key connection_id as ConnectionId,
airport_from_id as AirportFromId,
airport_to_id as AirportToId,
departure_time as DepartureTime,
arrival_time as ArrivalTime,
@Semantics.quantity.unitOfMeasure: 'DistanceUnit'
distance as Distance,
distance_unit as DistanceUnit
}

I am using the branch [ABAP-platform-2020]

Thanks
Saurabh

@GeorgReichert1
Copy link
Contributor

Hello Saurabh,

thanks for reporting. This is a known issue we plan to fix.
A temporary workaround is to either remove the annotation @Semantics.quantity.unitOfMeasure: 'DistanceUnit' or to change the data type in the domain /dmo/distance from int4 to dec(12,2). Please keep in mind that this could lead to a database adjustment.

Best regards
Georg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants