OData Support

Use

SAP Application Interface Framework supports the monitoring of error messages for OData services. For erroneous data messages, you can display the error messages and the content of the data message in the source format. Correcting the contents of the data messages, restarting, or cancelling data messages of the OData service using the SAP Application Interface Framework is not supported.

Activities

  1. To receive up-to-date error logs of OData services in SAP Application Interface Framework, select the services in the program /AIF/ODATA_TRANSFER_JOB and schedule the program to run periodically.

    You can look up the available oData services in transaction /IWFND/MAINT_SERVICE.

  2. Create an interface with a raw structure containing at least a component of type /AIF/ODATA_STD_RAW_FLDS_S. This component contains the standard fields of the OData error log, for example, the service name, the user, and a timestamp. A mapping is not required for an OData interface.

    You define the interface in Customizing of SAP Application Interface Framework underStart of the navigation pathInterface Development Next navigation step Define InterfacesEnd of the navigation path.

  3. For the OData interface, specify the following interface engines:
    • Application Engine: OData application engine

    • Persistence Engine: OData persistence engine

    • Selection Engine: AIF Index tables

    • Logging Engine: OData logging engine

    You specify the engines in Customizing of SAP Application Interface Framework underStart of the navigation pathInterface Development Next navigation step Additional Interface Properties Next navigation step Specify Interface EnginesEnd of the navigation path.

  4. Specify the OData services and elements, for example entity sets, whose error logs you want to monitor using this interface.

    You specify the services in Customizing of SAP Application Interface Framework under Start of the navigation pathInterface Development Next navigation step Additional Interface Properties Next navigation step Define OData ServicesEnd of the navigation path.

  5. Define a message index table that at least includes the structure /AIF/ODATA_STD_IDX_FLDS_S. For an example of such an index table, see the template table /AIF/T_ODATA_IDX.

    Add your index table to the OData interface in Customizing of SAP Application Interface Framework, under Start of the navigation pathError Handling Next navigation step Define Namespace-specific Features Next navigation step Define Interface-specific Features Next navigation step Message Idx TableEnd of the navigation path.

  6. Optionally, you can decide to enable the business users to display the source contents of the OData data message, that is, the response and the request. If enabled, there is the Display Contents in Source Format button available in the Data Messages view of the Monitoring and Error Handling.

    To enable the Display Contents in Source Format button, in Customizing of SAP Application Interface Framework, select Start of the navigation pathError Handling Next navigation step Define Namespace-specific Features Next navigation step Define Interface-specific Features Next navigation step Displ source buttonEnd of the navigation path.