Вы находитесь на странице: 1из 1

Transaction Launcher on a custom button on UI

Posted by Nitin Gupta in SAP CRM: Webclient UI - Framework on May 21, 2012 6:12:17 PM
To perform this, first go to Tr. CRMS_IC_CROSS_SYS.

Here one can find the URL of the required

destination system like:http://xxxxxx:8000/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode=ICEXECUTE


Copy this URL and paste it in a notepad.
Now, on the event handler of the button click, set a flag and capture its value in the HTM page of the required view.
One can take pointers from the following code :-

<% if controller->open_clicked ne 'X' . %>


<thtmlb:button id
= "OPEN"
design = "EMPHASIZED"
onClick = "OPEN"
text
= "OPEN"
enabled = 'true'
/>
<% endif . %>
<% if controller->open_clicked = 'X' .
controller->url = '"http://xxxxxx:8000/sap/bc/gui/sap/its/webgui/!?
~transaction=SE11&~okcode=ICEXECUTE"'.%>
<html>
<iframe name = "ff" id ="ff" width = 800 height = 800 src = <%= controller->url . %> >
</iframe>
</html>
<% endif . %>
Here Ive added a button using in the htm page of the view and on the event handler Ive set a flag in the IMPL class.
Based on the value of this flag the corresponding call to the URL is made in an iframe on the same page.
This opens up the SE11 transaction in an iframe on the same view. To open any transaction , replace IC_LTXE in the
URL with the required transaction.

Вам также может понравиться