SAP CRM和Cloud for Customer的Excel导出功能比较

简介: SAP CRM和Cloud for Customer的Excel导出功能比较

Excel export is supported in both CRM and C4C. This blog gives a short introduction about how export is implemented in both system.


Excel export in CRM

In CRM, the exported excel has csv format which could directly be opened by any text editor:

image.png

If you would like to study how this functionality is implemented in CRM, just follow the guide below.


Open a WebClient UI component which supports excel export for example PRD01QR, double click the tag chtmlb: configTable


image.png

Then double click implementation class of this tag:

image.png

Set a breakpoint on method ADD_DOWNLOAD_TO_EXCEL:

image.png

Click Export button to trigger the breakpoint, in variable ev_script we can find the SICF service name for export function:

image.png

find this service in tcode SICF:

image.png

double click it to locate the handler class.

image.png

Set a breakpoint in its HANDLE_REQUEST method, and now you can debug how the source code of csv file is generated.

image.png

Excel export in C4C

image.png

The excel exported in C4C has postfix .xlsx, see one example below.

image.png

Rename it to ListofAccounts__EN.zip and unzip it, you will find that the .xlsx is actually a zipped package which contains several files. The actual content from C4C OWL are stored in file sheet1.xml.


image.png

Here below are the steps if you would like to explore more detail about excel export from UI perspective in C4C ( since the UI source code is open to partner & customer ).


(1) Launch C4C via Chrome, switch to debug mode via Ctrl+Alt+Shift+P.


image.png

Refresh the page and click F12 to launch Chrome development tool.


(2) Click Souces tab, press Ctrl+O and type keyword Button, click the first hit “Button-dbg.js”:

image.png

Set a breakpoint in line 154, the event handler for click:

image.png

(3) Perform Excel export in UI and breakpoint will be triggered. Debug into the code and soon you will find the url population logic is implemented in function _navigateToURL.


image.png

Inside this function you can learn how the final url for excel download is assembled by different parts:

image.png

Finally the assembled url is stored in variable url and the download is started by native API window.open. From the url we can also find the SICF service output_document, although its implementation in ABAP backend is not visible to partner & customer.

image.png

Further reading

In CRM there are also some standard API which supports to manipulation on Office document by ABAP. See Manipulate Docx document with ABAP for more detail.


Also refer to Jerry’s other blogs regarding the comparison how CRM and Cloud for Customer implement a given feature using different approaches:


OData Service backend implementation in C4C, CRM and S4 HANA

Excel export in CRM and C4C

Saved query in C4C, CRM and S/4 HANA

Direct navigation in CRM WebUI, CRM Fiori and C4C

Formatted Text Edit in CRM and Cloud for Customer

How Table column resize works in CRM and Cloud for Customer


相关文章
|
18天前
|
easyexcel Java API
SpringBoot集成EasyExcel 3.x:高效实现Excel数据的优雅导入与导出
SpringBoot集成EasyExcel 3.x:高效实现Excel数据的优雅导入与导出
59 1
|
19天前
|
JSON 资源调度 JavaScript
蓝易云 - vue实现导出excel的多种方式
以上两种方式都可以实现在Vue中导出Excel的功能,你可以根据你的需求选择合适的方式。
21 1
|
22天前
|
JavaScript 前端开发
JS导出excel功能
JS导出excel功能
|
5天前
|
JSON JavaScript 数据格式
vue 电子表格Excel的上传导入、导出下载、读取本地Excel、json转Excel
vue 电子表格Excel的上传导入、导出下载、读取本地Excel、json转Excel
7 0
|
1月前
|
前端开发
react框架对Excel文件进行上传和导出
react框架对Excel文件进行上传和导出
|
1月前
|
机器学习/深度学习 存储 人工智能
外汇CRM系统功能探索:增强市场竞争力的策略
外汇Zoho CRM系统助力外汇交易行业,提供客户信息、交易记录和营销管理,提升客户满意度、效率并降低成本。系统发展趋势向智能化、数据化和移动化迈进,通过数据分析和机器学习优化服务,移动平台增强服务可达性,驱动行业创新与竞争力提升。
22 1
|
12天前
如何使用Navicat导出Excel
如何使用Navicat导出Excel
9 0
|
1月前
|
前端开发
React实现一个excel文件导出
React实现一个excel文件导出
36 0
|
2月前
|
前端开发 搜索推荐 开发者
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
|
2月前
|
JavaScript 前端开发 开发者
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