ITSmobile: Function sh() missing (ITS_UNEXPECTED_TOKEN/FUNCTION)
For those that are planning to upgrade the systems to a higher EhP, the dump ITS_UNEXPECTED_TOKEN (or ITS_UNDECLARED_FUNCTION) might happen in your ITSmobile applications.
This blog shows information about the dump and the solution for the issue.
ST22 Short dump
Looking at ST22, a short dump like the example below can be found:
Category ABAP Programming Error
Runtime Errors ITS_UNEXPECTED_TOKEN
ABAP Program <ABAP Program>
Application Component Not assigned
Date and Time dd.mm.yyyy hh:mm:ss
Template interpretation terminated, syntax error.
The template templates/itsmobile/99/include/<template>.html
contains syntax errors and therefore could not be compiled. Cause of
error: The token “(” (“(“) was not recognized.
The syntax error is in row: XX, column: YY
The HTMLB row with errors is:
” … src=”`mimeURL(~service=”itsmobile”,
~theme=99, ~language=””, `sh()`>”
Please read KBA 2221538 for the solution. It contains the instructions to edit the necessary template and additional steps to be performed.