SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Execute Batch Payload Operations Using Java Database Connectivity (JDBC) Receiver Adapter

Learn how to connect, interact, and perform batch operations on your database via JDBC receiver adapter.

Overview

🎓 intermediate 40 min. SAP Business Technology PlatformIntermediateSAP Integration Suite

You will learn

  • โœ”How to connect Java Database Connectivity (JDBC) receiver adapter with your database (on the receiver system) and send, receive, or update data on the database.
  • โœ”How to interact with your database using SQL queries and XML.
  • โœ”How to perform operations on database using Batch Payload functionality.
Harshita Suryavanshi H Harshita Suryavanshi December 10, 2024
Created by December 10, 2024
Contributors

Prerequisites

Prerequisites

Steps

Intro

The data that you are transferring (sending or receiving) is called payload. This payload sent to the JDBC adapter can be modified. You can modify multiple records in a single payload using either INSERT, UPDATE, or DELETE modes. This can be achieved using Batch Payload functionality.

There are two types of Batch operations:

  • Atomic: This mode considers each batch operation as a single unit. It updates the whole batch operation successfully or reverts the entire operation to its initial state if anything in the batch operation fails.

  • Non-Atomic: The operation in this mode varies based on the database and its driver. Generally, it updates all the successfully executed records and throws an exception if anything fails. It does not revert the failed records to its initial state.

Following the steps below, you will be able to set up a sample database, create an integration flow, upload drivers, and data sources required for JDBC receiver adapter. Then, you can create a payload, execute, and benefit from Batch Payload functionality.

Step 1 Choose your Database
โ€”

Based on your requirements, choose a database you wish to work on. JDBC receiver adapters supports more than ten databases. To know more, see JDBC: Supported Databases.

If you’re connecting to on-premise database, then you must validate the connection in the Cloud Connector. For more information, see JDBC: Access Control.

Step 2 Create data source and upload driver
+
Step 3 Connect with Receiver/Database via JDBC adapter
+
Step 4 Create sample database
+
Step 5 Execute Batch Payload
+
Step 6 Atomic Batch operation
+
Step 7 Non-Atomic Batch operation
+
Step 8 Send payload using Groovy Script
+
Step 9 Atomic Batch operation with Groovy Script
+
Step 10 Non-Atomic Batch operation with Groovy Script
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Choose your Database 2. Create data source and upload driver 3. Connect with Receiver/Database via JDBC adapter 4. Create sample database 5. Execute Batch Payload 6. Atomic Batch operation 7. Non-Atomic Batch operation 8. Send payload using Groovy Script 9. Atomic Batch operation with Groovy Script 10. Non-Atomic Batch operation with Groovy Script

Learn more →