Using MS DOS Commands to Operate the SAP ODA Connector 
You can also use MS DOS commands to operate SAP ODA. You may want to do this, for example, for troubleshooting.
Open MS DOS Prompt.
To do so, choose .
Navigate to the folder in which SAP ODA is stored.
Enter the relevant command.
Starting SAP ODA as Windows NT Service
Register SAP ODA as a service.
To do so, enter command sapoda -i -D<Destination> .
Replace <Destination> by the destination that you have created as a new entry in the SAPRFC.INI file when you installed the SAP ODA Connector.
Example: sapoda -i -DMYODA
See also: Installing the SAP ODA Connector
Proceed as follows to start the service:
In the Windows menu bar, choose .
In the Control Panel dialog box, double-click Services .
Select SAP OPC Data Access Service .
Choose Start.
Stopping SAP ODA as Windows NT Service
Proceed as follows to stop the service:
In the Windows menu bar, choose .
In the Control Panel dialog box, double-click Services .
Select SAP OPC Data Access Service .
Choose Stop .
Deregister SAP ODA as a service.
To do so, enter the command sapoda –u in MS DOS Prompt.
Starting SAP ODA as a Program
You can also use MS DOS commands to start SAP ODA. You have the following options:
The SAPRFC.INI file is to be used when starting SAP ODA. This means that the parameters it contains are read when SAP ODA is started. In the MS DOS command, you specify the Destination that defines the configuration parameters in the SAPRFC.INI file.
Command |
Meaning |
sapoda -D<Destination> Example: sapoda -DMYODA |
Start SAP ODA with destination |
The SAPRFC.INI file is not to be used. You must enter the following MS DOS commands:
Command |
Meaning |
sapoda -a<Programm-ID> -g<SAP Gateway Host Name> -x<SAP Gateway Service Name> |
Program ID Host name or IP address of the SAP gateway Program name of the SAP gateway |
Note
If SAP ODA is still registered as a service, you must first deregister it before you can start it as a program.
Troubleshooting
You can use the following commands for troubleshooting:
Command |
Meaning |
sapoda -? |
Lists all available commands |
sapoda -t |
Generates a trace file that logs the RFC |
sapoda -o < file name> |
Generates a trace file that logs the screen output |
sapoda -log <file name> |
Generates a trace file that logs the log events |
sapoda -tcb |
Generates a trace file that logs the RFC callbacks |