Procedure documentationFunction Module for Starting/Stopping/Initializing Locate this document in the navigation structure

 

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 Modules

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

Prerequisites

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.

Procedure

Calling the function modules on Microsoft Windows operating system is explained using the following example:

Example Example

Name of the Database Connection: LCX or LCY

SAP System: S10 (10)

Host: p123456

Database User: S10

Password: geheim

End of the example.
Stopping the SAP liveCache Database LCX

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

Starting the SAP liveCache Database LCY

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 Note

For a complete description of all STARTRFCoptions, see the following SAP documentation: Inbound: Triggering the SAP System.

End of the note.

Note Note

The function modules START_LIVECACHE_LVC and STOP_LIVECACHE_LVC are not available for an SAP liveCache OneDB.

End of the note.