Strange Error while opening Web UI in a new browser window
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.
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.