8/16/2019 DOC-65912 - Extend OData Services for My Travel & Expenses Fiori App - Part 1 http://slidepdf.com/reader/full/doc-65912-extend-odata-services-for-my-travel-expenses-fiori-app-part 1/14 Generated by Jive on 2016-05-31+02:00 1 Extend oData Services for My Travel & Expenses Fiori App - Part 1 1 Business Requirement - Why we need to extend standard app ? The fields delivered in standard SAP Fiori app for "My Travel & Expenses" does not suffice the business needs. 1. Changes required 1. Document No required as input on screen so that user can enter original receipt no to it and save the same 2. No of Employee is required for meal expenses so that user can enter no of employee attending the business dinner/lunch outing. Adding names of each employee is difficult job. And when you have around 150 attendees then it's kind of waste of effort. 3. %Lobby is also needed on the screen for input 4. Per diem region has to be hidden, it's no longer required 1.1 Extend Fiori App "My Travel and Expenses" Current Situation Target Situation 1. Document no. is not available in the standard screen of expenses types in My Travel & Expenses of SAP Fiori
14
Embed
DOC-65912 - Extend OData Services for My Travel & Expenses Fiori App - Part 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
8/16/2019 DOC-65912 - Extend OData Services for My Travel & Expenses Fiori App - Part 1
Extend oData Services for My Travel & Expenses Fiori App - Part 1
Generated by Jive on 2016-05-31+02:00
3
2 Fiori app extension has two part
2.1 Extending front-end of Fiori App (UI Extensibility)
1. Screen and section to which field has to be added is identified and extended.2. Entity name which will be used to map data to new fields is also identified
2.2 Extending oData service on backend system
Front end developers confirm the entities which has to be extended and also the respective new custom field
names.
For this scenario entity name provided by frontend developer is "EXPENSES"
Fields to be added are “DocumentNo”, “NoOfEmployees” & “LobbyPercentage”
2.2.1 oData service is extended using below step
1. Identify the oData service name for standard app
2. Identify the corresponding ABAP DDIC structures for entities to be extended3. Create custom gateway project & Redefine the standard oData service
4. Add custom field to entities confirmed for extension5. Implement BADI for fetching and manipulating new Data
6. Regenerate & Register the new service
3 Identify oData Service name of standard Fiori
app
1. Go To Fiori Reference App Library
2. Search for My Travel & Expenses App (Direct Link for My Travel & Expenses Fiori App)3. Click on tab "Implementation Information"4. Navigate to Configuration
Extend oData Services for My Travel & Expenses Fiori App - Part 1
Generated by Jive on 2016-05-31+02:00
5
3. Enter the project name and execute (In general if we remove _SRV from technical service or oDataservive then we will get name of standard gateway project or you can do search like PAOC_TRV* afterremoving _SRV from oData service name)
4. Navigate to Data Model->Entity Types and get structure name for EXPENSE entity