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

Use an Invoice Object Recommendation (IOR) Dataset Schema to Upload Training Data to Data Attribute Recommendation

Upload a dataset to your Data Attribute Recommendation service instance to afterwards be able to train your machine learning model using the Invoice Object Recommendation (IOR) business blueprint.

Overview

🎓 beginner 15 min. Machine LearningBeginnerArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesData Attribute RecommendationFree Tier

You will learn

  • How to authorize your client to communicate with your Data Attribute Recommendation service instance
  • How to do upload data to your Data Attribute Recommendation service instance to train a machine learning model
Juliana Morais J Juliana Morais December 11, 2023
Created by April 4, 2022
Contributors

Prerequisites

Steps

Intro

To try out Data Attribute Recommendation, the first step is to upload data that will be used to train a machine learning model. For more information, see Data Attribute Recommendation help portal documentation. For further definition of specific terms, see Concepts.

Business Use Case: Use the Invoice Object Recommendation (IOR) business blueprint to assign G/L (general ledger) accounts, cost objects and profitability analysis (CO-PA) dimension values to incoming invoices without a purchase order reference. In this tutorial, you’ll train your own machine learning model to get recommendations for G/L (general ledger) accounts. The basic steps include uploading historical invoice data for training, training the machine learning model and, finally, asking the model to make financial object predictions for new incoming invoices.

To better understand the Invoice Object Recommendation (IOR) business blueprint from the Data Attribute Recommendation service, take a look at the following blog posts:

See also Free Tier Option Technical Constraints.


Step 1 Authorize Swagger UI

You’ll use Swagger UI, via any web browser, to call the Data Attribute Recommendation APIs. Swagger UI allows developers to effortlessly interact and try out every single operation an API exposes for easy consumption. For more information, see Swagger UI.

In the service key you created for Data Attribute Recommendation in the previous tutorial: Use Free Tier to Set Up Account for Data Attribute Recommendation and Get Service Key or Use Trial to Set Up Account for Data Attribute Recommendation and Get Service Key, you find a section called swagger (as highlighted in the image below) with three entries, called dm (data manager), mm (model manager) and inference. You’ll use all three Swagger UIs throughout the tutorials.

Service Key
Service Key

For this tutorial, copy the URL of the Swagger UI for dm and open it in a browser tab.

After finishing this tutorial, keep the Swagger UI for dm open to perform the clean up tasks in Use the Invoice Object Recommendation (IOR) Business Blueprint to Predict Financial Objects.

  1. To be able to use the Swagger UI endpoints, you need to authorize yourself. In the top right corner, click Authorize.

    Authorize
    Authorize

  2. Get the access_token value created in the previous tutorial: Get OAuth Access Token for Data Attribute Recommendation Using Any Web Browser, then add Bearer (with capitalized “B”) in front of it, and enter in the Value field.

    Code
    Bearer <access_token>
  3. Click Authorize and then click Close.

    Authorize
    Authorize

Step 2 Create dataset schema
+
Step 3 Create dataset
+
Step 4 Upload data
+
Step 5 Check dataset status
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Authorize Swagger UI 2. Create dataset schema 3. Create dataset 4. Upload data 5. Check dataset status

Learn more →