Some more technical details about SAP note

简介: I use this note 2184333 which I am responsible for as an example:

I use this note 2184333 which I am responsible for as an example:


image.png


In order to research the technical design of SAP note, I write a simple tool for analysis.


How to use this tool

paste the following source code to create a report and run:

image.pngimage.pngimage.pngimage.pngimage.png

Once executed, the report will download the note as a compressed binary stream, display the size of this compressed stream and then uncompress it, allow you to view the building block of the note in detail. In the end the size of uncompressed data is displayed as well.

Take note 2184333 for example, around 137 KB is downloaded and after it is decompressed, the size inflates to around 742 KB.


image.png


Please note that this tool just gives you a draft estimation about the static size of note. The runtime overhead for memory management against deep data object such as internal table and string are not considered.


image.png


Note building blocks

The decompressed content of note is actually a xml file and could be parsed by function module SCWN_NOTE_UNPACK_XML


image.png


et_cwbnthead

Note header data. See below picture to find how the note header information is maintained in exporting parameter et_cwbnthead of FM SCWN_NOTE_UNPACK_XML.


image.png


et_cwbntstxt

Note tilte in multi language.

image.png



et_htmltext

Contains note body in html format in multi language. Content for each language is stored in a single line.


image.png


et_cwbntdata

Contains note body in multiple language. Content of each language is stored in a seperate internal table.


image.png


et_cwbntvalid

Contains note validity information. In this information, component key: 16929, we can find its description from table CWBCMPNT. And 63 for BBPCRM.


image.png


And how to understand DEALEID_V 244 for BBPCRM?

From this table we can know “244” represents 713.


image.png


detailed code delta change contained in variable LV_CODE_DELTA_BIN


The area below marked with blue rectangle is the code delta change our customer could see in the note browser, and the red area is part of variable lv_code_delta_bin inspected via XML Browser. The delta code change consists of two parts:

deletion of keyword “IMPORTING”;

insertion of two lines “it_customer_h = it_customer_h” and “IMPORTING”.

From the picture we can see clearly that the code fragment for insertion or deletion has corresponding XML tag ( I prefer to call it as “directive” ) maintained so that the node tool can know WHAT operation should be performed on these fragment. Meanwhile the context ( line number 38 ) is also known so that node tool can also know WHERE the delta change should be applied.


image.png

相关文章
|
5月前
SAP CRM note 的修改操作实现
SAP CRM note 的修改操作实现
35 0
|
6月前
|
机器学习/深度学习 存储 UED
SAP CRM My Note 应用的设计要点概述
SAP CRM My Note 应用的设计要点概述
72 0
|
6月前
查看指定 SAP CRM One Order 的 note 数据
查看指定 SAP CRM One Order 的 note 数据
31 0
查看指定 SAP CRM One Order 的 note 数据
查看指定 SAP CRM One Order 的 note 数据
107 0
查看指定 SAP CRM One Order 的 note 数据
|
数据挖掘
SAP QM 在Quality Notification里维护Internal Note
SAP QM 在Quality Notification里维护Internal Note
SAP QM 在Quality Notification里维护Internal Note
SAP CRM Fiori 应用 My Note 里创建 Note 失败的一个原因分析
SAP CRM Fiori 应用 My Note 里创建 Note 失败的一个原因分析
131 0
SAP CRM Fiori 应用 My Note 里创建 Note 失败的一个原因分析
在 SAP CRM Fiori 应用上给 Opportunity 订单添加 note 的后台执行明细
在 SAP CRM Fiori 应用上给 Opportunity 订单添加 note 的后台执行明细: 修改某些字段之后点击保存按钮: I change “chance of success”:
99 0
在 SAP CRM Fiori 应用上给 Opportunity 订单添加 note 的后台执行明细
SAP Fiori application do filtering will real delete note in DB
SAP Fiori application do filtering will real delete note in DB
100 0
SAP Fiori application do filtering will real delete note in DB
|
测试技术
Jerry开发的SAP note工具
Jerry开发的SAP note工具
142 0
Jerry开发的SAP note工具
SAP Fiori My note应用的add to功能的后台ABAP实现
SAP Fiori My note应用的add to功能的后台ABAP实现
102 0
SAP Fiori My note应用的add to功能的后台ABAP实现