This graphic is explained in the accompanying text Perl: Example 2 Locate the document in its SAP Library structure

Example of Calling the Loader with Perl Script

Create a database session with the SAP DB Loader
Log on to the database instance
Log off

# Reference to the SAP DB Perl Library
# -------------------------------

use SAP::DBTECH::loader;

# Parse the call arguments
# --------------------------

$userid = $ARGV[0];
$password = $ARGV[1];
$database_name = $ARGV[2];
$data_path = $ARGV[3];
$server_node = "localhost";

# Create a database session for the Loader
# -------------------------------------------

$session = loader::Loader ($server_node, $database_name);

# Log on to the database instance
# --------------------------------

$session->cmd("use user $userid $password;");

# Log off
# --------

undef $session