Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

odata approach for simple business case

$
0
0

Table with measurements

 

  1. 1) Client reads dataset  “ValueToMeasureSet” :

 

ID

ValueToMeasure

MeasuredValue

AreValuesInRangeStatus

Id1

ValueToMeasure1

 

 

Id2

ValueToMeasure2

 

 

 

 

  1. 2) Client updates data set to serwer:

 

 

ID

ValueToMeasure

MeasuredValue

AreValuesInRangeStatus

Id1

ValueToMeasure1

1300

 

Id2

ValueToMeasure2

1800

 

 

 

 

  1. 3) Client wants to know AreValuesInRangeStatus, client reads dataset one more time

 

 

ID

ValueToMeasure

MeasuredValue

AreValuesInRangeStatus

Id1

ValueToMeasure1

1300

Ok

Id2

ValueToMeasure2

1800

Not ok

 

 

 

Am I right that there should be Odata CRUDQ operations like below?:

  1. 1) Query
  2. 2) Update
  3. 3) Query

 

 

Please comment this approach with pointing good practices. Maybe i should change approach ?

I thought about Function import operation (it could be one call instead of 2) and 3)), but Function import support only simple type as input.



BR

Lucas


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>