Enterprise Resource Planning Blog Posts by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
robyn_hu
Product and Topic Expert
Product and Topic Expert
1,214

SAP key user tools can support end user to create their own cubes, queries and custom measurements. In this blog, we use sales analytics CDS View as example.

Needed Roles:

  • SAP_BR_ANALYTICS_SPECIALIST(Create Customizing Queries)
  • SAP_BR_SALES_MANAGER(Show sales and billing analytics data)

Create Custom Cube

1. Open app "Custom CDS Views" and click "Create".

1.png

 2. Input view name and select the scenario Analytical Cube.

2.png

 3. Add the primary data source, e.g., I_BillingDocumentCube

3.png

 4. If primary data source cannot cover all required value, you can add associate data source. Click "Add" -> "Associated Data Source".

4.png

 5. Select associated data source.

5.png

 6. Click the button "Join Condition" to add join condition if required.

6.png

 

7. Add join condition. E.g., Billingdocument and billingdocumentitem 

7.png

 

8. You can define Parameter Value if parameter is required. After setting is done, check the color from red to blue. Go to tap Elements, click "Add"->"Elements".

8.png

 

9. Add all the elements what we need in the report.

9.png

 10. Go to tap "Elements Properties". During searching each fields, check the selections are correct.

10.png

 

11. Go to tap "Filter", if you need some filter options, e.g., sales organization.

11.png

 

12. All are done, click "Check" and "Preview data".

12.png

 

13. Click button "Publish". Custom CDS View is completed.

13.png

 14. Click tap "Next Steps" and choose button "Custom Analytical Queries".

14.png

 

Create Custom Query based on created custom cube

15. Click "New" to create new query. (App "Custom Analytical Queries"). Add Query Name and Data Source which is created in the last, then click "OK".

15.png

 

16. Filed selection(For example, Tax Amount, Net Value, Sakes Volume Qty, Credit Memos Qty, Sales Volume, Credit Memos, Billing Document etc.,)

16.png

Create Custom Measurements

 17. In section "Display", click "Add"->"Add Converted Measure". If the measurements only have transaction currencies, this function can convert the transaction currency to a fixed currency or be an external input.

17.png

 18. Input Label and Name. Select type "Currency Conversion". Then click "OK".

18.png

 19. Select value help of Target Currency.

19.png

 20. You can select a fixed value.

20.png

 21. You can also select User Input Filters.

21.png

 22. Add Calculated Measure. This function can enable you design your own measurement using existing fields/measurements.

22.png

 23. Input Expression. For example, Amount with Tax = "Net Value" - "Tax Amount", Net Quantity = "Sales Volume Qty" - "Credit Memos Qty".

23.png

 24. In section "Filters", set some filters on dimension if necessary. Preview the content of custom analytical query by click "Preview" button, and you can check the preview data if it is as expected.

24.png

 

25. Input exchange rate type and display currency, then click Go. This query will be previewed in Web Dynpro framework.

25.png

 

26. Click back, page will be back to your custom query. Save draft and click "Publish".

26.png

 27. To save the custom analytical report to your homepage of launchpad, click "Preview" and you can click "Save as Tile".

27.png

28. Input Tile and select a Page. Then you can open this query from your launchpad.

28.png

 

Save report as a Tile

29. If you want to share the custom analytical report to others which means the report can be visible and accessed by authorized users. Open app "View Browser".

29.png

 30.Select the custom analytical query which you created, and click "Create Application". After the application is created, you can see the Application ID available to the custom analytical query.

30.png

 31. Enter Title and Subtitle, then click "OK".

31.png

 

32. Application is created.

32.png

 

33. Click the application ID  link, then a popup dialog will display. Click "View in Catalog" to navigate to app "Custom Catalog Extensions".

33.png

 

34. Add custom analytical query to business catalogs. Click "Add"

 34.png

 35. Search the business catalog.

35.png

 36. Select the business catalogs which you want to  publish, click "Publish"

36.png

 37. When the status is published, the custom analytical report should be available to the users who have been assigned the business catalogs.

37.png

 

38. In app finder, the custom analytical report is displayed in assigned business catalogs. You can add it to pages.

38.png

 39. You can open your custom analytical report from your launchpad.

39.png