SAP Note: GET_AUTH_VALUES returns empty result

July 13, 2010 by mySAP
Filed under: SAP Knowledge 


SAP Note 740966 – GET_AUTH_VALUES returns empty result (incorrectly)

An application that uses function module GET_AUTH_VALUES acts as if the user would lack of authorizations although authorization data was assigned properly.

Related terms

GET_AUTH_VALUES, SUSR_USER_AUTH_FOR_OBJ_GET

.

Reason and Prerequisites

As result of restrictions imposed by some database structure (length of field to store profiles = 3750, length of name for one profile = 12 => maximum of 312 profiles per user) the former version of function module GET_AUTH_VALUES did assume that a user can only hold up to 300 profiles (although actually 312 profile assigments would be technically possible). When more than 300 profiles have been assigned to a user the function module discarded all found profiles and returned an empty result (number of profiles = 0).

.

Solution

Apply the provided support packages or correction instructions.

Also, we recommend to apply Note 743182 (SUSR_USER_AUTH_FOR_OBJ_GET: problems with reference users)

Manual actions required before applying correction instructions

Please notice that for release 6.40 you need to perform a manual correction measure. The interface of function module GET_AUTH_VALUES needs to be extended by an additional IMPORT parameter TCODE:

Parameter Name Type Reference Typ Default Value Optional
————————————————————–

OBJEC7 LIKE USR12-OBJCT ‘ ‘ [X] [X]
USER LIKE USR04-BNAME ‘ ‘ [X] [X]
TCODE LIKE SY-TCODE SY-TCODE [X] [X]

Notice: after saving the changes you need to activate the function module.

Viewed 13221 times by 2078 viewers

Related SAP Topics:

Comments

One Comment on SAP Note: GET_AUTH_VALUES returns empty result

    [...] no values are displayed, check whether Note 740966 is valid for your release and implement Note 740966 if necessary. Viewed 765 times by 251 viewers Related SAP Topics:02/26/2009 — net book value [...]

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





mySAP ERP | SAP Business | SAP Tutorial | SAP Help