Symptom
You created Custom Action in Function Import. While testing this Custom Odata Service you cannot find Odata Function Import.
Reproducing the Issue
- Go to Administrator workcenter.
- Open the Odata Service Explorer.
- Open the Custom Odata Service.
- Here check required Odata Service and check the function import tab.
- Select Test option.
You will not find the Custom Action to test the Odata Service.
Cause
Function Imports for particular OData Service are not visible in OData Console UI.
Resolution
To use Function Imports, use the following solutions:
- From the metadata, take the Function Import name, and HttpMethod.
- The URL with parameters in console should be :
Syntax : https://www.example.com/sap/c4c/odata/v1/c4codata/<FunctionImportName>?<Parameter>=’<value>’
Example : https://www.example.com/sap/c4c/odata/v1/c4codata/AccountFindByCommunicationData?Phone=’XXXXXXXXXX’ (where XXXXXXXX is Phone Number)
3. Set the Request Header value should be same as HttpMethod from the metadata, in this case it is GET.
Keywords
Odata Function Import , KBA , SRD-CC , Cross Components , How To