Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

SAP FIORI - ABAP

AGENDA

S.No Content Page


1 Creation of Table 2
2 Creation of Function Modules 3
3 Creation of OData Service 5
3.1 Creation of Data Model 5
3.2 Service Implementation 6
3.3 Registration of Service 8
4 Consuming OData Service SAP UI5 Application 10
5 Deploy to ABAP Repository 12
6 Deploy to HANA Cloud Platform 12
7 Register with Fiori Launchpad 13
SAP FIORI - ABAP
1) Creation of Table
 Create a transparent table using se11 which is going to act as a back end table and function module for
the Create, Read, Update and Delete (CRUD) operation to be used in this OData creation.
 Log in SAP GUI and use T-CODE SE11 and Create a transparent table
SAP FIORI - ABAP
2) Create Function Modules - as Remote-Enabled Function Module
Create Function Modules for Create, Read, Update and Delete operation using t-code se37.

 Function Module for Create Operation

 Function Module for Read Operation


SAP FIORI - ABAP
 Function Module for Update Operation

 Function Module for Delete Operation


SAP FIORI - ABAP
3) Creating OData Service
The Data model is used to describe the OData Services which contains Entity, Properties, and EntitySet.

1) Go to Transaction Code: SEGW


2) Create a Project
3.1) Creating Data Model
 Import ABAP table in Data Model

 Give the Entity, Structure and the EntitySet create option as below.
 We are going to use the already created employee table structure here.
 Select all the Data source parameters and press Next.Press Finish to complete the Data
Model reation.
 The Entity and EntitySet are created now, and we can see the entity type has been created
with reference to the given ABAP Structure.

 The properties created now as below.


SAP FIORI - ABAP
3.2) Service Implementation
 Go to Service Implementation, select the Create Operation and go to Map to Data Source.

 Select the Function Module for Create Option and press Continue, then the below window will
be open with the Data Source Parameter and the Data Mapping has to be done as follows.
 Also we have an option “Propose Mapping”, which does the data mapping automatically

CREATE

 Drag and drop the Data Source Parameter as shown below for the Mapping Operation.

 Similarly, we have defined the mapping for Delete, GetEntity, GetEntitySet and Update
operation using the Function Modules we have already created.

Delete

Get Entity

 We have added one more Property, Empid to fetch the records from the backend based on the
Key.
SAP FIORI - ABAP
GetEntity Set

 We have added one more Property, Empid to fetch the records from the backend based on the
Key.
Update

 Once the mapping is completed, generate run time objects ( Ctrl+F3 ) and go to your Data
Provider Class(DPC) to find the ABAP coding has been generated automatically.

 Once the above all activities are completed, we have to register the OData service to consume
them.

3.3) Registration of Service


 Go to gateway and select the Gateway service. You will find the OData service is yet to
be registered as the Registration.

 Select the Service and press the Register button to complete the Registration of
the OData service and press yes to continue.
SAP FIORI - ABAP

 Select the package assignment as local object and continue the process.
SAP FIORI - ABAP

 Select Call browser and check the xml response for your OData Service
SAP FIORI - ABAP
4) Consuming OData Service SAP UI5 Application
 Login to web IDE and choose New Project from template

 Choose anyone sample standard template for Application


SAP FIORI - ABAP
 Give project name then you see the following screen

 From Service Catalog Choose your ABAP Server name and Choose your OData URL for
further process

 Give Details required in field and give finish.


 You can see you project as been generated in Web IDE Workspace
SAP FIORI - ABAP
Deploy to SAP ABAP Repository
 Deploy to SAP ABAP Repository to generate BSP application and ICF service in server.
 Right click your project  Deploy  SAP ABAP Repository

 Once Deploying Process is over you can check in BSP application in ABAP server using T-
Code SE80 and SICF for ICF service.

Deploy to HANA CLOUD PLATFORM


 Deploy to HANA CLOUD PLATFORM to Register Fiori Portal in Cloud
 Right click your project  Deploy Deploy to hana cloud platform
SAP FIORI - ABAP
Register to SAP Fiori Launch pad
 Project  Right Click Deploy  Register to SAP Fiori Launchpad
 Tile Configuration

 Login to fiori launchpad

You might also like