Tuesday, December 16, 2025

Debug Program externally or remotely

 

To debug a program run remotely,  the user need to type below in command, to give access to developer to debug externally (remotely).  Developer need to put an external breakpoint with user's userid.

/HEXT user = <developer_username_who_will_debug>


Note:  Developer FIRST need to set the external breakpoint with user's userid - before user doing above in command line. (Its like mutual consent)


Monday, November 10, 2025

Virus Scan Profile - for Fiori apps

 Good blog. We can do a custom one - we did in our project at HCC. no need of code changes. automatically triggers for all uploads using File uploader in fiori.

https://community.sap.com/t5/technology-q-a/virus-scan-profile-activation-in-odata/qaq-p/10475569

Wednesday, April 16, 2025

IFlow Cheat sheet - Good info Link

 


https://www.integration-excellence.com/integration-flow-cheat-sheet-for-sap-cloud-integration/

Monday, March 17, 2025

Using XI adapter Sender Interface - migrating from old PI SI

 

Configure all of this so the existing old Service interface (in ECC/HANA used for old PI) points to the new iFlow in Cloud Integration

  • SM59 to create a new HTTP Connection to an external server.
    • It should be like existing SAP_CPI connection with these parameters changed:
      • Name:                 SAP_CI_IF_SF_ACOUNT_CODES
        • ‘CI’ for Cloud Integration, ‘IF’ for Interface.
      • Description 1: urn:hants.gov.uk:interface:AcountCodes:SFLMS:Download
      • Host:                   hcc-integration-test.it-cpiXXX-rt.cfapps.eu10-XXX.hana.ondemand.com
      • Path Prefix:        /cxf/TestRajesh               à This will be changed later.

 

  • Define Sender/Receiver Definition

Transaction SXMSIF, new entry.

Sender/Receiver ID:       SF_ACTCODES_OUT

Message Cat.:                  Request (radio button)

Description:                     SI_SF_XXXXX_Outbound_Out             

Interface Name:              SI_SF_XXXXX_Outbound_Out

Interface Namespace: urn:xxxx.uk:interface:AcountCodes:SFLMS:Download

 

 

  • Activate Interface-Specific Endpoint

Transaction SXMB_ADM à Integration Engine Configuration à Specific Configuration, create New entry.

Category:           RUNTIME

Parameters:       IS_URL

Subparameter: SF_ACTCODES_OUT

Current Value:  dest://SAP_CI_IF_SF_ACOUNT_CODES

 

For reference, I used this blog Cloud Integration - Configuring Scenario Using the... - SAP Community


Tuesday, December 17, 2024

CPI end to end VAT integration using OAUTH

 

Good Link:

https://community.sap.com/t5/technology-blogs-by-members/sap-cpi-end-to-end-vat-integration-using-oauth-2-0-with-client-credentials/ba-p/13537384

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/

SWFVISU - My Inbox Open task config

 

https://blogs.sap.com/2016/05/31/my-inbox-open-task-swfvisu-configuration/


Monday, October 4, 2021

Extending standard SAP Fiori app

 

https://sapyard.com/sap-fiori-tutorial-part-8-how-to-extend-standard-fiori-app-both-ui-odata/


https://help.sap.com/viewer/d59d9f81f4884bf9b115936b92c27202/2.0%202020-12/en-US/d858be20370746d2bd44d2feb2b888b5.html?q=My%20Timesheet%20Version%203%20Fiori%202.0



Tuesday, September 28, 2021

Odata URL conventions

 

SAP Odata URL conventions

https://www.odata.org/documentation/odata-version-3-0/url-conventions/

Friday, September 17, 2021

SRM FM to create PO in ECC

 SRM function module to create PO from Shopping cart

BBP_PD_SC_TRANSFER

If you have Shopping cart number, then get GUID from BBP_PD tcode - and input it to the FM - PO will be created in backend.

BBP_CREATE_BE_PO_NEW exit will be called when this FM is executed - This will be called in normal process as well - but we can't debug in normal process, as it will be called in background job.

Friday, July 24, 2020

Get string from xml response

 

jQuery.parseXML(oEvent.getParameter("responseRaw")).getElementsByTagName("d:AppKey")[0].innerHTML

 

Wednesday, July 15, 2020

Using HR_INFOTYPE_OPERATION when there is a Secondary Infotype


Secondary Infotypes:

Using HR_INFOTYPE_OPERATION when there is a Secondary Infotype

Note : Finding View Identifier is important.

Example:

    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty            c_residence_infty  "0048
        subtype          subty
        number           pernr
        validityend      me->it0048_old_end_date
        validitybegin    me->it0048_old_start_date
        record           p0048_residence_status
        operation        'INS'
        view_identifier  '08'
        secondary_record p3292_pvn_check
      IMPORTING
        return           return.

Service activation - System Alias error

Service activation

Issue when System Alias was not transported :  Go to SM30 -  /IWFND/V_MGDEAM – and put the new entry in transport