Start of Content Area

Procedure documentation Function Module for Starting/Stopping/Initializing  Locate the document in its SAP Library structure

To enable you to start/stop/initialize a liveCache database instance from outside the SAP system as well as within it, corresponding function modules have been implemented. This also means that a liveCache database instance 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

Name of Function Module

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 RFC runtime 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

Name of the Database Connection: LCX or LCY
SAP System: S10 (10)
Host: p123456
User: S10
Password: secret

Stopping the liveCache Database Instance LCX

C:\Program Files\SAPpc\sapgui\rfcsdk\bin>startrfc –3 –d S10 –h p123456 –s 10 –c 000 –u S10 –p geheim –l DE –F STOP_LIVECACHE_LVC –E IV_CON_NAME=LCX

Starting the liveCache Database Instance 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 geheim –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 STARTRFC options, see the following SAP documentation: Inbound: Triggering the SAP System.

 

End of Content Area