02-02-2017 4:09 PM - edited 02-04-2024 6:21 AM
Dear colleagues,
I have created a Odata Service in transaction SEGW on the basis of an RFC function module. I have created the Data Model and the Mapping to the RFC function module within the Service Implementation.
My problem now: I have always to define my import parameters as key because only in this case it is possible to do the mapping for all import parameters for the function module within the Service Implementation.
Now I tried to set one parameter as "Nullable" with the hope that this import parameter is handled as optional parameter during the test call within the Gateway Client. But this is rejected by the Gateway Service Builder. Not possible because its a key
Does anybody have an idea how to use optional import parameters during Service Creation?
Thanks a lot in advance!
BR Matthias
I would use a DDIC structure to define the GW entity (standard or custom depending on the fields required), and then call the bapi(s) in the respective methods of the DPC_EXT class.
As Krishna Kishor Kammaje says, it gives you a lot more flexibility.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First of all my suggestion is to use a code based implementation. (not based on mapping RFC and auto generating).
That will give you lots of flexibility while handling practical scenarios.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.