on 05-29-2007 4:30 PM
Hello,
I am trying to modify a specific popup generation in order to send back to SAP that this popup is definetely closed.
I have currently an error when opening this popup more than 10 times.
This situation occurs when we assign cost centers in items more than 10 times.
the function for cost centers calls a f4 help in javascript.
In the javascript code the popups are closed but for its an error is raised that is :
"No Service Name Specified... ...or Session Already Terminated... ".
Code :
<script language="javascript">
var chginput = "";
var FrameOpenerVar;
var curWgateURL = "`wgateURL()`";
`if ( ~flowtemplate != "" )`
var curTerminateUrl = curWgateURL +"?event=logoff&exiturl=";
`else`
var curTerminateUrl = curWgateURL +"?okcode=/NEX&exiturl=";
`end`
function envoiRequete(URL)
{
var requestImg = new Image();
requestImg.src = URL;
}
function requeteLogoff() {
envoiRequete(curTerminateUrl);
}
function subForm(EventName,FormName) {
if(FormName == '')
FormName = "formITS";
targetObject = eval('document.'+ FormName);
if(EventName != '')
targetObject.elements[0].value = EventName;
targetObject.submit();
}
function <b>changeImput</b>(val, i_field) {
setFrameOpenerVar();
var targetFieldName = i_field;
FrameOpenerVar.BBPForm.elements[targetFieldName].value = val;
chginput = "X";
requeteLogoff();
setTimeout("top.window.close()",3000);
FrameOpenerVar.BBPForm.elements[targetFieldName].focus();
}
function setFrameOpenerVar()
{
var service = "`HOOK_SERVICE`";
/*if(service == "bbpiv02" || service == "bbpiv03" || service == "bbpcf02" || service == "bbpcf03")
FrameOpenerVar = top.window.opener.top.frames[0].frames[1].frames[1];
else if(service == "bbppu99")
FrameOpenerVar = top.window.opener.top.frames[0].frames[1].frames[2];
else if(service == "bbppo01")
FrameOpenerVar = top.window.opener.top.frames[0].frames[1];
alert(top.window.opener.top.frames[1].name);
alert(top.window.opener.top.frames[1].frames[0].name);
alert(top.window.opener.top.frames[1].frames[1].name);
FrameOpenerVar = top.window.opener.top.frames[1].frames[1];
}
</script>
The function that is causing the error is "changeImput".
I really am not aware with javascript coding so this is a bit tricky for me.
Thanks for your answers.
Problem solved.
I hav changed ITS parameter cookies from 1 to 0.
this situation occurs when u use external ITS only.
After this we applied also note 792542.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.