SAP::BC - Interface to SAP's Business Connector
my $bc = SAP::BC->new( server => 'http://karma:5555',
user => 'dj',
password => 'secret' );
my $service_ref = $bc->services(); # list (SAP) services available
SAP::BC is an OO interface that exposes functions within SAP's Business Connector (BC) as methods. It was primarily written as a class for discovering services and their respective RFC components for another module project SAP::BC::Proxy::SOAP which is a SOAP (to RFCXML) proxy for calls to SAP via the BC.
Use this to create a BC instance. You can pass either a single argument, which is the URL of the BC you want to manipulate, or a list of values, like this:
my $bc = SAP::BC->new('http://karma:5555'); not allowed after BC 4.x
my $bc = SAP::BC->new( 'server' => 'http://karma',
'user' => 'username',
'password' => 'secret' ); <= manditory after BC 4.x
where the user and password parameters are the ones for the SAP BC itself.
Use this method to get or set the user and password values for authentication with the BC.
Use this method to get a list of SAP systems known to the BC. The data will be cached after the first call.
To discover a list of services associated with the SAP systems known to the BC, use this method. You can pass a list of SAP systems for which you want to discover the services, or
if you don't pass anything, services for all the SAP systems known to the BC will be returned. If the SAP systems haven't previously been discovered using the SAP_systems method, this will happen automatically.
A reference to a hash will be returned, with the keys being the service names, and the argument being a hashref with the details, like this:
'sapsys' => 'LNX',
'rfcname' => 'Z_SOAP_GET_STATE_NAME',
'sapsys' => 'LNX',
'rfcname' => 'Z_SOAP_GET_STATE_STRUCT',
Disconnects from the BC and frees the session.
This is an internal method that removes the cached information (such as that determined by SAP_systems and services - so that the information can be refreshed by another call, if e.g. services have been added to the BC.
An experimental method that returns a hashref of properties pertaining to the BC instance connected to.
It relies on parsing some HTML, which is flakey at best.
An internal method to prime a UserAgent.
1 POD Error
The following errors were encountered while parsing the POD:
You can't have =items (as at line 66) unless the first thing after the =over is an =item
To install SAP::BC::XMLRFC, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.