cancel
Showing results for 
Search instead for 
Did you mean: 

using MB51 to read from archive is trying to use s_archive with authorization 01

ronald_buchanan
Participant
0 Kudos
950

Hi I'm trying to access archived records from MB51 and the SU53 is showing its trying to access S_ARCHIVE using 01 instead of 03. Do we have something wrong or is this normal behavior? screenshot-su53-error-on-mb51.jpg

View Entire Topic
andreas_baldauf
Active Participant
0 Kudos

Hello Ron,

If the user selects the option "Reread Short Docs In Archive" the system calls the function module ARCHIVE_READ_OBJECT. In this function module, ACTVT 01 is checked first. If the user has no authorization for ACTVT 01, the system checks ACTVT 03.

This is the normal behavior.

Best regards,
Andreas

Function Module ARCHIVE_READ_OBJECT:
...
" authority check depending on access type
IF moveflag IS INITIAL. " read a single data object
AUTHORITY-CHECK OBJECT 'S_ARCHIVE'
ID 'ACTVT' FIELD '01' <=====
ID 'APPLIC' FIELD l_applic
ID 'ARCH_OBJ' FIELD object.
IF NOT sy-subrc IS INITIAL.
AUTHORITY-CHECK OBJECT 'S_ARCHIVE'
ID 'ACTVT' FIELD '03' <=====
ID 'APPLIC' FIELD l_applic
ID 'ARCH_OBJ' FIELD object.
IF NOT sy-subrc IS INITIAL.
* MESSAGE e100 RAISING not_authorized.
MESSAGE e480 WITH object RAISING not_authorized.
ENDIF.
ENDIF.
ELSE. " reload a single data object
AUTHORITY-CHECK OBJECT 'S_ARCHIVE'
ID 'ACTVT' FIELD '01'
ID 'APPLIC' FIELD l_applic
ID 'ARCH_OBJ' FIELD object.
IF NOT sy-subrc IS INITIAL.
SET SCREEN 0.
MESSAGE e100 RAISING not_authorized.
ENDIF.
ENDIF.