Child pages
  • Updating inconsistent authorization variables
Skip to end of metadata
Go to start of metadata

Purpose

Authorization variable are optional in BW7.x.  There may however be mandatory authorization variable in the system coming from older releases.  Here we will explain how to update them.

 

Overview

Mandatory authorization variable can cause errors in the system.  This is explained in the KBA 1579015.  To find and correct these I have created the below report.

Using the report

Execute the report in SE38 and you will be presented with the screen below

You have the option to check for Mandatory variables or Update them, We always recommend that you check the authorization variables first to be aware of what you are changing. Weather you run in check or update mode you will get an output explaining what variables are inconsistent or have been changed like below.

Code

*&--------------------------------------------------------------------------

*& Report ZBK_UPD_OPT_AUT_VAR - Brian Keenan Jan2012 -

*&--------------------------------------------------------------------------
REPORT ZBK_UPD_OPT_AUT_VAR.

TYPE-POOLS: rs, rro04, rzi0, rri1.
TABLES: rszglobv, rszelttxt, rszrange.
DATA: wa_rszglobv TYPE rszglobv,

gt_rszglobv TYPE TABLE OF RSZGLOBV,

g_s_globv TYPE TABLE OF RSZGLOBV.

SELECTION-SCREEN BEGIN OF BLOCK para WITH FRAME TITLE text-001.

PARAMETERS: Check RADIOBUTTON GROUP sel DEFAULT 'X',

                         Update RADIOBUTTON GROUP sel.

SELECTION-SCREEN END OF BLOCK para.

START-OF-SELECTION.

* select all variables that are filled by authorization and not optional

* These should be changed as a user with 0BI_ALL will never get filled

* The system will then throw and error.

SELECT * FROM RSZGLOBV INTO TABLE gt_rszglobv

WHERE VPROCTP = '6' AND ENTRYTP <> '0' AND OBJVERS = 'A'.

IF sy-subrc <> 0.

        MESSAGE 'No data found' TYPE 'I'.

EXIT.

ENDIF.

LOOP AT gt_rszglobv into wa_rszglobv.

     IF update = 'X'.

         wa_rszglobv-ENTRYTP = 0.

         UPDATE rszglobv FROM wa_rszglobv.

         WRITE: / wa_rszglobv-vnam,

         'The auth variable has been updated to optional.

     ELSE.

         WRITE: / wa_rszglobv-vnam,

         'The auth variable is Mandatory and should be changed'.

    ENDIF.

ENDLOOP.

 

 

Related Content:

Related Documents:

Related Notes:

1579015  - Could not determine value for variable from authorization

  • No labels