Was this helpful?
IS API Invoker
The Integration Service API for SAP Invoker (referred to as the IS API Invoker) enables you to make a remote function call to query your SAP installation for a list of function modules and interact with the modules using an Apache Derby database for local storage. Explained here is how to set up the Apache Derby database and how to specify properties for an invoker instance and associated invoker steps.
Setting Up an Apache Derby Database
The IS API Invoker can use an embedded or a network Derby database. The network database must be started before using the invoker.
To set up the Network Apache Derby database:
1. Download the Apache Derby software from http://db.apache.org/derby/releases/release-10.4.2.0.html.
2. Unzip the software to the following folder on your machine:
C:\Apache\db-derby-10.4.2.0.bin
3. Follow the configuration instructions at http://db.apache.org/derby/papers/DerbyTut/ns_intro.html#ns.
4. Start the network server in a command window and look for the following message to ensure that the server has started correctly.
C:\Apache\db-derby-10.4.2.0-bin>startNetworkServer.bat
Security manager installed using the Basic server security policy.
Apache Derby Network Server - 10.4.2.0 - <689064> started and ready to accept connections on port 1527 at 2010-04-02 20:16:27.187 GMT
Note:  If you need to use a port number other than 1527, be sure to make a note of which number you use.
5. If the Derby database server does not start correctly and you do not see a message similar to the above, then you will not be able to proceed. See the Apache Derby help site for information on troubleshooting your Derby installation
IS API Invoker Properties
Property Name
Default Value
Description
SAP Hostname
localhost
DNS name or IP address of the destination SAP application server.
SAP Router String
 
Security setting for access to the SAP system behind a firewall. Usually, this will be blank.
Language
en
Language for login to the destination SAP application server.
System Number
0
System number for login to the destination SAP application server.
Client Id
100
Client Id login for the destination SAP application server.
Username
 
Username to connect to the destination SAP application server.
Password
 
The password to authenticate the above username.
Max Connections Allowed
10
Maximum number of concurrent connections for the connection pool.
Connection Pool Size
10
Total number of available connections in the connection pool.
Connection Expiration (secs)
60
Length of time after which an idle connection expires.
Expiration Check (secs)
3
Frequency of checking for expired connections.
Connection Timeout (secs)
30
Length of time for waiting to establish a connection.
Debug Folder
 
If specified, then the SAP XML representation of the current function module is saved to this location just prior to execution.
Supported Actions
Action
Description
Connect
Creates a database connection.
Execute
Executes the supported action.
Disconnect
Closes an existing database connection and performs clean up as needed.
Supported Action Parameters
The IS API Invoker supports the following step action parameters for the Execute action.
Parameter
Supported Actions
Description
Source Message
Execute
DNS name or IP address of the destination SAP application server.
Source message is not required but can be used to pass in the PARAM_MAP message property, which overrides any corresponding parameter or structure values. The PARAM_MAP property takes the form of a Java properties file with the following syntax:
Simple Parameter: PARAM_NAME=PARAM_VALUE
Structure Field: STRUCT_NAME.FIELD_NAME=FIELD_VALUE
Complete structures can also be mapped if they share the same fields:
STRUCT_NAME=FUNCTION_NAME.STRUCT_NAME
The second structure must already exist in the repository and be populated with data.
Tip...  To override multiple properties, use a CR+LF separator.
Overriding Tables
Tables cannot be overridden using PARAM_MAP. Instead, pass in CSV data using the Source Message property. A header is required, but double-quote delimiter characters are optional. The naming convention for table override of the Source Message property is LOAD_TABLE.TABLENAME.
Target Message
Execute
Target message is not required but can be used to retrieve a proprietary XML representation of the function template or execution results.
Target message properties are also automatically populated for any export parameters or structure fields that contain data.
Supported Action Properties
Property Name
Supported Actions
Description
RFC Function Name Search
Execute
Enter either simple text or a macro name to search the specified SAP server for the RFC function to execute. Only remotely enabled functions are returned. Search supports the asterisk << Image>> and percent sign (%) as wild card characters. Results are used to populate the RFC Function Name list (see below). The search must return fewer than 100 results.
RFC Function Name
Execute
Name of the RFC module that you wish to execute.
Repository Location
Execute
Location of the embedded or network server Derby instance used to store the RFC metadata and parameters.
 
Repository Type
Execute
You can select Repository Type as Embedded (default) or Client.
Embedded repositories require no additional software. Client-based repositories require a running instance of the Derby network server.
Client-based repositories are usually preferable at design time, and embedded repositories are preferable at run time. Macros used may change depending on the environment.
Execute Operation
Execute
How the selected RFC is used at run time. Choose from one of the following options:
Generate Template - Generates function metadata in the repository.
Execute Function - Executes the function using data stored within the repository and/or within the PARAM_MAP source message property.
Write Response XML
Execute
When TRUE (default), an XML representation of the RFC function results is returned in the body of the target message.
Create Optional Templates
Execute
Choose from one of the following options:
TRUE - All function metadata is generated in the repository.
FALSE (default) - Only metadata required for execution is generated in the repository.
Note:  This option is only valid when the Execute operation is set to Generate Template.
Return Empty Tables
Execute
Choose from one of the following options:
TRUE - All function tables are generated in the repository.
FALSE (default) - Only tables containing data are generated in the repository.
This option is only valid when the Execute operation is set to Execute Function.
Append Structure Output
Execute
Choose from one of the following options:
TRUE - Consecutive executions will append structure records within the repository.
FALSE (default) - The structure tables within the repository will be truncated upon each successive execution.
Some BAPIs natively append structure data upon successive executions, in which case this option has no effect.
Default Field Length
Execute
Allows the user to specify default repository field length when an invalid value is returned from the RFC interface for any particular field. The default value is 75.
Some repository fields are fixed length according to their corresponding ABAP data types:
Date: 8
Time: 8
Integer: 14
Decimal: 28
Errors
Action
Description
50
Displayed for all run-time errors.
999
Displayed when the function executes correctly in SAP, but contains a RET_CODE parameter or RETURN structure with a code other than 0.
Last modified date: 12/03/2024