cancel
Showing results for 
Search instead for 
Did you mean: 

Custom ITS application: "popup" windows do not show after upgrade.

Former Member
0 Kudos

Dear sirs,

We have a custom ITS application in an ERP system which is recently upgraded from

SAP_BASIS 700 - 20

SAP_ABA    700 - 18

Kernel 700.246.1563 Load 30

to

SAP_BASIS 740 - 09

SAP_ABA    740 - 09

Kernel 742.28.1981 Load 40.

This application consists of a "main frame" and three children frames in a L-shape view.

After the upgrade we have the following problem: All "pop up" javascript windows

do not open --> command  "confirm", "alert", "window.open".

As example code please find...

. . . . . function print_report(numb){
var report;
if (numb == 1) {
`if (EXP_PROJ.dim > 0)`  
report =    window.open('`wgateURL(~target="_popup", ~template="yyyyyy")`',report,'menubar=no,toolbar=yes,location=no,scrollbars=yes,width=670,resizable=yes');  
report.focus();
`end`
}
else if (numb == 2){
`if (ACT_MREP.dim > 0)`  
report = window.open('`wgateURL(~target="_popup", ~template="xxxxxx"`',report,'menubar=no,toolbar=yes,location=no,scrollbars=yes,width=670,resizable=yes');  
report.focus();
`end`
}
.
.
.
.
.
function ask() {
`if (U_ACT == "2")`  
agree = confirm('Ooo?');  
if (agree)        {
document.FORM_500.action = "`WgateURL(~OkCode="YES", ~target="_top")`";        
document.FORM_500.submit();      
}    
else        
{
document.FORM_500.action = "`WgateURL(~OkCode="NO", ~target="_top")`";          
document.FORM_500.submit();          
alert('Action Cancelled');      
}
`elsif (U_ACT == "1")`  
 
alert('Zzz');    
document.FORM_500.action = "`WgateURL(~OkCode="NO", ~target="_top")`";    
document.FORM_500.submit();
`elsif (U_ACT == "3")` 
alert('Aaa'+      '\n' +      'bbb');    
document.FORM_500.action = "`WgateURL(~OkCode="NO", ~target="_top")`";    
document.FORM_500.submit();  `end`
}
Another problem after the same upgrade was  the one described in http://scn.sap.com/thread/3738268.
Is there any possibillity that there is any kind of relation?
Best regards,
Marios Giannopoulos

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Marios Giannopoulos,

Like the other thread you mentioned, this problem too seems to not have occurred as a result of the upgrade. The problem maybe something else.

First, you may check to see if the transaction is giving a pop when it is executed via the normal SAP Console. If it does not pop-up there, there is something wrong with the module pool program itself and then you can dig to find the problem.

If it does, the problem may be in the HTML code generated for that page. You may regenerate the template code using an appropriate generation style by overwriting the existing HTML template.

Let me know.

Regards,

Utkarsha

Answers (0)