cancel
Showing results for 
Search instead for 
Did you mean: 

Call popup with ITS

laurent_touillaud
Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

laurent_touillaud
Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

I am facing similar problem with ZCATW. After making changes in time sheet, while pressing 'Previous/Next' button, does not show the popup message.

Please sugegst what parameters need to change in ITS service file

Regards

Sujith