Posts

Force download with fetch function

SAPUI5 - Bind oData in XML view

SAPUI5 - Reference to image path

var sRootPath = jQuery.sap.getModulePath("<application_package_name>"); var sImagePath = sRootPath + "/img/logo.png";

SAPUI5 - Clear Cache on SAP Netweaver Gateway

Image
# Reference :  https://blogs.sap.com/2017/12/22/cache-cleanup-in-sap-netweaver-gateway/ # Programs to Delete Cache      -  /ui2/invalidate_client_caches      -  /ui2/invalidate_global_caches ( Invalidate global cache)      -  /ui5/app_index_calculate  (R ecalculate index of an app)     -  /ui5/del_odata_metadata_cache  ( Delete metadata cache) # T-codes for cache cleanup      Execute the following T-codes     -  Clear front end cache                /n/iwfnd/cache_cleanup     -  Clear backend Cache           /n/iwbep/cache_cleanup     -  Clear Global Cache           /nsmicm                     goto->HTTP Plugins->Server Caches->Invalidate globally

JavaScript : window.open with Http Header

     fetch ( sUrl , {                headers : { ' myHeader ' : ' ABCD ' }           } ) // FETCH BLOB FROM IT           . then ( ( response ) => response . blob ()) . then ( ( blob ) => { // RETRIEVE THE BLOB AND CREATE LOCAL URL      var _url = window . URL . createObjectURL ( blob ) ; window . open ( _url , " _blank " ) . focus () ; // window.open + focus } )           . catch ( ( err ) => {      console . log ( err ) ;      } ) ; Reference from : stackoverflow.com

SAP PI/PO - Config JDBC Receiver

Image
 

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

Image
This example will show you how to fetch data from SuccessFactor (oData V2 Message Protocal) with a specific page size. For example, if your data has 10,000 total records and each record consists of 20 child nodes (the result size is around 10MB), you can fetch data by 500 records per request by using Loop Process Call. # My integration process consists of 1. Content Modifier " Initial Data " which I declare property "fetchData". 2. Loop Process Call " Loop Fetch Data " which calls Local Integration Process " Fetch Data From SF ". 3. Groovy Script which writes data from property "fetchData" in an attachment format. This example will focus on step 2 - Loop Process Call & Local Integration Process. # Local Integration Process "Fetch Data from SF".  How does it work? 1. Use Request Reply to call SuccessFactor to get data 500 records per request. 2. Use Groovy Script to get some fields and return in XML format. 3. Use XML to CS...