Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
uladzislau_pralat
Contributor
Manage Supplier Line Items Fiori app does not support spend insight to action scenario. It is not possible to launch the app (2) from other app (1) with Status All Items selected by default. The problem is that default Status is hardcoded inside Manage Supplier Line Items app and can not be passed as parameter. This blog explains how to create a custom copy of the app with with Status All Items selected by default.


What it takes is a few simple steps:

  1. Download Manage Supplier Line Items app source code

  2. Download parent view controller of the app

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

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

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

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

  7. Upload Custom Manage Supplier Line Items app

  8. Create Supplier Semantic Object

  9. Create Custom Manage Supplier Line Items app Target Mapping


1. Download Manage Supplier Line Items app source code

Use /UI5/UI5_REPOSITORY_LOAD program to download FIN_VEN_LITS SAPUI5 app


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.



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


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


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

Replace Open Items hardcoded default Status with All Items


Set and show Spend Posting Key selection:





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


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


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


7. Upload Custom Manage Supplier Line Items app

Use /UI5/UI5_REPOSITORY_LOAD program to upload FIN_VEN_LITS SAPUI5 app


8. Create Supplier Semantic Object 

In /UI2/SEMOBJ transaction create supplier semantic object


9. Create Custom Manage Supplier Line Items app Target Mapping 

In Fiori Launchpad Designer create target mapping


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


Custom Manage Supplier Line Items app can be downloaded from GitHub

To learn more about insight to action scenarios and creation of Fiori analytical apps please refer to my book SAP S/4HANA Analytical Applications with Fiori Elements

 

 
Labels in this area