Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
cris_hansen
Advisor
Advisor

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.

1 Comment