cancel
Showing results for 
Search instead for 
Did you mean: 

openDocument.jsp error "Callback Function cannot be found"

Former Member
0 Kudos

Has anyone seen the error message "TODO: Callback Function cannot be found" when calling /OpenDocument/opendoc/openDocument.jsp in a web application on XI 3.1.

Tracing the error it appears to be originating from within openDocument.jsp but cannot work out what the error is caused by.

The code works in our XI R2 environment without a problem so perhaps there have been some changes between XI R2 and XI 3.1.

Any help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

It means a client-side JavaScript unexpectedly could not find a JavaScript function it expected.

So some *.js file isn't being loaded, or the function conflicts with some surrounding JavaScript in your page.

I'd recommend first running the web browser with a JavaScript debugger to see exactly what it's looking for.

Sincerely,

Ted Ueda

Former Member
0 Kudos

From running the debugger on the application - I have discovered that the error is being returned because the opendocInvokeActionCallBack variable (within opendocCallbackInsideApplication.js) is being set as null within the OpenDocument application.

The url my application is passing to call OpenDocument is:

http://<server>:8080/OpenDocument/opendoc/openDocument.jsp?appKind=InfoView&service=/InfoViewApp/com...

Any ideas?

ted_ueda
Employee
Employee
0 Kudos

We need to know why it's null.

Strange to see token=null in the URL, but I don't see how that would remove the JavaScript function.

You may want to open a support message with SAP.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Perhaps the token needs to be sent as its loading the report in a blank.html and not within itself.

If I take the URL and paste into the current window the report works so perhaps the problem is to do with token=null.

This is the function I am using to get the value of the token: String token = (String)session.getAttribute("Token");

Answers (0)