To enable you to start/stop/initialize an SAP liveCache database from outside the SAP system as well as within it, corresponding function modules have been implemented. This also means that an SAP liveCache database can be started/stopped/initialized by calling the corresponding function module from scripts.
The function modules concerned are those listed below, from function group SLCR:
Function Module Name |
Corresponding Function in the SAP System |
---|---|
START_LIVECACHE_LVC |
Report RSLVCSTART, Start liveCache |
STOP_LIVECACHE_LVC |
Report RSLVCSTOP, Stop liveCache |
INITIALIZE_LIVECACHE_LVC |
Report RSLVCINIT, Initialize liveCache |
The RFCruntime and RFC SDK libraries are installed on your local host (as part of the complete SAP GUI installation). This means that you have the program STARTRFC, required to call the function modules.
Calling the function modules on Microsoft Windows operating system is explained using the following example:
Example
Name of the Database Connection: LCX or LCY
SAP System: S10 (10)
Host: p123456
Database User: S10
Password: geheim
C:\Program Files\SAPpc\sapgui\rfcsdk\bin> startrfc -3 -d S10 -h p123456 -s 10 -c 000 -u S10 -p secret -l DE -F STOP_LIVECACHE_LVC -E IV_CON_NAME=LCX
LCY does not exist in table DBCON
C:\Program Files\SAPpc\sapgui\rfcsdk\bin> startrfc -3 -d S10 -h p123456 -s 10 -c 000 -u S10 -p secret -l DE -F START_LIVECACHE_LVC -E IV_CON_NAME=LCY
You receive the error message Logical connection name LCY does not exist in table dbcon.
Note
For a complete description of all STARTRFCoptions, see the following SAP documentation: Inbound: Triggering the SAP System.
Note
The function modules START_LIVECACHE_LVC and STOP_LIVECACHE_LVC are not available for an SAP liveCache OneDB.