3 weeks ago - last edited 3 weeks ago
Hello experts,
We have a requirement for a non-SAP cloud system to POST a simple JSON paylod to SAP S/4 and the schema is something similar to
{
"event": "initiated",
"date": "2021-10-12T19:26:01Z",
"data": {
"id": "MMM12345678",
"amount": "100",
"currency": "GBP",
"payment_method": {
"type": "card"
},
"fields": {
"reference": "REF-1234",
"id": "123456789"
},
"payer": {
"first_name": "TEST",
"last_name": "TESTL",
"email": "Test.Test@Test.com"
}
}
}
No GET needed. What is the best way to handle this? REST handler class or an ODATA service using SEGW or ODATA service using RAP. If RAP is the reommended way, how to define the nested json structure as custom entity for the above payload please?
Thank you.
Sathya
Request clarification before answering.
root:-
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Event Root'
@ObjectModel.compositionRoot: true
define view entity ZI_Event
as select from zevent
{
key id as EventId,
event,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
_Payer
}
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.