In some cases you want to define different storage location (a different content server) based on the selected CAD group (property on the logon screen). Within the SAP customizing you can use different storage categories to point to different content servers, see transaction OACT and CSADMIN.
There are 3 steps you need to define:
- Define a new CAD Group (role) in <ECTR>\customize\config\saplogon.txt
- Modify plm_setevenv.bat to determine environment variable based on CAD Group selected.
- Change setting in default.txt to use the environment variable instead of the fixed value.
Step 1: Define a new CAD Group
Define different CAD Groups in the <ECTR>\customize\config\saplogon.txt
# As an alternative to getting the user roles from SAP the ECTR logon process # can provide a selection list of roles in the SAP logon window. The definition # uses an ID that is then assigned to PLM_ROLE. # If this method is used, the SAP roles will not be processed. sap.logon.cad_group_id1 = full sap.logon.cad_group_desc1 = Full function user sap.logon.cad_group_id2 = walldorf sap.logon.cad_group_desc2 = Walldorf sap.logon.cad_group_id3 = shanghai sap.logon.cad_group_desc3 = Shanghai
This result in the logon screen to different potions for CAD Group.
Step 2: Modify plm_setevenv.bat
Modify plm_setevenv.bat to determine environment variable based on CAD Group selected.
if "%PLM_ROLE%" == "walldorf" set PLM_STORAGE=ZPLM1 if "%PLM_ROLE%" == "shanghai" set PLM_STORAGE=ZPLM2
The storage category (here ZPLM1 and ZPLM2) need to be defined in transcation OACT.
Step 3: Change setting in default.txt
Change setting in default.txt to use the environment variable defined in plm_setenv.bat instead of the fixed value.
plm.kpro.storageCateg.default = @PLM_STORAGE@