SAP ABAP Data Element PTRV_STATS_AUTH_CHECK (Authorization checks in travel reporting)
Hierarchy
SAP_HRGXX (Software Component) Sub component SAP_HRGXX of SAP_HR
   FI-TV-COS (Application Component) Travel Expenses
     PTRA (Package) Travel Expenses Application Dev. (R/3 Enterprise Core)
Basic Data
Data Element PTRV_STATS_AUTH_CHECK
Short Description Authorization checks in travel reporting  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type CHAR1    
Data Type CHAR   Character String 
Length 1    
Decimal Places 0    
Output Length 1    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short  
Medium  
Long  
Heading  
Documentation

Definition

The authorization check in reporting of trip statistics takes place in not more than 3 steps:

  1. Before the selection screen is displayed

    the system checks to see if the user has the authorization to display his own trip data only, or also other employees' trip data.

    The check is performed via an:

    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 the authorization for his own data, his personnel number is determined via Infotype 0105. This personnel number is then defaulted in the selection screen of the relevant report and can not be overwritten.

    If Infotype 0105 is not maintained, the program is terminated and an error message is issued.

    No other checks are performed since the employee can only display his own data.

    If the employee is also authorized to display data for other employees, further authorization checks take place during processing of personal data and trip data.

  2. Authorization checks during personal data processing

    The following check is carried out for each 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 this personnel number is processed, if not, the personnel number is ignored.

  3. Authorization checks during trip data processing

    For each selected trip, the following check takes place:

    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 is made up of 3 positions:

    Position 1: 'S' - Reporting of statistics data

    Position 2: - Request status of trip

    Position 3: - Accounting status of trip

    If the check is successful, the selected trip is displayed in the report list, if it is not successful, the trip is disregarded.

    Special features for Travel Planning:

    In Travel Planning the object F_TRAVL is also checked:

    authority-check object 'F_TRAVL'

    id 'AUTHP' field h_authp ('F' or 'O' as above)

    id 'BUKRS' field t_auth-bukrs (P0001-BUKRS)

    id 'PERSA' field t_auth-persa (P0001-WERKS)

    id 'KOSTL' field t_auth-kostl (P0001-KOSTL)

    id 'PERSG' field t_auth-persg (P0001-PERSG)

    id 'PERSK' field t_auth-persk (P0001-PERSK)

    id 'VDSK1' field t_auth-vdsk1 (P0001-VDSK1)

    id 'PTZUO' field t_auth-ptzuo (P0017-PTZUO)

    id 'AUTHC' field authc. ('R' - read authorization)

History
Last changed by/on SAP  19980525 
SAP Release Created in