Monday 15 March 2021

Spend Insight to Action Scenario with Manage Supplier Line Items Fiori App

This blog explains how to create a custom copy of the app with with Status All Items selected by default.

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

What it takes is a few of simple steps:

1. Download Manage Supplier Line Items app source code

Use /UI5/UI5_REPOSITORY_LOAD program to download FIN_VEN_LITS SAPUI5 app

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

2. Download parent view controller of the app

Run standard Manage Supplier Line Items app with sap-ui-debug=true debug option, open Google Developer Tools F12, Open File Ctrl+P file search and find AbstractController.js and download it.

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

3. Create Custom Manage Supplier Line Items app Web IDE project

Create Web IDE project uploading project from step 1 and add AbstractController.js from step 2

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

Replace standard component name fin.ap.lineitems.display with custom one uladzislau.pralat.fin.ap.lineitems.display

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

4. Modify parent view controller copy hardcoding All Items default Status

Replace Open Items hardcoded default Status with All Items

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

Optionally rolling Posting Date range can be code (if not passed from calling Fiori app)

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

5. Refer view controller to modified copy of parent view controller

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

6. Export Custom Manage Supplier Line Items app Web IDE project

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

7. Upload Custom Manage Supplier Line Items app

Use /UI5/UI5_REPOSITORY_LOAD program to upload FIN_VEN_LITS SAPUI5 app

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

8. Create Custom Manage Supplier Line Items app Target Mapping 

In Fiori Launchpad Designer create target mapping

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

Once custom Manage Supplier Line Items app is ready it can be tested

SAP HANA Certification, SAP HANA Learning, SAP HANA Preparation, SAP HANA Career, SAP HANA Study Material

Custom Manage Supplier Line Items app can be downloaded from GitHub

No comments:

Post a Comment