Show TOC

 Authorization Check for Reporting in Travel Expenses

Purpose

You can store the most important trip data in statistics tables for reporting purposes. The trip statistics data can be analyzed using reports that you can execute via the menu under Travel Expenses Information system .

The authorization to analyze statistics data in Travel Expenses is controlled in the travel expenses authorization object (P_TRAVL) by the value S in the authorization field AUTHF .

This value is not relevant for the authorization check for reporting in Travel Planning . Here the authorization object F_TRAVL is checked (see authorization checks in Travel Planning )

Process Flow

The authorization check for trip statistics reporting has a maximum of three stages:

  1. Before displaying the selection screen

  2. Before the selection screen is displayed a check is made as to whether the user has the authorization to view just his own trip data, or also the trip data of other employees.

    The following check is made:

    AUTHORITY-CHECK OBJECT 'P_TRAVL'

    ID 'AUTHP' FIELD 'E'

    ID 'BUKRS' DUMMY

    ID 'PERSA' DUMMY

    ID 'KOSTL' DUMMY

    ID 'PERSG' DUMMY

    ID 'PERSK' DUMMY

    ID 'VDSK1' DUMMY

    ID 'PTZUO' DUMMY

    ID 'AUTHF' DUMMY

    ID 'AUTHS' DUMMY.

    If the employee only has authorization to view his own data, the personnel number is determined using the Infotype Communication (0105). This personnel number is then displayed in the selection screen of the relevant report and can not be overwritten.

    If the Infotype 0105 has not been maintained the program ends abnormally and an appropriate error message is issued. No further checks are made as the employee can only display his own data.

    If the employee has the authorization to display the data of other employees as well, further authorization checks are made during the processing of the personnel and trip data.

  3. During processing of personnel data

  4. The following check is made for every personnel number read from the database:

    AUTHORITY-CHECK OBJECT 'P_TRAVL'

    ID 'AUTHP' DUMMY

    ID 'BUKRS' FIELD pa0001-bukrs

    ID 'PERSA' FIELD pa0001-werks

    ID 'KOSTL' FIELD pa0001-kostl

    ID 'PERSG' FIELD pa0001-persg

    ID 'PERSK' FIELD pa0001-persk

    ID 'VDSK1' DUMMY

    ID 'PTZUO' DUMMY

    ID 'AUTHF' DUMMY

    ID 'AUTHS' DUMMY.

    If the check is successful, the trip data for the personnel number is processed, if unsuccessful, the personnel number is ignored.

  5. During processing of trip data

The following check is made for each selected trip:

AUTHORITY-CHECK OBJECT 'P_TRAVL'

ID 'AUTHP' DUMMY

ID 'BUKRS' FIELD pa0001-bukrs

ID 'PERSA' FIELD pa0001-werks

ID 'KOSTL' FIELD pa0001-kostl

ID 'PERSG' FIELD pa0001-persg

ID 'PERSK' FIELD pa0001-persk

ID 'VDSK1' DUMMY

ID 'PTZUO' DUMMY

ID 'AUTHF' FIELD authf

ID 'AUTHS' DUMMY.

The AUTHF field has 3 positions:

Position 1: S - Statistics data for reporting

Position 2: - Request status of trip

Position 3: - Settlement status of trip

If the check is successful, the selected trip is displayed in the report list, if unsuccessful, the trip is ignored.