cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume REST service with ABAP and send it as odata

naotoxxx
Participant
0 Kudos

Hello i was triying to use an api in my fiori app but is not possible but i read that it's possible if i consume that api with abap and send that result to my fiori app but i don't know where can i start or how. My server is onpremise that's why i'm not able to use SCP :C

Accepted Solutions (0)

Answers (1)

Answers (1)

Domi
Contributor
0 Kudos

Hi

1) Design your data model - tabletypes, structures, fields - for all needed collections and resources

2) create an API class to access all the relevant collections/resources with the desired methods. Also authentication, checks and mapping (OData) data model <> external API should be done here

3) generate the Gateway services based on you data model

4) Implement all needed methods in the DPC_EXT class: e.g. ..._GET_ENTITYSET, ..._CREATE_ENTITY, ..._DELETE_ENTITY, ..._UPDATE_ENTITY and call the corresponding API class methods


regards

Domi