Sie sind auf Seite 1von 4

<%@page language="abap" %> <%@extension name="htmlb" prefix="htmlb" %> <%@extension name="bsp" prefix="bsp" %> <%@extension name="CRM_BSP_IC" prefix="crmic" %>

<htmlb:inputField id = "ac_object_key" visible = "false" /> <htmlb:inputField id = "ac_value" visible = "false" /> <htmlb:inputField id = "ac_container" visible = "false" /> <htmlb:inputField id = "myITSLocation" visible = "false" /> <% if controller->is_dataloss_dialog_suppressed( ) = abap_true. %> <input type="hidden" name="dataloss_dialog_suppressed"/> <% endif. %> <% data: lt_params type crmt_ic_string_tab, lv_guid type string, lv_stateful type abap_bool, lv_veto type abap_bool, lv_its_based type abap_bool, lv_page_name type string, lv_component_id type string, lv_active type ref to cl_crm_ic_active_actions. field-symbols: <param> type string. lt_params = controller->get_export_params( ). loop at lt_params assigning <param>. %> <htmlb:inputField id = "<%= <param> %>" visible = "false" /> <% endloop. %> <% lv_guid = controller->get_handler_guid( ). lv_its_based = controller->is_ltx_its_based( ). lv_active = cl_crm_ic_active_actions=>get_instance( ). lv_stateful = lv_active->is_handler_stateful( lv_guid ). lv_veto = lv_active->is_handler_veto_enabled( lv_guid ). lv_page_name = controller->get_iframe_page_name( ). lv_component_id = controller->get_comm_component_id( lv_guid ). %> <crmic:gridLayout cellPadding = "0" cellSpacing = "0" columnSize = "1" rowSize = "1" height = "<%= controller->get_height( ) %>" width = "100%" > <crmic:gridLayoutCell columnIndex = "1" horizontalAlignment = "LEFT" rowIndex = "1" > <span name="myActionIframeContainer" id="myActionIframeContainer"> </span> <% if lv_page_name is not initial. if cl_crm_ic_services=>is_delta_handling_enabled( ) = abap_true. %> <bsp:deltaHandlerBlock id="finalBlock1" > <!-- <%= sy-uzeit %> -->

<% if lv_stateful = abap_true. if lv_guid is not initial. concatenate '../ic_base/GenericLTXNewWindow.htm?SAP-CLIENT=' sy-mandt '&GUID=' lv_guid '&COMPONENT_ID=' lv_component_id into lv_page_name. %> <script> try { getContextAreaWnd().launch_ltx_window( "<%= lv_guid %>", "<%= lv_page_name %>", "<%= lv_veto %>" ); } catch(e){alert(e.message);} </script> <htmlb:textView text="<%= controller->get_new_window_text( ) %>" /> <% controller->clear_for_reentry( ). endif. else. %> <%-- *********** Start OF Customer-Specific Modification *************** --%> <script language="JavaScript"> <% DATA: timeout TYPE i. IF runtime->server->session_timeout IS INITIAL. DATA: name TYPE pfeparname, value TYPE pfepvalue. name = 'rdisp/plugin_auto_logout'. CALL 'C_SAPGPARAM' ID 'NAME' FIELD name ID 'VALUE' FIELD value. timeout = value. IF timeout > 60. timeout = timeout - 60. ENDIF. ELSE. timeout = runtime->server->session_timeout+0(2) * 3600 + runtime->server->session_timeout+2(2) * 60 + runtime->server->session_timeout+4(2) - 60. " one minute warning ENDIF. %> var timer_id = 0; function warning() { var prompt; prompt = (new Date()).toLocaleString() + '' + 'Session will timeout in 1 minute, would you like to renew it?'; if(confirm(prompt)) { var img=new Image; img.src = document.URL+"/1x1.gif?sap-contextid=<%= cl_http_utility=>escape_url( runtime->session_id )%>&sap-unique="+((new Date()).getTime()); timer_id = window.setTimeout('warning()', <%= timeout%> * 1000); } } function ZDMSHPageLoaded() { window.clearTimeout(timer_id); timer_id = window.setTimeout('warning()', <%= timeout%> * 1000); }

function ZDMSHAppUnload() { var img=new Image; img.src = document.URL+"/1x1.gif?sap-contextid=<%= cl_http_utility=>escape_url( runtime->session_id )%>&sap-sessioncmd=CANCEL"; var stop = (new Date()).getTime() + 1000; while((new Date()).getTime() < stop) for(e in document.all) tmp=e.innerHTML; } </script> <IFRAME id = "myActionIframe" name = "myActionIframe" height = "100%" onload = "ZDMSHPageLoaded()" onunload = "ZDMSHAppUnload()" width = "100%" style = "border:0;padding:0;margin:0;scrolling:no" src = "<%= lv_page_name%>" frameborder = no> </IFRAME> <%-- ************ End OF Customer Specific Modification ************** --%> <%-- <IFRAME id = "myActionIframe" name = "myActionIframe" height = "100%" width = "100%" style = "border:0;padding:0;margin:0;scrolling:no" src = "<%=lv_page_name%>" frameborder = no> </IFRAME> --%> <% endif. %> </bsp:deltaHandlerBlock> <% else. %> <% if lv_stateful = abap_true. if lv_guid is not initial. concatenate '../ic_base/GenericLTXNewWindow.htm?SAP-CLIENT=' sy-mandt '&GUID=' lv_guid '&COMPONENT_ID=' lv_component_id into lv_page_name. %> <script> try { getContextAreaWnd().launch_ltx_window( "<%= lv_guid %>", "<%= lv_page_name %>", "<%= lv_veto %>" ); } catch(e){alert(e.message);} </script> <htmlb:textView text="<%= controller->get_new_window_text( ) %>" /> <% controller->clear_for_reentry( ). endif. else. %> <%-- ************ Start Of Customer Specific Modification ************** --%> <IFRAME id = "myActionIframe" name = "myActionIframe" height = "100%" onload = "ZDMSHPageLoaded()" onunload = "ZDMSHAppUnload()"

width = "100%" style = "border:0;padding:0;margin:0;scrolling:no" src = "<%= lv_page_name%>" frameborder = no> </IFRAME> <%-- ************ End Of Customer Specific Modification ************** --%> <%-- <IFRAME id = "myActionIframe" name = "myActionIframe" height = "100%" width = "100%" style = "border:0;padding:0;margin:0;scrolling:no" src = "<%=lv_page_name%>" frameborder = no> </IFRAME> --%> <% endif. %> <% endif. %> <span style="display:none;"> <crmic:button id = "ReturnFromBOR" onClick = "onReturnFromBOR" text = "<%= otr(IC_UI_COMPONENTS/LTXCLOSEBUTTON) %>" onClientClick = "onButtonCloseLTXSession('<%= lv_guid %>')" /> </span> <% endif. %> </crmic:gridLayoutCell> </crmic:gridLayout>

Das könnte Ihnen auch gefallen