专栏首页Jerry的SAP技术分享明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?

明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?

In my blog Timeout page and WebUI freezing issue – Another cause, the behavior that a time out page is displayed in UI, although there is no time out at all but instead some exception occurred in ABAP backend. From my point of view this time out page is misleading. In that blog I share one of my example how to find the root cause which causes the ABAP exception in an efficient way. In this document I will explain to you why the time out page is designed to be rendered after some backend exception occurs.

First I need to find a scenario which will trigger an ABAP backend exception.

Fortunately I have already one at hand ( I should not say fortunately since this scenario is responsible by my team and I need to fix it anyway):

After I click F4 on field Base Category, a popup window is expected to appear.

However due to a bug in my code, there is one runtime error in ABAP backend:

And then I see error in UI.

After I click any place in UI, I see the time out page below.

How to find the logic why this time out page is chosen and rendered by UI Framework

In the beginning I am not clear where to set breakpoint to debug as this timeout page rendering is implemented via UI framework. So I plan to have a try with HTTP Professional.

I click “Record” button in toolbar to enable trace mode, and reproduce my operation in UI. Immediately I observed there is HTTP 500 error recorded. The log tells me that it tries to get a popup window but failed with result HTTP/1.1 500 Internal Server Error.

Right after the 500 error, there is a HTTP 302 redirection and the redirected target is CRM_UI_FRAME/logon_error.htm.

Click “Content” tab, it also shows error detail including ABAP callstack.

Now we can start trouble shooting in ABAP side. Quickly I notice the text in timeout page is stored in variable application->gv_logon_error_message. Again use Where Used function in ABAP workbench and set breakpoint in hit, then reproduce the scenario one again.

Break-point is triggered as expected. Here due to 500 error, the popup name could not be got, so a session restart is planned as documented in comment 53.

I just do not understand why my UI framework colleague choose the OTR text TIMEOUT1. IMHO a text like “Some error happened, restart your session” is perhaps better.

Then the JavaScript for session restart is filled and redirection is launched as below:

Put the mouse on hyperlink and we will see redirection Javascript hint:

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Corrupted product category causes WebClient UI empty screen issue

    Once product hyperlink in sales order line item is clicked, it is expected that ...

    Jerry Wang
  • 如何在SAP C4C的Embedded组件中检测编辑模式(EditMode)

    I am working together with a partner and they would like to implement a requirem...

    Jerry Wang
  • 使用SAP CRM中间件从ERP下载Customer的错误消息:Distribution channel is not allowed for sales organization

    Distribution channel is not allowed for sales organization

    Jerry Wang
  • Corrupted product category causes WebClient UI empty screen issue

    Once product hyperlink in sales order line item is clicked, it is expected that ...

    Jerry Wang
  • 如何在SAP C4C的Embedded组件中检测编辑模式(EditMode)

    I am working together with a partner and they would like to implement a requirem...

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

    I am recently doing self study on Analytics Path Framework and as a beginner I h...

    Jerry Wang
  • 错误消息sales area is not assigned for the header product

    When I try to download customer material info record from ERP, I meet with this ...

    Jerry Wang
  • UI5应用如果出现白屏但是没有任何错误消息打印出来,应该如何处理

    You meet with this error popup dialog in UI, however there is no error hint foun...

    Jerry Wang
  • CRM PRODUCT_MAT, BDOC和customer product id修改

    Product HT-1055 is downloaded from ERP. When you make changes in CRM for example...

    Jerry Wang
  • 如何分析SAP UI5应用的undefined is not a function错误

    Recently I meet with an annoying Javascript error “undefined is not a function” ...

    Jerry Wang

扫码关注云+社区

领取腾讯云代金券