Hi Vi Tran,
You can just create one Function Module as like below, I created and working as expected.
FUNCTION ZRS_PERS_READ_USER.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(USER) TYPE /BI0/OITCTUSERNM
*" CHANGING
*" REFERENCE(VARIABLE) TYPE /BI0/OITCTVARNM OPTIONAL
*"----------------------------------------------------------------------
select TCTVARNM from /BI0/APERS_VAR00 into ( VARIABLE ) where
TCTUSERNM = user.
endselect.
if sy-subrc NE0.
VARIABLE = 'No Personalization'.
endif.
ENDFUNCTION.
Output:
It takes user as a input and if user has any authorization then it will give variable name.
Just check.
Thank you,
Nanda