Skip to Content
Author's profile photo Corrine Guan

Way to find out how a transaction launcher is opened in a new window from CRM webui page

Purpose:
Transaction launcher can be opened in a new window from CRM webui page. But what is the backend logic? Which JavaScript is used to open this new window with expected url?

Environment:
The source codes come from CRM of version SAPK-74713INWEBCUIF/SAPKU71313

Steps:
Firstly, let’s make a HTTPWatch trace. From the trace, we can easily find out the requests for the new window.

As shown above, firstly, the request for crm_ui_frame/genericpostexecutionnewwindow.htm is sent out. In its content, we can find the next request crm_ui_frame/genericpostexecution.htm which contains webGUI requests. After this, transactions are processed on webGUIs.

Next, let’s see the way to find out how the new window is launched. We can use ‘Find’ button of the httpwatch tool to search with key word ‘genericpostexecutionnewwindow.htm’. We can find it in a crm_ui_frame/bspwdapplication.do request which is before the request of genericpostexecutionnewwindow.htm.

‘../crm_ui_frame/genericpostexecutionnewwindow.htm’ is transported to a javascript function launch_ltx_window as a parameter.

Where is this JS function located and what is it doing? Let’s click F12 to open the developer tools, search term launch_ltx_window. This JS function is in the js file ‘LaunchTransactionAdmin.js’ under BSP Application UICMP_LTX.

Now we click transaction launcher from the CRM webUI, the JS breakpoint stops. Keep clicking F10 and go to line 97, the source codes are:
ltx_window = window.open(url, ltx_window_name, “resizable=yes”);

In order to check what URL is, we can double click on the ‘Global code’ from the callstack from the right side. It is more clear to get the value of url parameter:

Additonal:
Now we know the new window is actually launched from JS codes window.open. We can easily understand the information in SAP KBA 2371634 – How to adjust the window size of transaction launcher.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sajid Amir
      Sajid Amir

      Leaving a test comment here to verify if your notifications are working as expected Corrine. Please kindly leave me a reply via a comment here to confirm and I can delete the comment once verified.

      Author's profile photo Corrine Guan
      Corrine Guan
      Blog Post Author

      Hello Sajid,

      From notification, unfortunately, same problem happens. It is not navigated to this blog.Instead, it goes to blank page.

      Best Regards, Corrine

      Author's profile photo Sajid Amir
      Sajid Amir

      Corrine I realized that you were not using the "comment" hyperlink but were using the "Blog Title" hyperlink to navigate. I understand it works as expected when you clicked on "comment" correct? I will still investigate further to make sure why this issue is happening for the blog title link. Thanks for reporting and following up. Much appreciated.

      Best,

      Sajid

      Author's profile photo Corrine Guan
      Corrine Guan
      Blog Post Author

      Hello Sajid,

      You are correct. Display comment part was just to show you that the hyperlink on ‘comment’ is ok. The problem is only happens in the ‘Blog Title’ hyperlink.

      The weird thing is: for this second notification, the ‘blog title’ hyperlink is correct. It is only for the first notification for your last comment in this blog, the hyperlink is incorrect.

       

      Maybe next time, when you leave a comment to test, just make comment direct under the blog?

      And also leave a comment in my another blog?

      Best Regards, Corrine