Create an Alias in SAP on UNIX & Linux

1. Login to the OS level as SIDadm and execute command ls -la to view the hidden files of the SAP environment.

> ls -la
.sapenv_<SERVER-NAME>.sh
.sapenv_<SERVER-NAME>.sh

2. Use VI editor to edit/add the SAP environment file. You can select either of the files. After done adding the aliases, save the file.

> vi .sapenv_<SERVER-NAME>.sh
# Define Alias
alias cdexe 'cd /usr/sap/$SAPSYSTEMNAME/SYS/exe/run'
alias cdpro 'cd /usr/sap/$SAPSYSTEMNAME/SYS/profile'
alias cdglo 'cd /usr/sap/$SAPSYSTEMNAME/SYS/global'
alias cdput 'cd /usr/sap/put/log'

Note:
Above example is to set the aliases for cdexe to kernel directory, cdpro to profile directory and cdglo to global directory.

You May Also Like

Leave a Reply?