I can usually go into transaction SMW0 to find an HTML template that is the source of a web page problem. However, below is the "view source" data, and I cannot find the template "webrfcsystemexception.html" anywhere to change the function call name in it, not even in SMW0. Since this is an RFC exception HTML, is there somewhere else I should look for this template?
Thank-You.
********************************************************
<!--
This page was created by the
SAP Internet Transaction Server (ITS, Version 6200.1009.40936.0, Build 637814, Virtual Server IG5, Add. service info none, WGate-AGate Host PHILFMC-SV045, WGate-Instance IG5)
All rights reserved.
Creation time: Mon Sep 10 15:56:47 2007
Charset: iso-8859-1
Template: wrfc/99/webrfcsystemexception -->
<HTML>
<HEAD>
<TITLE>ITS System Log In</TITLE>
<LINK rel="stylesheet" href="/ordercenter/global.css">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> <META http-equiv="Pragma" content="no-cache">
<STYLE TYPE="text/css">
BODY {background-image:url(/ordercenter/images/corner_gfx.gif); background-color:#ffffff; background-repeat: no-repeat; }
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
// SetFocus: places the cursor into the specifed text input box. This function is fired on
// page load via the BODY tag.
function SetFocus(theField)
{
var theElements = 0;
var i;
theElements = document.forms[0].length;
for ( i = 0; i < theElements; i++ )
{
if ( document.forms[0].elements<i>.name == "~login" )
{
document.forms[0].elements<i>.focus();
return true;
}
}
}
function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)
{
myfield.form.submit();
return false;
}
else
return true;
}
</SCRIPT>
</HEAD>
<!----
Program Name : webrfcsystemexception.html
Author : Andrew Biddle, Randy Smith
Create Date : January 03, 2001
Program Type : SAP WebRFC system exception HTML
*
Description : Error output called from RFC when a system exception
occurs
*
Revision Log :
Log # Date Author Description
----- ---- ------ -----------
Initial 01/02/01 Andrew Biddle Initial Development
04/23/01 Randy Smith Change RFC from Z_W00 to Z_W04.
06/11/01 Andrew Biddle No Quotes in SAP error messages
----
Processing
*----
>
<SCRIPT language="JavaScript">
//Redirect the user to the webrfc which will display the long text message from message class ZI
function submit(error)
{
window.location="/scripts/wgate/wrfc/!?_function=Z_W04_PROCESS_ERROR_OUTPUT&ERROR="+error;
}
function stripCharString (InString, CharString) {
OutString="";
for (Count=0; Count < InString.length; Count++) {
TempChar=InString.substring (Count, Count+1);
Strip = false;
for (Countx = 0; Countx < CharString.length; Countx++) {
StripThis = CharString.substring(Countx, Countx+1)
if (TempChar == StripThis) {
Strip = true;
break;
}
}
if (!Strip)
OutString=OutString+TempChar;
}
return (OutString);
}
</SCRIPT>
<BODY topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor=White>
<FORM name="errorForm" method="post" action="/scripts/wgate/wrfc/!?_function=Z_W04_PROCESS_ERROR_OUTPUT">
<TABLE width="640" border="0" cellpadding="0" cellspacing="0">
<TR><TD align="center">
<BR><BR><BR><BR><BR><BR><font face="Verdana" color=red>
<script language="javascript">
//The rfc error returned may have quotes(") which must be removed
var errMessage = 'Assignment error: Overwriting a protected field.';
var noQuotesMessage = stripCharString(errMessage, '"');
var x = noQuotesMessage.substring(0,5);
var y = noQuotesMessage.substring(6,11);
if ( x == "ERROR" )
{
submit(y);
}
else
{
document.write( noQuotesMessage )
}
</script>
</font>
</TD></TR>
<TR><TD align="center" class="subheads">
<BR><BR>
<script language="javascript">
if (( x !== "ERROR" ) && ( noQuotesMessage !== "You are not authorized to logon to the target system."))
{
document.write( "Please press the back button to return to the correct screen." );
document.write( "<BR><BR><BR>" );
document.write( "<INPUT type=\"Button\" onClick=\"window.history.go(-1);\" class=\"Button\" value=\"Back\" name=\"BackButton\">" );
}
else if ( noQuotesMessage == "You are not authorized to logon to the target system." )
{
document.write( "Either your ID or password may have been incorrect, or you do not have the required authorizations." );
document.write( "<br><br>Please close your Internet browser and try again" );
document.write( "<br><br>or" );
document.write( "<br><br>Call 888-LITHIUM (888-548-4486)." );
document.write( "<br><br><br><INPUT type=\"Button\" onClick=\"parent.close(); return true\" class=\"Button\" value=\"Close\" name=\"CloseButton\">" );
}
</script>
</TD></TR></TABLE>
</FORM>
</body>
</html>
Message was edited by:
Tom M.