Entering content frame

Background documentation Method cmd Locate the document in its SAP Library structure

Definition

cmd (cmd_string)

Use

cmd is a method of the class Loader. You use this method to send the Loader command specified under cmd_stringto the program Loader Server.

Result

The result of the Loader command is returned.

If the Loader Server program registers an error, an exception of the class LoaderError is raised.

Example

Specifying a valid Loader command

result = session.cmd ('CREATE TABLE testtable (colname INTEGER)')
print repr (result)

Output:

''

 

Specifying an invalid Loader command

result = session.cmd ('invalid command')
print repr (result)

Output:

Traceback (innermost last):
loader.LoaderError: loader.LoaderError: [-25010] SQL [-3005] Invalid SQL Statement (error position: 1)

(See also: Method rawCmd)

 

Leaving content frame