Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Strange Error while opening Web UI in a new browser window

Dear Experts

My requirement is to launch one of my custom Web UI screens in a new window upon clicking a button.

I am successfull in lauching it in new window.

How did I do it:

Step 1) Created a custom object type (ZOBJ) for my z component in SPRO->UI Framework Definition->Define UI Object Types.

Step 2) Created a logical link (ZLL) for my Z component in SPRO->UI Framework->Technical Role Definition->Define Navigation Bar Profile.

After that, In the same path, select Define Profile->Define Generic OP mapping->(Here Assign Object type ZOBJ(step 1) and Logical link ZLL(step 2) )

Then created a dynamic URL and passed this URL to the "on_client_click" parameter of my button.

Sample code is below.

I put the below in the .htm of the view where my button was declared.

data: lv_url_string TYPE string.
lv_url_string = 'http://server name:port number/sap/bc/bsp/sap/crm_ui_frame/default.htm?sap-syscmd=nocookie&
crm-object-type=ZOBJ&crm-object-action=B'.

Note: Here ZOBJ is my custom object type that I created for my Z component.

<thtmlb:button id            = "NW"
                     onClientClick = "javascript:window.open('<%= lv_url_string %>');"               
                     tooltip       = "New Window"
                     text          = "New Window" />

Problem I am facing:

The above code is successfully opening my custom screen in a new window.

But on the toolbar (where we usually see error messages in Web UI),

I am getting an error message with the below description.

Type= SYSTEM_ERROR, ID= ERROR_SESSION_INIT, description= 16AA9A3937A9BB56E10000000A11447B

I am not able to understand what this error is. The message is appearing only for the first time I am displaying my Z component in a new screen. Interestingly, when I do some action on my screen (expand the assignment block for example), this message is gone. This message doesn't seem to be effecting any functionality, but the users certainly don't want to see an error messsage like this.

I did some research on this and this error looks to be coming from the class CX_WS_MESSAGE_SYSTEM.

This class has an attribute (CX_ROOT) with initial value "16AA9A3937A9BB56E10000000A11447B" (same one I am getting in my error message). I am not sure though because this attribute (CX_ROOT) is present in several other classes also.

I would really appreciate if somebody can throw some light on this issue.

Thanks

Raj

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question