#!#COMPANY#!# | SNC name could be assembled from one or more variables, depending on which part of the string can have fixed values in the environment. p:CN=#!#USERID#!#, O=SAP-AG, C=DE p:CN=#!#USERID#!#, O=#!#COMPANY#!#, C=#!#LOCATION#!# Variables have their equivalent AC fields, which have to to be filled from the user detail data source. In case LDAP connector is used as data source, group field mapping needs to be maintained. For the above example using Microsoft Active Directory: 'USERID' mapped to 'SAMACCOUNTNAME' 'COMPANY' mapped to 'COMPANY' 'LOCATION' mapped to 'C' |
#!#DEPARTMENT#!# | |
#!#EMAIL#!# | |
#!#EMPLOYEETYPE#!# | |
#!#FIRSTNAME#!# | |
#!#FUNCTIONALAREA#!# | |
#!#LASTNAME#!# | |
#!#LOCATION#!# | |
#!#TELEPHONE#!# | |
#!#USERID#!# | |
#!#USERID_L#!# (USERID in lower case) |
METHOD ipo_z_snc~fill_adstructure.
*"------------------------------------------------------------------------*
*" Declaration of POST-method, do not insert any comments here please!
*"
*"methods FILL_ADSTRUCTURE
*" importing
*" !IV_GROUP_MAP type GRAC_T_GRPFLDMAP
*" !IV_VALUE_TABLE type CL_GRAC_AD_ACCESS_MGMT_LDAP=>YT_SYSTEM_FIELD_VALUE
*" changing
*" !ES_USER_DETAIL type GRAC_S_USER_DETAIL .
*"------------------------------------------------------------------------*
FIELD-SYMBOLS <fs_snc> TYPE grac_s_user_snc.
ASSIGN COMPONENT 'snc' OF STRUCTURE es_user_detail TO <fs_snc>.
IF sy-subrc = 0.
TRANSLATE <fs_snc>-pname TO UPPER CASE.
CONCATENATE 'p:' <fs_snc>-pname INTO <fs_snc>-pname.
ENDIF.
UNASSIGN <fs_snc>.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |