This usecase aims to support technicians and on-site operators in retrieving the list of products assigned to a maintenance operations of a task list. In particular, the scenario covers the definition of custom CDS-views, the creation of a corresponding UI service and - finally - the build of a lean Fiori application to visualize the data.
The scenario was created to showcase how to enhance the functionalities offered by SAP S/4HANA Cloud Public Edition following the so called "Developer/On-Stack" extensibility model. The technical artefacts have been developed using the ABAP RESTful Application Programming Model (RAP) and SAP Fiori tools for the UI and, in this particular example, we decided to leverage the ABAP stack offered by SAP S/4HANA to deploy the content.
Using such a custom-developed app, a user get access to the list of products involved in the maintenance operations and sub-operations.
Note
- In this sample, data are retrieved from an SAP S/4HANA Cloud Public Edition.
- Lack of standard reports that allow customers to query for and to find which products are required to perform a certain operation in a maintenance task list.
- Customers are expected to develop their own reports using standard CDS views like I_MAINTTASKLISTOPMATERIAL.
- Facilitates the identification of products involved in maintenance operations.
- Extends the functionalities of SAP S/4HANA Cloud Public Edition, maintaining the core clean.
- Access to live data from SAP S/4HANA leveraging standard CDS views.
Download and install the Eclipse IDE and the ABAP Development Tools (ADT) plugin; a complete step-by-step guide covering the process is available here
Install the abapGit plugin as explained here.
The following paragraphs explain how the delivered content can be download, deployed and enabled in your development environment. The content can be cloned directly from this Git repository as briefly explained in paragraph 1️⃣. To complete the setup of this scenario, please follow the instructions carefully.
Note
To setup this scenario, we assume a basic technical knowledge of SAP ABAP RESTful Application Programming Model (RAP). A detailed explanation of the definition, the purpose and the deployment of the various artefacts is the out of scope for this document.
- Launch Eclipse/ADT and open the abapGit Repositories view clicking "Window > Show View > Other …"; expand the category ABAP and select abapGit Repositories and finally click Open.
- Click the clone button (the green "+" button) in the abapGit Repositories view.
- Enter the URL of the Git repository and press Next.
- Enter the URL of the Git repository and press Next.
- Enter your GitHub username and password/token
- Select the desired Branch and Package, where the Git repository should be cloned. (If you have no packages, you need to create a new one before) and click Next.
- Select a transport request and click Finish.
- Open the abapGit Repositories tab, right-click on your package and click pull to import the content.
- The imported sources should be now available under your package (see the screenshot below as a reference)
- In the Project Explorer view, expand the node Business Services > Service Bindings and double click on the existing binding.
- Click Publish to locally publish the service.
- Once the service is published, select the entity MaintTaskListOpMat and finally click on Preview to test the Fiori application
Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.