cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ABAP CLOUD TRIAL

11-05-2022 12:50 AM
ramaanne Participant
2969 views 6 comments Go to solution
SAP Managed Tags
Subscribe

Following the opensap course - Developing and Extending SAP Fiori Elements Apps

After using the provided - /DMO/CL_FE_TRAVEL_GENERATOR and generating the RAP artifacts in eclipse ABAP cloud project and step two generating ODATA V4/V2 services - step 3 Click preview for Travel v4 odata service ,Fiori app[ preview supposed to load but actually error appears on the browser -

Application could not be started due to technical issues.Prop. 'DISTANCE' has unit amount conver. and EDM type 'Int32' without decimals


the way I could by pass the error is to comment out -

//@Semantics.quantity.unitOfMeasure: 'DistanceUnit' in the view - zi_fe_conn_screenshot-from-2022-11-05-10-46-16.png AND then activate it hope someone in the opensap team can correct this error

thanks

rama anne

Accepted Solutions (1)

Accepted Solutions (1)

ramaanne
Participant

I found a temporary work around the - opensap course - Developing and Extending SAP Fiori Elements Apps

provides a program generator that generates all CDS /ABAP artifacts one of the CDS views generated is

zi_fe_conn_##### (where #### IS genated by the tool

/DMO/CL_FE_TRAVEL_GENERATOR depending who is using the tool as abap workspace is shared in abap cloud trail environment)

so open the cds view zi_fe_conn_##### in eclipse you will find a annotation for the selection fld see below just comment it out :

//@Semantics.quantity.unitOfMeasure: 'DistanceUnit'

Connection.distance as Distance

Then activate the cds view zi_fe_conn_##### and all other dependent cds views ,then regenerate the SAP fiori elements page ,the error displayed in browser goes away and one can access the functionality

The above is just a temporary workaround ,it will be nice if some one from opensap or sap corrects the root error IN abap cds GENERATION tool -/DMO/CL_FE_TRAVEL_GENERATOR

thanks

rama anne

former_member297605
Active Participant
0 Likes

Brilliant thanks Rama, that fixed my issue. Thanks for the work around.

zoel37
Newcomer
0 Likes

Thank you really much!!

Answers (1)

Answers (1)

UtkanGiray
Explorer
0 Likes

I changed the data element for Distance in table zfe_aconn_#### from int to dec. That also fixed that issue.

First you need to create domain and data element manually and then you need give that data element to Distance property in zfe_aconn_#### table.

Commenting //@Semantics.quantity.unitOfMeasure: 'DistanceUnit' in cds also works fine.