Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Central User Administration

sudhindra_chandrashekar
Product and Topic Expert
Product and Topic Expert
0 Likes
413

Hi All,

Is there a Function module or BAPI to know whether the Central User Administration (CUA) is active on the system. I know that if there is a model view in the transaction SCUA then the CUA is active but is there a better way to determine the same?

Thanks for any help,

Sudhi

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
380

You can try the following function module

* get central user management system
  CALL FUNCTION 'SUSR_ZBV_CENTRALSYSTEM_GET'
       IMPORTING
            CENTRAL_SYSTEM_LOGSYS    = central_log_system
       EXCEPTIONS
            DUPLICATE_CENTRAL_SYSTEM = 1
            NEW_SYSTEM               = 2
            OTHERS                   = 3.
  IF SY-SUBRC <> 0 or central_log_system = space.
    exit.
  endif.

If no central log system, then CUA is inactive?

Regards

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
0 Likes
381

You can try the following function module

* get central user management system
  CALL FUNCTION 'SUSR_ZBV_CENTRALSYSTEM_GET'
       IMPORTING
            CENTRAL_SYSTEM_LOGSYS    = central_log_system
       EXCEPTIONS
            DUPLICATE_CENTRAL_SYSTEM = 1
            NEW_SYSTEM               = 2
            OTHERS                   = 3.
  IF SY-SUBRC <> 0 or central_log_system = space.
    exit.
  endif.

If no central log system, then CUA is inactive?

Regards