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 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
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
Optionally rolling Posting Date range can be code (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 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
No comments:
Post a Comment