SAP Knowledge Base Article - Public

2510650 - How to use Odata Function Import

Symptom

You created Custom Action in Function Import. While testing this Custom Odata Service you cannot find Odata Function Import.

Reproducing the Issue

  1. Go to Administrator workcenter.
  2. Open the Odata Service Explorer.
  3. Open the Custom Odata Service.
  4. Here check required Odata Service and check the function import tab.
  5. 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:

  1. From the metadata, take the Function Import name, and HttpMethod.

    Action_FunctionImport.PNG
  2. 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

Product

SAP Cloud for Customer 1805 ; SAP Cloud for Customer add-ins 1802 ; SAP Cloud for Customer add-ins 1808