SAP JCo operation
The SAP JCo operation defines how to interact with the SAP application and represent a specific action (Execute, Send, and Listen.)
Options tab
Click Import Operation, then use the Import wizard to browse the BAPIs available in your system's Business Object Repository by a specific object or by specifying the specific RFM or BAPI to use. For IDocs, you can specify the specific IDoc Base Type to import. The wizard automatically generates the request and response XML profiles for the BAPI/RFM, representing the input and output parameters for the function call, or a response XML profile for IDoc. Create a separate operation for each RFM, BAPI or IDoc call required for your integration.
Connector Action - Determines whether the action is Execute for BAPIs/RFMs, Send for sending IDocs to SAP, or Listen for as an IDoc Listener to SAP.
Request Profile (Execute and Send) - The XML profile definition that represents the structure that is being sent or received by the connector.
Response Profile (Execute and Listen) - The XML profile definition that represents the structure that is being sent or received by the connector.
Return Application Error Responses (Execute, Send, and Listen) - This setting controls whether a server error prevents an operation from completing:
- If cleared, the process aborts and reports the error on the Process Reporting page.
- If selected, Manage does not report failed operations, letting you act on them in your process. You can use this option to retrieve JCO_Error message (values).
Consolidate Outbound Documents? (Send) When sending multiple IDocs in a batch, select this option to return a single transaction ID as a consolidated operation output for all the IDocs sent. This avoids receiving a separate transaction ID for every individual IDoc sent.
Note: If any IDoc within the batch fails, such as multiple IDoc types, the process execution summary message will include the error details of the failed IDoc. If you select the above option, the Process Reporting page displays only the following three fields' values: Transaction Id, Basic Type, and Extension.
Commit Transaction? (Execute) Select if the specific BAPI requires a "Commit Transaction" as part of the BAPI call. Refer to the BOR documentation in SAP for more information.
Program ID (Listen) RFC Server Program ID configured in SAP. You can also enter this ID in the Program ID field in the Import Wizard.
Execute
Execute a BAPI or RFM where the connector makes a request and the SAP application responds with the data from the selected SAP application. In order to generate the request and response XML profile associated with the BAPI or RFM, you must use the Import Wizard.
Send
Send is an outbound action that sends IDocs to the destination SAP system.
Note: For the Send operation, the Tracking Direction is set as Output Documents. To apply this setting in your existing process implemented with the earlier version of SAP JCo connector, it is recommended to open the process and save the operation.
Listen
Listen is used to receive IDocs from the SAP system. The Listen operation must be the first step in your process. This process should be configured using a Start step as a connector (with connection and operation properties). Once the process is set up, the complete process should be deployed in the basic runtime used (local or cloud). The added process can be managed in Manage, Runtime Management.
Tip: If you encounter duplicate entries of IDOCs being pulled by the connector, do any one of the following setting as a workaround:
- In the SAP JCo Connector - Connection settings, set the Listener Connection Count to 1. (or)
- In your SAP System - Server Connection Pool Configuration, set the Max Connections value as 1.
IDoc metadata refresh
The connector can refresh cached IDoc metadata with two independent settings. Both are configured in minutes.
Global Refresh (minutes)
Global Refresh is a full IDoc metadata cache reset for one SAP environment. The connector property is metadataRefreshInterval.
- Scope: One SAP environment, identified by server : client : user. It isn't a JVM-wide timer shared by every SAP connection.
- Trigger: Request-driven. The next relevant IDoc request after the interval expires performs the refresh.
- Action: Clears the complete JCo IDoc metadata repository, clears Smart Check timestamps and known SAP baselines, and records a new global timestamp.
- Default: 0 (disabled).
Smart Check Cooldown (minutes)
Smart Check Cooldown is targeted metadata validation for one normalized IDoc type and extension combination. The connector property is smartCheckInterval.
- Action when due: Queries SAP metadata with
RFC_READ_TABLE, compares local and SAP metadata stamps, and evicts only the affected type or exact extension variant when a change is detected. - Timing: The check is due only when elapsed time is greater than the configured interval.
- Default: 0 (disabled).
Selection
The two features are independent opt-ins. You can enable either one on its own, or both together. Each is active only when its interval is greater than 0. If both are at the default of 0, no metadata refresh activity occurs.
Global Refresh is an environment-wide full reset. Smart Check is an independent, per-IDoc-type and extension check. The two features can operate in the same request flow, but they do different jobs.
Archiving tab
Refer to the topic Connector operation’s Archiving tab for more information.
Tracking tab
Refer to the topic Connector operation’s Tracking tab for more information.