Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Organisational keys are assigned based cost centre associated with Bus Area

0 Kudos

Hi ,

I need to add the authorization check in the Z* program Within TE, restrictions are being implemented based upon organisational key. Organisational keys are assigned based upon whether or not the cost centre has an associated business area. If a business area exists, then a restricted organisational key (in range US01* to US50*) is assigned. Otherwise, a non-restricted organisational key is used.

Can any one help me !

Thanks,

Nelson

1 REPLY 1

0 Kudos

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

Before displaying the selection screen

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.

During processing of personnel data

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.

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.