on 2020 Dec 14 8:49 AM
Why we don’t have Put operation in Function import?
PUT / MERGE is methods that controlled by GateWay automatically. In case additional data will needed the GateWay will supply them by calling additional abap-method of the entity.
In case of Function Import we could have not any entity - just action with some data (parameters). From OData-protocol point of view it is service operation.
So it is hardly (I think impossible and not reasonable) to provide Idempotence for PUT-method by default. The difference between PUT and POST is that PUT is idempotent.
I think it is main reason.
So if you need idempotence for your entity by default - you should generate Entity or implement correspondent logic in execute_action. If you need fast POST - you can use function import which is really time-saving 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We go for Function Import when the operations or business scenario are not achievable by CRUD operations. For Example, Say we have same field in 2 tables(Different Entitysets) which doesn't have any relationships, If we want to fetch the data based on one table to another then we will write this code in Function Import . Remember Function Imports are independent of Entitysets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We go for Function Import when the operations or business scenario are not achievable by CRUD operations. For Example, Say we have same field in 2 tables(Different Entitysets) which doesn't have any relationships, If we want to fetch the data based on one table to another then we will write this code in Function Import . Remember Function Imports are independent of Entitysets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We go for Function Import when the operations or business scenario are not achievable by CRUD operations. For Example, Say we have same field in 2 tables(Different Entitysets) which doesn't have any relationships, If we want to fetch the data based on one table to another then we will write this code in Function Import . Remember Function Imports are independent of Entitysets.
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 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.