cancel
Showing results for 
Search instead for 
Did you mean: 

Role Import - Aplication type

Former Member
0 Kudos

We are trying to import non-sap roles (from flat files) but cant make a "Legacy" option available for "Application Type". Is it possible?

best regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Colleen
Advisor
Advisor
0 Kudos

Hi Luis

You need to select the correct combination of the following radio buttons for Legacy to appear

Role Type = Technical Role (Business Role and Composite Role do not apply)

Role Attribute Source

Role Authorization Source

I'm not entirely sure if the legacy connector configuration will impact this.

As you choose the different options the drop down list will refresh with permitted application types. The application Types will then determine options for Landscape, etc.

Code extract below for: SE80 -> GRAC_ERM_ROLE_IMPORT_GAF for event handler ONACTIONONSELECTAPPLTYPE for method BUILD_DROPDOWN .


lv_category = Role Type - Technical Role [TR], Business Role [BR], Composite Role [CU]

ls_applicaiton_type = application type (all of them extracted from GRACAPPLTYPE)

security_type - table GRACAPPLTYPE for the security type

lv_attr_src - role attribute source drop down list (User Input, File on Server, File on Desktop)

lv_auth_src - role authorization source drop down list (Backend System, File on Server, File on Desktop, Skip)

LOOP AT lt_application_type ASSIGNING <ls_application_type>.
         if lv_category = 'BR'.
           " Only Business application type allowed for business roles
           if not ( <ls_application_type>-appl_type = gracr_application_type-gracr_c_business ).
             continue.
           endif.
         endif.
         if lv_category = 'CU'.
           " Only SAP application type allowed for CUA roles
           if not ( <ls_application_type>-appl_type = gracr_application_type-gracr_c_sap ).
             continue.
           endif.
         endif.
         if lv_category = 'TR'.

           " Business application type not allowed for technical roles
           if <ls_application_type>-appl_type = gracr_application_type-gracr_c_business.
             continue.
           endif.
           if lv_auth_src = '01'. " Backend sync
             " Only security type PFCG is allowed as application type for backend sync
*            if not ( <ls_application_type>-appl_type = gracr_application_type-gracr_c_sap ).
             if not ( <ls_application_type>-security_type = '001' ).
               continue.
             endif.
           endif.
           if lv_attr_src = '01' and lv_auth_src = '04'. " User input and Skip
             " Only security type PFCG is allowed as application type for backend sync
*            if not ( <ls_application_type>-appl_type = gracr_application_type-gracr_c_sap ).
             if not ( <ls_application_type>-security_type = '001' ).
               continue.
             endif.
           endif.

         endif.
         MOVE <ls_application_type>-appl_type TO ls_value_set-value.
         MOVE <ls_application_type>-descn TO ls_value_set-text.
         APPEND ls_value_set TO lt_value_set.
       ENDLOOP.