cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Build Apps navigation with date as key

Former Member
0 Likes
963

Hello all!

I'm developing a Build Apps application with an ABAP environment backend. The ABAP environment is on SAP BTP, and serves an endpoint with the "equipment" API implementation. I've imported this API via destinations and created an "Data Integration":
Data Integration.png

This specific API has a date "ValidityEndDate" key property. In the app I'm developing there's a list of equipments and, if you select one, you should navigate to an object page. 

list page.png


object page.png

The issue I'm having is that the request has the date malformed, causing an URI invalid error. I've tried to change the internal structures to different text, date or date/time formats, with no avail. 
invalid URI ed.pngcorrect URI ed.png

Do anyone have an idea on what I could do different here? Is there any transformation I could do to this element?

Thank you very much for your reply!

BS,
Rafael

Accepted Solutions (1)

Accepted Solutions (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate

Seems you have to convert the date to the standard format, from the Unix (OData) date.

FORMAT_DATETIME_LOCAL(DATETIME(NUMBER(SUBSTRING(repeated.current.CreationDate, 6,19))), "DD.MM.YYYY")  
Former Member
0 Likes

Hello!

I had to adjust the formula a little bit, but that works!

SUBSTRING(DATETIME(NUMBER(SUBSTRING(repeated.current.validity_end_date, 6,19))), 0,19)

Thank you @Dan_Wroblewski !

BS,
Rafael

Answers (0)