0% found this document useful (0 votes)
40 views13 pages

SAP RAP Pop-Up Usage

This document outlines the steps to implement a pop-up in SAP RAP (Restful Application Programming) for user input collection. It details the development process including creating a package, database table, generating CDS services, and adding UI annotations. The solution aims to enhance the efficiency of the development process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views13 pages

SAP RAP Pop-Up Usage

This document outlines the steps to implement a pop-up in SAP RAP (Restful Application Programming) for user input collection. It details the development process including creating a package, database table, generating CDS services, and adding UI annotations. The solution aims to enhance the efficiency of the development process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

SAP RAP - Pop-Up

Berkay ALIŞKAN

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 1 von 13 Berkay ALIŞKAN
Introduction
In SAP RAP (Restful Application Programming), we sometimes need to get extra information from the user
for certain actions. A pop-up is a common way to collect this data.
In this document, I will explain step by step how to show a pop-up in an SAP RAP screen to get user input.
This simple and reusable solution will help make your development process easier and more efficient.

Development Steps
Step 1: Create Package in eclipse ADT environment

Step 2: Create Database Table

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 2 von 13 Berkay ALIŞKAN
Step 3: Generate CDS Services ( Others objects ) using the wizard

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 3 von 13 Berkay ALIŞKAN
Step 4: Create an abstract entity for Pop Up Fields

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 4 von 13 Berkay ALIŞKAN
Step 5: Add Action in root entity Behaviour Definition

Ctrl + 1: ↓

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 5 von 13 Berkay ALIŞKAN
Class and Behaviour Definition are activated with multiple activation,

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 6 von 13 Berkay ALIŞKAN
Step 6: Refer to the action in Consumption Behaviour definition

Step 7: Work on methods in the “Local Types” section of the class

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 7 von 13 Berkay ALIŞKAN
Step 7: Add UI annotations for actions
- Go to Metadata Extension

@UI: { lineItem : [
{ type: #FOR_ACTION, dataAction: 'accept' , label: 'Accept' },
{ type: #FOR_ACTION, dataAction: 'reject' , label: 'Reject' }
]
}

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 8 von 13 Berkay ALIŞKAN
Step 8: Service Publish

TEST
Open Service ↓

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 9 von 13 Berkay ALIŞKAN
SAP RAP - Pop-Up
Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 10 von 13 Berkay ALIŞKAN
SAP RAP - Pop-Up
Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 11 von 13 Berkay ALIŞKAN
Debug in method of reject ↓

SAP RAP - Pop-Up


Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 12 von 13 Berkay ALIŞKAN
SAP RAP - Pop-Up
Tuesday, 18 March 2025 www.nttdata-solutions.com
Page 13 von 13 Berkay ALIŞKAN

You might also like