Skip to content

Data Source Configuration

Data Source Management is an application that enables SAP data sources to be used in AI Agent conversations. It supports the configuration of system destinations, discovery of available data sources, management of their replication for Retrieval-Augmented Generation (RAG), and assignment of selected sources to AI Agents.

When properly configured, structured business data from SAP systems can be securely discovered, optionally replicated, and made available to AI Agents at runtime.

The overall process consists of the following steps:

  1. Register SAP data sources
  2. Create a destination with data source discovery enabled
  3. Discover available data sources
  4. Manage discovered data sources and replication settings
  5. Assign data sources to AI Agents

Before data sources can be discovered, they must be registered in the SAP system.

To enable data source discovery:

  • Data sources must be registered in table /SKYBFR/YAICDSNM
  • Only registered data sources can be discovered by the system

Navigate to the AI Agent group and open the Destination Management application.

Screenshot

Click the Add (+) button to create a new destination.

Screenshot

Provide the required connection and authentication details.

Enable Data Source Discovery for the destination.

Save the destination.

Once the destination is created:

  • The system automatically runs data source discovery.
  • The destination overview displays: last Run timestamp and number of discovered data sources
  • A manual refresh option is available to trigger discovery again.

From the destination overview, you can navigate directly to the Data Source Management application using the redirection button.

Screenshot

Step 3. Registering Data Sources for Discovery

Section titled “Step 3. Registering Data Sources for Discovery”

This section describes how to register existing SAP data sources so that they can be discovered and later used by AI agents via a configured destination.
The registration process does not create new data sources; it only makes existing objects available for discovery.

  1. The data source to be registered already exists and is active in the SAP system
  2. The user has authorization for: Transaction SM30 and maintenance access to table /SKYBFR/YAICDSNM
  3. A destination is configured for Data Source discovery.

Execute transaction SM30.

Screenshot

Enter table name /SKYBFR/YAICDSNM and choose Maintain.

Screenshot

Choose New Entries.

Screenshot

Enter the required information:

Object Name: Technical name of the existing object (for example, a CDS view or service name).
Description: Short functional description of the data source.

Save the entry.

Screenshot

  • If the specified data source exists in the system, it is discovered on the configured destination.
  • The data source becomes available for the later use by AI agents.
  • If the data source does not exist, it is not discovered.

Step 4. Open Data Source Management Application

Section titled “Step 4. Open Data Source Management Application”

To manage discovered data sources, navigate to the AI Agent group and open the Data Source Management application.

Screenshot

Screenshot

The main page displays all discovered data sources across destinations and includes the following elements:

1. Destination Name
Displays the destination along with the number of data sources discovered for it.

2. Run Data Source Discovery
Manually triggers data source discovery for the selected destination.

3. Switch Destination
Allows switching between different configured destinations.

4. Search, Filter, and Sort Area
Enables searching, filtering, and sorting of data sources.

6. Data Source List
Each data source entry shows:

  • Name
  • Type (Table, CDS, View, Other)
  • Description
  • Replication status (On / Off)
  • For a data source with replication on, the status of its last replication run (see Replication status in the data source list)
  • Option to directly assign the data source to an AI Agent

When the replication job does not run, a message above the list says so (see When the replication job does not run).

Selecting a data source opens the Data Source Details view, which provides detailed technical and replication information.

Screenshot

Type: (Table, CDS, View, Other)

Description: data source description for SAP system

Replication status (enabled or disabled)

Add to AI Agent: option to add data source to the selected AI Agent

The Data Scope section limits how many records of a data source are made available to AI Agents. It is shown for every data source, directly above Replication Configuration.

Without a limit, every full replication run reads the whole data source. A limit is useful for large tables, where a full run takes long and vectorises far more data than an agent needs.

The Data Scope section of a data source with Max Records set to 30, shown above the Replication Configuration section

Max Records is the largest number of records that replication loads for this data source. Leave the field empty for no limit; the section then shows Unlimited.

Records are selected in key order, so the same limit selects the same records on every run.

Step 1. Open the data source and choose Edit in the Data Scope section.

Step 2. Enter the number of records in Max Records, or clear the field to remove the limit, then choose Save. The field takes a whole number of up to nine digits.

The Edit Data Scope dialog with a value in Max Records and the information popover that describes the field

An entry that is not a whole number greater than 0 shows an error on the field, and Save is not available until you correct it.

The Edit Data Scope dialog showing the error Enter a whole number greater than 0, or leave the field empty for no limit

If a replication run stops at the limit, a Record limit reached tag appears under Last Replication Run. Choose the tag for the explanation and what to do about it.

