Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8556

Re: FM to get personalized variables

$
0
0

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



Viewing all articles
Browse latest Browse all 8556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>