`
JerryWang_SAP
  • 浏览: 1000631 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

SAP UI5里Batch操作和Read操作的区别

阅读更多

I would like to share with you my story today about fighting with one customer incident. We can make changes on Appointment and click save button:

 

 

There is a batch operation observed in Chrome network tab to update appointment as expected. However, why every time there are three subsequent appointment read roundtrips?

 

 

The callstack clearly shows that the three roundtrips are NOT issued by customer extension, or else the customer js file could be observed in the callstack.

 

 

Set a breakpoint on the top most callstack, h function. Check the content of e.target.data:

 

 

This is actually the batch request payload which could be observed in Chrome network tab:

 

 

This finding gives me more confidence that these roundtrips are issued by framework, not standard or customer application code. So I just continue debugging until I reach this suspicious stack:

 

 

in line 1957, this.bRefreshAfterChange = true.

 

 

However, in our internal system ( where everything works fine, there is no duplicate read operations ), this.bRefreshAfterChange = false, which has suppressed the refresh operation. This is the reason why the read operation could not be found in my internal system, since they are not executed at all. But in customer system, _isRefreshNeeded returns true, which leads to the execution of all subsequent read operations.

 

 

So why is this difference between two systems? In Chrome development tool, search the boolean variable name and we found one function setRefreshAfterChange defined for ODataModel. Just set a breakpoint in this method and re-launch the application in my internal system from beginning:

 

 

Breakpoint is triggered:

 

 

However, this line in customer system is missing, which is the root cause – our latest standard code didn’t reach customer system. After I found the root cause, I search in SCN to check whether there are other poor guy which had encountered the same issue with me, and actually I found one:scn.sap.com/thread/3724

 

 

If I read this thread several months earlier, I would save my hours’ debugging today.

 

 

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

0
0
分享到:
评论

相关推荐

    SAP-17LSMW使用Standard Batch导入BOM.docx

    BOM(物料清单)是生产计划和控制中的一种重要文件,通过使用 SAP-17LSMW 和 Standard Batch,可以快速导入 BOM 数据到 SAP 系统中。 二、创建批导名 在使用 SAP-17LSMW 导入 BOM 之前,需要创建一个批导名。批导名...

    SAP Batch Merge Guide

    SAP ABAP Batch 批处理整合开发指南。

    SAP Batch Iuput

    SAP Batch Input是一种高效的数据批量导入工具,用于在SAP系统中录入大量数据。它通过模拟事务处理,将预先定义的操作步骤转化为自动化的过程,从而节省手动输入的时间和减少人为错误。以下将详细介绍如何使用SAP ...

    SAP Batch Management

    总的来说,SAP 批次管理涉及到的配置和操作流程复杂且细致,但是一旦设置完毕,就能够为企业提供强大的库存跟踪能力,确保生产过程的透明度,提高供应链的效率,同时满足法规要求和客户对产品质量的期望。...

    SAPUI5PI_messageoverviewqueryservlet:从SAPUI5应用程序读取messageoverviewqueryservlet

    本主题将深入探讨如何在SAPUI5应用程序中使用`messageoverviewqueryservlet`来获取和处理消息概述。`messageoverviewqueryservlet`是SAP系统中用于集中管理和展示业务流程中的各种消息(如警告、错误和信息)的一个...

    Spring batch Read csv project

    本项目“Spring Batch Read csv”显然关注的是如何利用 Spring Batch 来读取 CSV 文件,这在数据处理和导入场景中非常常见。CSV(Comma Separated Values)是一种通用的、轻量级的文件格式,用于存储表格数据。 ...

    SAP Batch Job 备注

    博文链接:https://jgtang82.iteye.com/blog/127587

    SAP LSMW操作

    ### SAP LSMW 操作详解 #### 一、概述 SAP LSMW(Legacy System Migration Workbench)是一项用于从外部系统迁移数据至SAP系统的重要工具。通过本指南,您将了解如何利用SAP LSMW进行数据迁移的具体步骤,包括创建...

    SAP ERP LSMW标准导入操作文件

    【SAP ERP LSMW(Large Scale Material Master Workbench)】是一种强大的数据导入工具,主要用于在SAP系统中批量导入主数据和交易数据。LSMW的主要优势在于其灵活性,能够处理不同数据格式,适应各种场景,避免了因...

    SAP BASIS学习手册

    SAP BASIS学习手册 SAP BASIS是SAP系统的基础组件,负责提供基础设施和核心功能。...SAP BASIS学习手册涵盖了SAP系统的基础知识和客户端管理、Batch Input学习、事务代码、客户端操作等方面的知识点。

    SAP BDC开发讲解

    1. **记录操作步骤**:首先,需要通过SAP的特定工具记录下用户执行的一系列操作步骤。这一步骤可以通过事务代码“SHDB”完成。 2. **创建记录**:在记录过程中,需要创建一个记录,并指定事务代码。例如,在本例中...

    Document batch管理

    详述了SAP ERP中的document batch的用法,实际案例以及相关配置。

    SAP BDC技术 录屏

    **SAP BDC (Batch Data Conversion)** 技术主要用于批量处理数据录入任务,尤其是在需要重复执行相同操作但涉及的数据不同的场景下。例如,在切换系统时,需要将旧系统的数据导入到新的SAP系统中。BDC提供了一种高效...

    SAP 周期性凭证实例 FBD1创建F.14执行

    下面将详细阐述如何在SAP中创建、修改、查看和删除周期性凭证。 **创建周期性凭证(FBD1)** 在SAP中,创建周期性凭证通常使用事务代码FBD1。在这个过程中,你需要输入凭证的基本信息,包括科目、金额、日期以及...

    SAP_恶魔_ABAP_Batch Input应用_狂套

    ### SAP ABAP Batch Input 应用详解 #### 第一章 ECATT/SCAT 说明 ##### 第一节 ECATT 与 SCAT 区别 在SAP系统中,ECATT (Enhanced Classical Test Tool) 和 SCAT (Classical Test Tool) 都是用于测试和批量输入...

    SAP BDC与LSMW介绍.pptx

    SAP BDC(Batch Data Conversion)是一种批量数据转换机制,允许用户快速、重复地模拟人工操作,以解决大量数据输入问题。在SAP系统中,BDC扮演着重要角色,可以大量、重复地模拟人工操作,避免人为的手工操作。 ...

Global site tag (gtag.js) - Google Analytics