The Replication Configuration section with a Record limit reached tag and the explanation it opens

The records beyond the limit are not replicated, so they are not available to AI Agents, and Delta runs do not add them later. To make more records available, increase Max Records. With Delta replication, run Reinitialize Delta afterwards, so that the higher limit is applied in a new full load.

In the Replication Log, a run that stopped at the limit shows an orange icon in front of the number in Records. The run itself still ends as Completed: the records it replicated are complete and in use.

The Replication Log with an orange icon in front of the number of records of the runs that stopped at the record limit

The replication section allows configuring and monitoring data replication for the selected data source.

Replication is required for data sources that should be stored and used by Retrieval-Augmented Generation (RAG).

To enable replication:

Switch the Replication toggle to On and select the Replication Type:

  • Full Replication – the complete data set is replicated
  • Delta Replication – only changed data is replicated (if supported by the data source)

When you save, the data source is queued, and its run starts with the next run of the replication job. Last Replication Run shows how the run goes (see Monitoring Replication).

Full replication synchronizes the entire data set from the source system during each replication run. No change detection is applied.

The Replication Configuration section of a data source with Full replication, with the Replication switch and the Run Replication and Edit buttons marked

Type: Specifies the replication mode for the data source

Frequency: Defines how often replication is executed.

Last Replication Run: Shows when the current or last run started, and its status. See Last Replication Run.

Run Replication button: Queues a run for the selected data source. The run starts with the next run of the replication job. The button is not available while a run is queued or active.

Edit button: Allows changing replication settings such as type and frequency.

View Replication Logs: Opens the runs of the data source. See Replication Log.

This approach ensures continuous data availability and prevents gaps during the replication process.

Delta replication enables incremental data transfer by detecting changes since the last replication run.

The Replication Configuration section of a data source with Delta replication and its date field, with the Replication switch and the Reinitialize Delta, Run Replication and Edit buttons marked

  • Delta replication is only available for data sources that expose a suitable date field.
  • The date field must represent the last change timestamp of the record.

Without a date field, incremental change detection is not possible.

Preparing Data Sources for Delta Replication

Section titled “Preparing Data Sources for Delta Replication”

If delta replication is required, ensure that the data source exposes an appropriate date field:

  • Tables: Create a new Data Source that includes or joins a relevant date column.
  • Views: Extend or adjust the view to expose a date field suitable for change tracking.
  • CDS Views: Add or expose a date field or parameter that reflects the last modification timestamp.

When configuring delta replication, select one or more Date Fields that will be used for delta detection.
Ensure that the selected fields accurately reflect changes made to the underlying data.

After delta replication is configured, the Reinitialize Delta option becomes available.

The Replication Configuration section with the Reinitialize Delta button and the View Replication Logs icon marked

Reinitializing delta:

  • Resets delta tracking for the data source
  • Causes all data to be fully replicated again during the next replication run

This option is typically used after:

  • Structural changes to the data source
  • Corrections to delta field configuration
  • Data inconsistencies

Screenshot

View Replication Logs: Opens the runs of the data source. See Replication Log.

Filters narrow a data source to the records that matter. Only records that match the filters are replicated and made available to AI Agents, so an agent can work with the orders of one sales organization instead of the whole table.

Filters belong to the replication configuration: you set them when you switch replication on, and change them with Edit in the Replication Configuration section. Filters decide what replication loads, so a data source that is read directly, without replication, is not filtered.

Step 1. In the Replication Configuration section choose Edit, or switch Replication on to configure it for the first time.

Step 2. In the Filters block choose Add Filter, and pick the fields to filter in the Select Fields dialog. Only fields the data source exposes are offered.

Step 3. For each field, open its Conditions and define them. A condition is a guided row with an operator and a value in the format of the field; there is no free-text SQL. A condition can also exclude records, or test a field for <empty>.

Step 4. Choose Save.

The Add Replication Configuration dialog with the Schedule and Filters blocks, two fields with conditions, and the warning about Delta replication

A filter belongs to one field. When a filter has several conditions, a record has to match at least one of them; when several fields have filters, a record has to match all of them.

Clear Filters removes every filter at once; the delete icon of a row removes the filter of that field. With no filters, the section shows None. All records are in scope.

A changed filter applies from the next replication run. Records already replicated are not filtered again until that run.

The section shows the filters that are saved, under Applied Filters. If replication has not run since you changed them, they are not yet the filters the replicated data was selected with.

  • The filters are too long to be saved. Remove some conditions. The filters do not fit the space stored with the data source. Use ranges or patterns instead of long lists of single values.
  • Invalid Condition Value. The value does not match the format of the field. Enter it as the field stores it, for example a date in the field’s own format.
  • Custom condition. A condition saved earlier that cannot be shown as filter rows. It stays in use until you add a filter, which replaces it.

