I have already written one blog How to persist the ui exception so you can view them later, the idea is after you spend little effort to create your own UI error handler and a new transparent table, the UI exception will be recorded into your own table, and you can view them at any time. ( just the similar logic as ST22 )

Sometimes once an UI exception occurs, you will not see an empty page but instead a time out error page. This blog explains why and how you will see the timeout error page.

This blog will show another small tip to accelerate your trouble shooting process against empty screen issue. In the end part of it I also raise an open question which is related to the discussed empty screen issue and I have not got answer so far.

Issue description

When clicking object ID hyperlink:

/wp-content/uploads/2014/05/clipboard1_451742.png

Then empty screen is displayed:

/wp-content/uploads/2014/05/clipboard2_451743.png

The tip

set breakpoint on method WRITE_ERROR_PAGE of class CL_BSP_WD_ERROR_PAGE_WRITER:

relaunch the application and breakpoint triggers. If current client is not set up as productive client, the code will go to the first IF branch.

The client type detection is done in the class constructor via FM TR_SYS_PARAMS.

/wp-content/uploads/2014/05/clipboard3_451744.png

Since normally the client type could only be changed by system admin, so you can put cursor on line 17 and click Shift + F12 to force the code to move to the second IF branch. Click F8 and the error information is displayed.

/wp-content/uploads/2014/05/clipboard4_451751.png

Open question

I develop a sample BSP and raise exactly the same exception deliberately there in another system.

/wp-content/uploads/2014/05/clipboard5_451752.png

Instead of seeing the empty screen, I get the following error page with detailed information:

/wp-content/uploads/2014/05/clipboard6_451753.png

I try to find the switch & logic to control how the detailed error page or empty screen is chosen to display.

Unfortunately I didn’t find the answer so far. The only finding is that when the exception is raised in ABAP backend, I observed a HTTP 500 error in HTTP watch.

/wp-content/uploads/2014/05/clipboard7_451754.png

And there are lots of insert operation on ST22 table SNAP in ST05 trace.

/wp-content/uploads/2014/05/clipboard8_451755.png

however by clicking button “Display ABAP call location”, I could not see the corresponding INSERT statement in ABAP editor, but just automatically navigate to the line below:

/wp-content/uploads/2014/05/clipboard9_451756.png

Perhaps the logic to make choice between error detail page and empty page for display is not done in ABAP side at all.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply