Skip to content

This sample application allows to retrieve and check the usage of components associated to one or more Maintenance Task List operations. Data are fetched from S/4HANA Public Cloud and visualized in a simple Fiori app. The app is an example on on-stack extensibility for S/4HANA Public Cloud, in which data are fetched through a CDS view and then ...

License

Notifications You must be signed in to change notification settings

SAP-samples/abap-platform-rap-products-for-maintenance-operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SAP Build Extensibility Scenario

Asset Management: Display Products for Maintenance Task List Operations

Overview

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.

Business Problem

  • 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.

Key Features

  • 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.

Prerequisites

Setup of the development environment - Eclipse and SAP ADT

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

Installation of abapGit

Install the abapGit plugin as explained here.

Content Download and Installation

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.

1️⃣ Clone Git repository into your ABAP Environment

  • 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)

image

2️⃣ Publish the OData V4 UI service

  • 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.

image

3️⃣ Test the autogenerated UI

  • Once the service is published, select the entity MaintTaskListOpMat and finally click on Preview to test the Fiori application

image

License

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.

REUSE status

About

This sample application allows to retrieve and check the usage of components associated to one or more Maintenance Task List operations. Data are fetched from S/4HANA Public Cloud and visualized in a simple Fiori app. The app is an example on on-stack extensibility for S/4HANA Public Cloud, in which data are fetched through a CDS view and then ...

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •