Monday, July 8, 2024

Groovy scripts


Good Link:

https://community.sap.com/t5/technology-blogs-by-members/sap-cloud-integration-cpi-hci-writing-groovy-scripts-with-basic-examples/ba-p/13497833 

Tuesday, April 16, 2024

GitHub Search

 Useful Link:

https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax







Friday, January 5, 2024

Deploy UI5 app from /UI5/UI5_REPOSITORY_LOAD

 

Check below link:

https://pravin517.wordpress.com/2018/02/06/deploy-a-ui5-application-to-as-abap-using-report-ui5-ui5_repository_load/


NOTE:  Remove component-preload.js file before re-uploading application. As component-preload contains minimized code base, this needs to be regenerated after any code changes. If you don't remove this, then you will not notice any changes to application.

Tuesday, January 2, 2024

Web IDE - An unexpected error in BUILD causing failure


Do below steps to resolve the issue 

-----


There must have been a change in the Build Process in the past month of September, as all of my old apps now fail.

Fix for this ended up being a re-build of the package.json and Gruntfile.js

Gruntfile.js

module.exports
  = function(grunt) {  
   'use
  strict'; 
  grunt.loadNpmTasks('@sap/grunt-sapui5-bestpractice-build'); 
  grunt.registerTask('default', [ 
  'lint', 
  'clean', 
  'build' 
  ]);};

These settings instruct Grunt to load the plugin that provides tasks for building SAPUI5 applications and running the tasks in the specified order.

package.json

{
   
  "name": "grunt-build", 
  "version": "0.0.1", 
  "description": "Grunt build", 
  "private": true,   "devDependencies":
  { 
  "@sap/grunt-sapui5-bestpractice-build": "1.3.62" 
  }}

Then one additional line had to be added to the package.json as per this SAP Note: https://launchpad.support.sap.com/#/notes/0002801814

So the Package.Json now looks like this:

{
    "name": "grunt-build",
    "version": "0.0.1",
    "description": "Grunt build",
    "private": true,
    "devDependencies": {
        "@sap/grunt-sapui5-bestpractice-build": "1.3.62",
        "vscode-uri": "1.0.6"
    }
}


Source: https://answers.sap.com/questions/12880809/webide-all-existing-sapui5-apps-failing-build.html

Monday, June 19, 2023

MS Word as default editor for Smartforms / SAP scripts - Activate/ Deactivate

 


Program RSCPSETEDITOR can be used to deactivate/activate MS word as default editor for SAP script / Smartforms text modules




Friday, October 8, 2021

Issue: HCMFAB Timesheet app not working in WebIDE

Issue:  HCMFAB Timesheet app not working in WebIDE


 Following code need to be added to Component.js to solve issue


(function() {

 jQuery.sap.registerModulePath("hcm.fab.lib.common", "/sap/bc/ui5_ui5/sap/hcmfab_common/");

 }());


https://blogs.sap.com/2018/08/22/sap-fiori-2.0-for-sap-hcm-how-to-extend-my-profile-app-using-sap-web-ide/