ITeye博客

JerryWang_SAP的博客

JerryWang_SAP · 共 1528 篇文章

使用S/4HANA里的Smart Business消费通过CDS view暴露的OData服务

In my previous blog Build Chart and Table representation via Analytics Path Framework I introduced the step how to render the data coming from CDS view in various chart types via Analytics Path Framework, which are actually a set of Fiori application. In this blog, I will demonstrate the steps how …

2021-03-26 09:51 · 评论(0)

SAP Analytics Path Framework的filter实现原理分析

I am recently doing self study on Analytics Path Framework and as a beginner I have finished some “Hello world” exercise and I have written down my steps to finish those “Hello world” project in these two blogs: Build Chart and Table representation via Analytics Path Framework Access the OData serv…

2021-03-26 09:50 · 评论(0)

使用调试的方式搞清楚SAP UI5应用标题的更改方式

In Fiori launchpad, the page title will display default value “Home”. When I click a given tile to enter an UI5 application, the page title is changed for example from “Home” to “My Tasks”. Today I am dealing with an incident that once I have entered one application, the page title is not displayed…

2021-03-25 09:32 · 评论(0)

使用jstack检测Java应用的死锁(deadlock)状态

We can get the concept of deadlock in wikipedia. The picture below gives a common scenario which leads to deadlock. In this blog, I will share how to detect deadlock situation using JDK standard tool jstack. First we have to write a Java program which will lead to Deadlock: package thread; public c…

2021-03-25 09:32 · 评论(0)

SAP UI5应用的调试标志位的本地存储逻辑 - local storage使用的一个例子

We know that once we enable debug mode via “Ctrl+Alt+Shift+P”, this setting will be persisted: even if you turn off your laptop and launch the application tomorrow, the debug mode will still be there. In Chrome development tool, there is an Application tab which records this setting via key value p…

2021-03-24 09:31 · 评论(0)

SAP UI5框架Component.js里extend函数的实现原理

For every Fiori application we have Component.js, and there is a function extend() call. See one example below. What is the purpose of this function call and what functionality would it achieve? In order to understand the logic of extend, it is necessary to understand prototype concept in JavaScrip…

2021-03-24 09:30 · 评论(0)

SAP UI5应用白屏的原因分析

Today I am working on another incident and I get to know another kind of reason which will lead to empty screen issue in UI. My previous experience for potential reason of empty screen issue is, there must be some JavaScript execution error which causes the UI ceases to render. The issue I am worki…

2021-03-23 09:18 · 评论(0)

SAP数据库表DDLOG的设计原理

Today when I am reading this SAP help, I find out this sentence: Then I have opened the definition of table DDLOG in the system and found I cannot directly view the content of field NOTEBOOK due to its data type LRAW. So I have chosen one table with buffer activated, and made some changes on it. Si…

2021-03-23 09:17 · 评论(0)

SAP UI5和Angular的事件处理机制比较

Jerry最开始是用SAP UI5进行SAP CRM Fiori应用的开发。最近一段时间做SAP Spartacus开发,在用Angular,因此借这个机会将两个前端框架的事件处理实现细节做一个比较。 SAP UI5事件处理 通过button控件的attachPress方法注册一个Press事件点击的处理函数: button控件本身的实现是没有attachPress这个方法的,这一点可以从hasOwnProperty返回false来确认: Instead, it is provided by the node in the button instance’s prototype chain,…

2021-03-22 09:47 · 评论(0)

SAP WebClient UI是如何维护表格选中状态的

I have been working as a Fiori application developer in SAP for almost two years, which means now I use Chrome development tool in my daily work for trouble shooting instead of ABAP debugger when I was working using CRM WebUI. Yesterday I was assigned with an incident about CRM Lead application in …

2021-03-22 09:46 · 评论(0)

一个占据SAP BSP应用占据存储空间的小工具

Today one of my colleague asks me whether there is some tool which can allow us to get a draft estimation on the size of a BSP application. As far as I know there is no such tool, so I write one by myself. This tool simply fetches source code of all artifacts belonging to a specified BSP applicatio…

2021-03-21 11:54 · 评论(0)

深入了解SAP note的技术细节

Although I have been working on ABAP for several years, I am not well aware of the technical design of SAP note, since most of the time as an application developer, I am responsible for the bug fixing, putting the correction instruction into the note and release it, then our customer can apply it i…

2021-03-21 11:53 · 评论(0)

SAP offline OData插件的JavaScript代码是如何调用到Android平台的Java代码的

In previous blog How is OData request routed to Offline data store by OData offline plugin , according to comment, the Offline store will only be available once it is opened successfully. The open operation is done in Device native API, delegated in line 232. The exec is available in exported modul…

2021-03-19 10:14 · 评论(0)

SAP OData请求是如何通过OData Plugin路由到OData Offline Data Store的

I am reading Offline OData plugin introduction from SAP Help , There is one sentence “OData requests made against this plugin use the available open offline stores.“, and I am very curious about how this is done. As a result I had a look at my offline application project. I have found a plugin.xml …

2021-03-19 10:13 · 评论(0)

面向切片编程(AOP)应用的一些实际例子

The definition of AOP in wikipedia seems a little bit difficult for beginners to understand, so in this blog I use an example to introduce why we need it. Suppose I have an order command class which performs its core business logic in method doBusiness: package aop; import java.util.logging.Level; …

2021-03-18 10:41 · 评论(0)