Skip to Content
Author's profile photo Cristiano Hansen

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

Short Text

       Template interpretation terminated, syntax error.

What happened?

       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()`>”

…”

Solution

Please read KBA 2221538 for the solution. It contains the instructions to edit the necessary template and additional steps to be performed.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo nikhil maradi
      nikhil maradi

      Thanks a lot Crisitano for the blog. Helped me out in solving the issue.

      In short, The change has to be done in ITSMOBILE service.