Filters decide which records an AI Agent can see; they are not an authorization check. To restrict records by the organizational units a user is authorized for, see Organizational Authorization for Data Sources.

Data Source Management shows what a replication run is doing while it works, and keeps the result of every run: in Last Replication Run on the data source, in the Replication Log, and as an icon in the data source list. A run counts as Completed only when its data is vectorized and available to AI Agents.

Last Replication Run in the Replication Configuration section shows when the current or last run started, and its status:

Status What you see
Queued The run waits for the replication job, and you see when it starts (see When a queued run starts).
Reading The run reads the records from SAP in batches of 3000, and shows how many it has read, such as 6 000 records read. With Max Records set, it also shows the maximum: 6 000 of at most 10 000 records read.
Vectorizing The RAG service vectorizes the records. A progress bar shows how much is done, such as 45% vectorized.
Completed The data is vectorized and available to AI Agents. You see the number of records and how long the run took, such as 974 records in 1 min 30 s.
Failed A short summary of what failed. Choose it for the details (see Failed runs).

The Replication Configuration section of a data source with Last Replication Run in the status Vectorizing and its progress bar, and Run Replication unavailable while the run is active

While a run is queued or active and the data source is open, Last Replication Run and an open Replication Log update by themselves about every 5 seconds. When no run is queued or active, nothing updates by itself; the refresh button (Refresh Replication Status) reads the current state at once.

A run is queued when you choose Run Replication or Reinitialize Delta, or switch replication on. The replication job starts queued runs the next time it runs, on its schedule in the Job Scheduler. Queued shows when that is, for example Starts with the next replication job run at 14:32. The time is in UTC.

While the replication job is not set up, or its schedule is inactive, queued runs do not start. Queued then shows Does not start: the replication job is not set up or Does not start: the replication job’s schedule is inactive, and the data source list shows a message about it (see When the replication job does not run).

A failed run shows a short summary under Last Replication Run. Choose the summary to open Replication Error. It shows the summary, the Phase the run failed in, Started At, Failed At and the complete Message from SAP, the AI Connector or the RAG service. Copy Message copies the message.

The Replication Error popover of a run that failed while vectorizing, with its summary, phase, times, message and Copy Message

The summary names what failed:

Summary What happened
Reading data from SAP failed SAP, or the connection to SAP, returned an error. The message contains the HTTP status and SAP’s own text.
SAP returned no data SAP answered without data. The data source keeps its previous vectorized data.
SAP did not answer within 10 minutes A call to SAP got no answer.
Sending data to the RAG service failed The records could not be handed over to the RAG service.
The RAG service did not answer within 10 minutes A call to the RAG service got no answer.
Vectorization failed The RAG service could not vectorize the records, for example because it could not reach the embedding model.
The embedding model did not answer within 2 minutes A request to the embedding model got no answer.
Stopped: the replication job stopped responding while … The replication job stopped or restarted while it read from SAP or sent the records to the RAG service.
Stopped: the RAG service stopped responding while vectorizing The RAG service stopped reporting progress.
Interrupted: the RAG service restarted while vectorizing The RAG service restarted during the run.
Another data source with the same name exists for this destination Two data sources of the destination have the same name.
Stopped: the run reported no progress The run stopped before it reported any progress.

A run whose replication job or RAG service stops or restarts ends as Failed within 3 minutes. A run that is slow but still working is not ended, however long it takes.

When you have fixed the cause, choose Run Replication to start a new run.

View Replication Logs, the list icon next to Last Replication Run, opens the Replication Log: the runs of the data source, newest first.

The Replication Log of a data source with the columns Started At, Finished At, Duration, Type, Started By, Records and Status, and a run that is still vectorizing at the top

  • Started At, Finished At and Duration: when the run started and ended, and how long it took.
  • Type: Full or Delta.
  • Started By: Schedule, or the user who chose Run Replication or Reinitialize Delta, or switched replication on again.
  • Records: the records read from SAP. An orange icon in front of the number marks a run that stopped at the record limit (see When a run reaches the limit).
  • Status: Queued, Reading, Vectorizing, Completed or Failed. Choose Vectorizing to see the percentage vectorized, and Failed to see the error details of that run.

Each run keeps its own error, also after later runs.

Replication status in the data source list

Section titled “Replication status in the data source list”

