bw_preview_datasource
Fetch live sample rows from a DataSource and view them as a formatted table with field name headers.
Instructions
Fetch a live data preview / sample rows from a DataSource (RSDS) — reads the first N rows directly from the source system and returns them as a formatted table with field names as column headers. Use this when the user wants to see, sample, preview, or inspect the actual data behind a DataSource (e.g. "show me data from DS_X", "preview 50 rows", "what does DS_X look like"). For data from an aDSO, CompositeProvider, or BEx query, use bw_query_data instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasource_name | Yes | DataSource name (e.g. "DS_NAME"). Case-insensitive. | |
| source_system | Yes | Logical source system name (e.g. "LSYS_NAME"). Case-insensitive. | |
| records | No | Number of records to fetch (default: 20). SAP returns at most this many rows. |