Create a Data Mapping Definition with SAP Datasphere as Source
Create a data mapping definition with SAP Datasphere as source.
Prerequisites
To use SAP Datasphere as a source instance, you must create a dedicated destination in the SAP BTP Cockpit, which will let the application know the location of the system you want to extract data from. For more information, see Configure Destinations for SAP Datasphere as Source Instance for Data Mapping.
Context
Procedure
- From the Data Mapping Definitions page, choose the Create button.
- In the General Information section, enter a name and a description.
- Optionally, select a parent definition. For more information, see Create Hierarchies in Data Mapping Definitions.
- Optionally, choose the Runnable from Packages option. For more information, see Specific Mapping File Structure for Jobs Runnable from Packages and Run a Job from Within a Package.
- In the Source Definition section, select the Source: SAP Datasphere.
- In the Source Instance Used field, select an instance from the available instances retrieved from the SAP BTP Cockpit.
- In the Space field, select the space you want to connect to.
A space is a workspace that holds data models and views.
- In the Asset field, select the asset you want to use.
An asset is a specific data set or object inside a space.
- In the Source Filters section, you can choose to apply filters on several dimensions.
- In the Field column, select a dimension for which you want to restrict values.
- In the Operator column, first select Include or Exclude, then a comparison operator such as Equal to or Greater than.
- In the Value column, specify a or several values depending on the source field selected.
- In the Mapping File section, select the mapping file you have created.
If the mapping file contains errors, they are displayed in the Errors section.
You can download and correct your mapping file in Excel by choosing the Download Mapping File link. After you have corrected the errors, upload the mapping file once again. - In the Import Options section, select the different import options you want to apply. For more information, see Import Options.
- In the Traceability section, choose if you want to force generate a traceability log file for each job run, or upon request when the job is run. For more information, see Force Generate Traceability Logs.
- Choose Include Additional Warnings for Mapping Rules to add entries to the traceability log for intermediate rows that are rejected in subsequent mapping rule sets. This information helps you understand the execution flow of complex mappings and identify the rule conditions that excluded a row.
- Choose Including Mapping File Sheets if you want the different mapping file sheets of your data mapping file to be displayed in the traceability log. For more information, see Traceability Logs.
- In the Access Restrictions section, you can optionally choose to restrict access to your mapping definition by selecting specific dimension values. Once the restriction set, the application compares these dimension values to the global parameters of the user. If the global parameters of the user are included in the access restrictions of the definition, the definition is visible to the user. For more information, see Define Access Restrictions.
- Choose Create.
Next Steps
.
Related Information
updated content from UAi Workspace in Markdown
# Create a Data Mapping Definition with SAP Datasphere as Source
Create a data mapping definition with SAP Datasphere as source.
## Prerequisites
To use SAP Datasphere as a source instance, you must create a dedicated destination in the SAP BTP Cockpit, which will let the application know the location of the system you want to extract data from. For more information, see [Configure Destinations for SAP Datasphere as Source Instance for Data Mapping](dd5defa5cb4840d79c80120a8284e500.html "Configure a dedicated destination to use SAP Datasphere as a source instance for Data Mapping.").
## Context
> **Tip**
>
> For performance optimization purposes, we recommend you:
>
> - Specify source filter fields when you create the data mapping definition in order to limit the number of rows to be processed.
> - Delete all unused columns from your mapping file.
## Procedure
1. From the **Data Mapping Definitions** page, choose the **Create** button.
2. In the **General Information** section, enter a name and a description.
> **Note**
>
> If you want to add a description in another language, you must display SAP Group Reporting Data Collection in this language, by modifying the **Language & Region** setting under **User** > **Settings**, then enter the description and save the definition. If you haven't added any translations yet, the English description is used by default when displaying SAP Group Reporting Data Collection in another language.
3. Optionally, select a parent definition. For more information, see [Create Hierarchies in Data Mapping Definitions](c1300f57409b46429016bd76058722bd.html "In the list of data mapping definitions, you can create one-level hierarchies consisting in parent and child definitions. A child definition inherits the settings of its parent.").
4. Optionally, choose the **Runnable from Packages** option. For more information, see [Specific Mapping File Structure for Jobs Runnable from Packages](a1cdebfdc31049aba62d93363f9d91ed.html "When creating a data mapping definition, you can choose if you want to run its corresponding job from within a package, by selecting the Runnable from Packages option.") and [Run a Job from Within a Package](348b9f856ecb4b2dbfb9de04b983907c.html "Run a job from within a package to import data from different source types. When you run the job from the package, the document types defined in the package apply. They replace the default document types set in the mapping job.").
5. In the **Source Definition** section, select the **Source**: **SAP Datasphere**.
6. In the **Source Instance Used** field, select an instance from the available instances retrieved from the SAP BTP Cockpit.
7. In the **Space** field, select the space you want to connect to.
A space is a workspace that holds data models and views.
8. In the **Asset** field, select the asset you want to use.
An asset is a specific data set or object inside a space.
> **Note**
>
> You can't connect directly to an SAP Datasphere view, but to an analytic model on top of the view. For more information, see the [SAP Datasphere](https://help.sap.com/docs/SAP_DATASPHERE "https://help.sap.com/docs/SAP_DATASPHERE") documentation.
9. In the **Source Filters** section, you can choose to apply filters on several dimensions.
> **Note**
>
> In Data Mapping apps, the "#" sign doesn't mean "empty". When you create a data mapping definition, if you enter "#" as a source filter field value, only rows that contain the value "#"are retrieved. If you leave the source filter field value empty, then only the rows with empty values in this field are retrieved.
> **Restriction**
>
> No value help is available for this connection type. You must enter your source filter values manually.
1. In the **Field** column, select a dimension for which you want to restrict values.
2. In the **Operator** column, first select **Include** or **Exclude**, then a comparison operator such as **Equal to** or **Greater than**.
> **Restriction**
>
> **Like** operators are not supported for SAP Datasphere as source.
> **Tip**
>
> The **In** operator allows you to select multiple field values for the same source filter.
3. In the **Value** column, specify a or several values depending on the source field selected.
> **Note**
>
> You can add as many filters as you want using the **Add** button.
10. In the **Mapping File** section, select the mapping file you have created.
If the mapping file contains errors, they are displayed in the **Errors** section.
You can download and correct your mapping file in Excel by choosing the **Download Mapping File** link. After you have corrected the errors, upload the mapping file once again.
> **Caution**
>
> Your mapping file can't exceed the size of 6 MB.
11. In the **Import Options** section, select the different import options you want to apply. For more information, see [Import Options](0241fe15683f46bba914f5345b380d5a.html "Different import options are available when you create a data mapping definition or job.").
12. In the **Traceability** section, choose if you want to force generate a traceability log file for each job run, or upon request when the job is run. For more information, see [Force Generate Traceability Logs](70a94ba8ad724643b865774a25ed3f55.html "If you want to make sure that a traceability log is generated for each job run, for example to allow for seamless monitoring or to facilitate auditability, you can force generate traceability logs by configuring the data mapping definition as follows.").
13. Select **Include Additional Warnings for Mapping Rules** to add entries to the traceability log for intermediate rows that are rejected in subsequent mapping rule sets. This information helps you understand the execution flow of complex mappings and identify the rule conditions that excluded a row.
14. Choose **Including Mapping File Sheets** if you want the different mapping file sheets of your data mapping file to be displayed in the traceability log. For more information, see [Traceability Logs](d051525d706c47ae8fd86543991f2c2e.html "If you want to analyze mapping log and import log entries more deeply, you can use the Traceability Log feature.").
15. In the **Access Restrictions** section, you can optionally choose to restrict access to your mapping definition by selecting specific dimension values. Once the restriction set, the application compares these dimension values to the global parameters of the user. If the global parameters of the user are included in the access restrictions of the definition, the definition is visible to the user. For more information, see [Define Access Restrictions](dc0e2be31ab349248b2e53884d1792f3.html "When creating your data mapping definition, you can optionally add access restrictions to this definition.").
> **Note**
>
> You can select several dimension values or leave some of the fields empty.
16. Choose **Create**.
## Next Steps
For more information, you can consult the following blog post on the SAP Community: [https://community.sap.com/t5/financial-management-blog-posts-by-sap/accelerating-financial-close-integrating-sap-datasphere-with-sap-group/ba-p/14288032](/docs/link-disclaimer?site=https%3A%2F%2Fcommunity.sap.com%2Ft5%2Ffinancial-management-blog-posts-by-sap%2Faccelerating-financial-close-integrating-sap-datasphere-with-sap-group%2Fba-p%2F14288032 "https://community.sap.com/t5/financial-management-blog-posts-by-sap/accelerating-financial-close-integrating-sap-datasphere-with-sap-group/ba-p/14288032").
## Related Information
[Configure Destinations for SAP Datasphere as Source Instance for Data Mapping](dd5defa5cb4840d79c80120a8284e500.html "Configure a dedicated destination to use SAP Datasphere as a source instance for Data Mapping.")
[Structure of the Mapping File](bfbe70aca793404bb2b08f8b8923e27e.html "A mapping file provides the mapping between input and output dimensions, in a Microsoft Excel file (.xlsx).")
[Syntax of Filters for Numerical Columns](ebbd30694d0c4170841d12923eb4ffda.html)
[Syntax of Functions](e01de877f8ea488d9aa7496fba0c0f85.html)
[Syntax of Rule Hierarchy - Mapping Levels](e80635d90c7440eda607020d6484ee4e.html "You can establish a rule hierarchy, the order in which rules are applied, when defining the mapping.")
[Define Access Restrictions](dc0e2be31ab349248b2e53884d1792f3.html "When creating your data mapping definition, you can optionally add access restrictions to this definition.")
[Create Hierarchies in Data Mapping Definitions](c1300f57409b46429016bd76058722bd.html "In the list of data mapping definitions, you can create one-level hierarchies consisting in parent and child definitions. A child definition inherits the settings of its parent.")
[Import Options](0241fe15683f46bba914f5345b380d5a.html "Different import options are available when you create a data mapping definition or job.")