In the data source list, each data source with replication on shows the status of its last run as an icon next to its replication state. Hover over the icon to see the status, such as Last Replication Run: Completed. Choose the icon to see the run: the fields of its Replication Log row, the percentage while it vectorizes, and the error details with Copy Message when it failed.

The data source list filtered by Last Replication Run, with a status icon after each replication switch and the Last Replication Run popover of one data source

The list shows each status as it was when the list was read, and does not update by itself. To follow a run, open the data source.

To find data sources by the status of their last run, choose Filter, then Last Replication Run, select one or more statuses and choose OK.

The filter dialog of the data source list with the statuses of Last Replication Run

The replication job starts the replication runs. It runs in the Job Scheduler, where an administrator sets it up. When it has a problem, and at least one data source has replication on, a message above the data source list says so:

Message What it means
The replication job is not set up. The Job Scheduler has no replication job. No replication runs start until it is created.
The replication job’s schedule is inactive. The job, or its schedule, is not active. No replication runs start until it is activated.
The last replication job run failed: … The last run of the job ended with an error, such as 2 data sources processed, 1 failed. Filter the list by Last Replication Run → Failed to find the data sources that failed.
The replication job’s status is not available: … Data Source Management cannot read the job from the Job Scheduler, for the reason shown. Last Replication Run and the Replication Log still work.

The data source list with the message that the replication job’s schedule is inactive, between the list toolbar and the data sources

The first three messages link to How to set up the replication job, the setup guide for your platform: Job Scheduler Services Creation for SAP HANA XS advanced, or Setting Up Scheduled Sync Jobs in SAP BTP.

The Fields section displays detailed metadata about the structure of the data source.
For each discovered field, the following information is shown in a table:

  • Field
  • Data Element
  • Domain
  • ABAP Type
  • Length / Decimals
  • Short Text
  • Medium Text
  • Long Text
  • Key
  • Lowercase
  • Sign

This information helps assess the structure and suitability of the data source for AI Agent usage.

If the selected data source is a parameterized CDS view, a Parameters section is displayed in the details view.

Screenshot

The parameters table shows the following information:

  • Parameter
  • Data Element
  • Type
  • ABAP Type
  • Length / Decimals

If a data source does not define parameters, this section is not displayed.

You can search, sort and filter this data using the following buttons:

Screenshot

Screenshot

and decide which filds should be visible:

Screenshot

Step 5. Assigning Data Sources to AI Agents

Section titled “Step 5. Assigning Data Sources to AI Agents”

From both the Data Source Management list and the Data Source Details view, data sources can be directly assigned to AI Agents.

On the main application view you can select more than one data source and add them to AI Agent.

Screenshot

Screenshot

You can also enter data source details view and add it directly from there:

Screenshot

When a data source is assigned to an AI Agent, a corresponding tool is automatically added to that agent. The tool is named after the data source and includes information about its replication status.

All such tools are created with the type “datasource”, enabling the AI Agent to access and use the replicated data during runtime.

Screenshot

Step 6. Managing Input and Output Structures on the Tool Level

Section titled “Step 6. Managing Input and Output Structures on the Tool Level”

This section describes how Data Sources and Business Tools are executed by the AI Agent, how data is passed into the tool, how results are returned, and how outputs are stored for later use.

Data Sources and Business Tools follow a common execution model when used by an AI Agent:

  • Input data is passed to the tool
  • The tool is executed
  • Output data is returned in a structured format
  • The result is stored in the AI Agent’s memory and can be reused

While creating new tool select type: datatsource or business and you will be able to establish necessary input and output structures.

Screenshot

Screenshot

Input Structure
Describes the data required to run the tool.

  • For Business Tools, input values are provided by the AI Agent or previous steps. You must provide the input json structure to enable Business tool to be used by MCP server or A2A interface.
  • For Data Sources, input fields are automatically populated based on metadata (for example, table parameters, views, or filters). No manual input mapping is required for metadata-driven data sources.

Output Structure
Defines the format of the data returned by the tool after execution.

  • Data Sources return structured data from tables, views, or queries.
  • Business Tools return execution results, such as document numbers, statuses, or messages.
    The output structure must match the expected schema to ensure proper downstream usage.

Target Memory Parameter
Specifies where the tool output is stored in the AI Agent’s memory.
Stored results can be:

  • Reused by subsequent tools or skills
  • Referenced in prompts and logic
  • Included in responses to the user

Each tool execution can write to a dedicated memory parameter to avoid data conflicts.

NOTES:

  • Data Sources are typically metadata-driven and read-only
  • Business Tools require explicit input and output definitions
  • Correct memory configuration is required for multi-step AI Agent scenarios

Tool view with the information in which tools input and outpot structures are maintained:

Screenshot