Show TOC

Creating an Authorization Definition FileLocate this document in the navigation structure

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 path Window 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 path File 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.

    Note

    You must ensure that the authorizations you define in the authorization file map to the authorization objects in the DOE.

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

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

    Note

    Alternatively, you can also use an existing authorization file. To do this copy the authorization file in the project root directory, using Microsoft Windows Explorer.

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>