on 09-30-2014 12:42 PM
Lets say we want to call from browser (UI5 app) FM which needs input like this
val1
val2
tab1
tab2
Am i right that in this case we have to make
1) entity1 for val1 and val2
2) entitySet for tab1
3) entitySet for tab2
4) associations
5) CREATE_DEEP_ENTITY method
its preatty common case but effort is big, that's why i am asking to be sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Lukasz,
You need to understand that FMs were never designed to be consumed for creating OData services. OData services and FMs have their own use cases. The tool provided in SEGW to create an entity/service out of an FM is not supposed to suit every available FM.
Outside-In data modeling approach is the key here.
It means that you would look at the UI which will consume your OData service and create your OData model in SEGW as per that (yes, manually creating entities, properties and other artifacts). Generate runtime artifacts next Then you go to the generated *DPC_EXT class, identify the right method and write your own code to call the FM and populate the return table.
If it is a create_deep or a flat create should be decided from the UI screen and not from the FM's interface.
Thanks
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.