SAP: What is SAPCPE & Usage of SAPCPE

SAPCPE is an program which exists in your Kernel folder. it helps to copy kernel binaries from one location to another exe location.

Whenever we run the “STARTSAP” command, SAPCPE copy or verify the kernel binaries from “CDEXE” location to Instance/exe. it depends whether how much instances you have including ASCS/SCS, ERS & Gateway.

When we perform Kernel Upgrade activity we update the kernel patch level on “CDEXE” location & rest other location are having the old version of kernel. if we want to update the kernel patch level in Instance EXE before starting the system then we can perform the same via SAPCPE manually.

For doing this, we need to find the respective instance profile & run the below command.

Example –

sapcpe pf=/usr/sap//SYS/profile/Instance_Profile

Once you trigger the above command it copies the required binaries from CDEXE location to respective profile instance directory/exe & update the kernel.

How it Works Internally

There are some LST files exists in the kernel directory(CDEXE) where it read the LST file to copy the same. we have separate LST file for Instance, ERS, ASCS/SCS & Gateways. These LST files are mentioned in the respective profiles.

For Example –

sapcpe pf=/usr/sap//SYS/profile/Instance_Profile

When you run the above command SAPCPE read the Instance_Profile & find out the LST file mentioned in profile & based on this LST file, it transfer the respective binaries only from CDEXE to Instance Directory/exe.

The same procedure also happen when you trigger the STARTSAP.

I hope this clarifies the SAPCPE usage.

SAP:Cannot import instance profile via RZ10

Hello,

Recently after system we are facing below issue while importing the Instance Profile from SAP in RZ10 Tcode.

While multiple restart & also changed the profile authorization to 777 that also doesn’t work.

There is an SAP Note – 2157878 which describe the solution for this error, however in our case that we need to change profile parameter in START profile(if start profile is separate then Instance) & also change the entry in /usr/sap/sapservices file.

Correct Entry
DIR_PROFILE = $(DIR_INSTALL)$(DIR_SEP)profile

Adjust /usr/sap/sapservices, change /sapmnt//profile/ to /usr/sap//SYS/profile/

After updating above 2 entries & then restart the application server by killing the SAPSTARSRV process, that resolve the issue & we are able to import the profile in RZ10 successfully.

Hope this Helps.