Creating an Authorization Definition File

Prerequisites

The Data Orchestration Engine (DOE) administrator has:

· Created the authorization objects in the DOE

· Assigned the authorization objects to roles, users, and applications

Context

For creating application-related authorizations, you have to:

  • Create an XML file called Authorization.xml in the Mobile Project

  • Define the authorization objects in the authorization file

Procedure


  1. Choose Start of the navigation pathWindow Next navigation step Open Perspective  Next navigation step  Other  Next navigation step  Resource (default),End of the navigation path and then choose OK.

    The SAP perspective changes to Resource .

  2. Choose Start of the navigation pathFile Next navigation step New  Next navigation step  File.End of the navigation path

  3. Select the required project.

  4. In the File name field, enter Authorization.xml .

  5. Choose Finish .

    The IDE creates the authorization file and opens it in the edit mode, which enables you to define the authorization definitions.

  6. Enter the required authorization definitions, as shown in the example.

  7. Choose Start of the navigation pathFile Next navigation step Save All. End of the navigation path

Example

This example displays a sample authorization file.

<?xml version="1.0" encoding="utf-8"?>

- <auth_objects>

- <auth_object name="AO1">

<auth_field name="Field1" />

<auth_field name="Field2" />

<auth_field name="Field4" />

</auth_object>

- <auth_object name="AO2">

<auth_field name="Field1" />

<auth_field name="Field3" />

<auth_field name="Field7" />

</auth_object>

</auth_objects>