cancel
Showing results for 
Search instead for 
Did you mean: 

ITS: sound.html error

kammaje_cis
Active Contributor
0 Kudos

Hi,

I created HTML template for /SCWM/RFUI and everything works in Dev server.

I moved the Internet Service and SICF service to QA, but now it gives a dump.

--------------------------------------------------------------------------------------------------------

What happened?

    The template templates/itsmobile/99/include/sound.html

    contains syntax errors and therefore could not be compiled. Cause of

    error: The token "(" ("(") was not recognized.

    The syntax error is in row: 4, column: 130

    The HTMLB row with errors is:

    "`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99,

     ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" `sh()`>"

Error analysis

    The HTMLB parser could not execute an HTMLB statement because it could

    not recognize the token "(" ("(").

    This error can occur, for example, if an HTMLB backtick or the

    parentheses in a function call are missing.

    If you cannot find the syntax error, you can use HTML comments ( <!-and

    --> ) to comment out individual HTMLB statements and, in this way, at

    least localize the statement that contains the error.

    HTMLB example, error ITS_UNEXPECTED_TOKEN

    `varA=;`                          <- error, value is missing

    `if (varA == 0)`

    `varA = 1;`

    `end;``                           <- Error, one backtick too many

------------------------------------------------------------------------------------------------------------

Parameters

~THEME99
~ITSMOBILE1
~SOURCES/SCWM/RFUI, itsmobile
~TRANSACTION/SCWM/RFUI

Am I missing anything?

Thanks

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

former_member194364
Active Contributor
0 Kudos

Hi Krishna,

Try the following solution in the Quality System

Please perform the following steps:

Run report: SIAC_PUBLISH_ALL_INT

- then run Report SIAC_REGENERATE_TEMPLATES for the Service '/SCWM/RFUI'

       use the Generator MOBILE04

- republish again with the report: SIAC_PUBLISH_ALL_INT

- then retest the service once again. (delete browser cache)

Regards,

Oisin

kammaje_cis
Active Contributor
0 Kudos

Oisin,

I ran report SIAC_PUBLISH_ALL_INTERNAL in QA.

When I run SIAC_REGENERATE_TEMPLATES, it tries to create templates, which is not allowed in QA (Because QA is locked for changes).


So I have two options.

Run report SIAC_REGENERATE_TEMPLATES in Dev and transport them to QA. Or

ask Basis to open QA and run it SIAC_REGENERATE_TEMPLATES in QA itself.


What do you suggest?


Thanks

Krishna

former_member194364
Active Contributor
0 Kudos

Hi Krishna,

I would recommend to Run report SIAC_REGENERATE_TEMPLATES in Dev - first though run

SIAC_PUBLISH_ALL_INTERNAL in DEV before doing the Regeneration.

Regards,

Oisin

kammaje_cis
Active Contributor
0 Kudos

Oisin,

This is done in Dev and transported to QA. Republished using SIAC_PUBLISH_ALL_INTERNAL .

Invalidated cache using ITS Monitor,SMICM and Browser.


Unfortunately still the problem persists.

regards

Krishna

former_member194364
Active Contributor
0 Kudos

Hi Krishna,

Is the error same as before? (Your first post)

Can you confirm that the only difference between DEV and QA is the Kernel version?

They both are on the same SAP_BASIS version?

Perhaps you will need to ask your "Basis team" to open QA and run it SIAC_REGENERATE_TEMPLATES in QA itself?


Regards,

Oisin


kammaje_cis
Active Contributor
0 Kudos

Yes, Oisin,

Thanks for the reply.

-> Yes, the error/dump is same as earlier.

-> Only difference between Dev and QA is the Patch level. Basis levels are same.

About generating templates in QA.

Can you please let me know if this is the SAP suggested right way? I do not want to do any un-reversible change to QA.

Since I already transported the templates of /SCWM/RFUI to QA after regenerating, do you think regenerating in QA is required?

regards

Krishna

former_member194364
Active Contributor
0 Kudos

Hi Krishna,

Yes it would be the normal way to update the templates by regenerating them on QA(as it's not on same Kernel as DEV)

If you compare the sound.html on QA and DEV do they differ for the section in the above dump:

The syntax error is in row: 4, column: 130

    The HTMLB row with errors is:

    "`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99,

     ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" `sh()`>"

If they don't - issue must be with the function sh()

Regards,

Oisin

kammaje_cis
Active Contributor
0 Kudos

Oisin,

Regenerated templates and published all services in QA. Cleared all cache.

Issue persists. Also the code lines do not have any difference. Neither in sound.html nor in the sh() function.

Regards

Krishna

kammaje_cis
Active Contributor
0 Kudos

Since I regenerated the template in Dev server, now I have dump in the development server as well.

former_member194364
Active Contributor
0 Kudos

Hi Krishna,

Did you use the Generator MOBILE4?

Can you post more of the dump in the thread?

Regards,

Oisin

kammaje_cis
Active Contributor
0 Kudos

Yes, it was generated with MOBILE4.

Here is the dump.

Short Text                                                                                       
    Template interpretation terminated, syntax error.                                            

What happened?                                                                                   
    The template templates/itsmobile/99/include/sound.html                                       
    contains syntax errors and therefore could not be compiled. Cause of                         
    error: The token "(" ("(") was not recognized.                                               
    The syntax error is in row: 4, column: 130                                                   
    The HTMLB row with errors is:                                                                
    "`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99,
    ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" `sh()`>"                       

What can you do?                                                                                 
    Call transaction SE80 and correct the syntax error. In SE80, choose                          
    'Internet Service' and navigate to the corresponding template. Take the                      
    service, theme and template name from the path of the template causing                       
    the error:                                                                                   
    "templates/itsmobile/99/include/sound.html".                                                 
    Remember to publish the corrected template on the 'INTERNAL' site in                         
    order to activate the change.                                                                
   

Error analysis                                                                                   
    The HTMLB parser could not execute an HTMLB statement because it could                       
    not recognize the token "(" ("(").                                                           
    This error can occur, for example, if an HTMLB backtick or the                               
    parentheses in a function call are missing.                                                  
    If you cannot find the syntax error, you can use HTML comments ( <!-and
    --> ) to comment out individual HTMLB statements and, in this way, at                        
    least localize the statement that contains the error.
former_member194364
Active Contributor
0 Kudos

Hi Krishna,

Based on note

1963853 - Program termination in the Internet Transaction Server when you use

subscreens

you have the correction of this note as you are on SAP Basis 740 - SP7 (SAPKB74007)

Can you check the template manually to see if it has added the ";" as the solution of note #1963853 outlines.

Regards,

Oisin

kammaje_cis
Active Contributor
0 Kudos

Hi Oisin,

->When I try to implement the note using SNOTE, it says "Cannot be implemented". (Yes I am in 740-SP7)

-> I manually added the ';' after includeFrame (~frameName="X") in screen number 1.

Cleared al cache. But I continue to have the error.

Regards

Krishna

former_member194364
Active Contributor
0 Kudos

Hi Krishna,

You do NOT need to implement this note.

As I stated earlier

"you have the correction of this note as you are on SAP Basis 740 - SP7 (SAPKB74007)"

Perhaps need to look at the template generation timestamp in SE80?

Regards,

Oisin

kammaje_cis
Active Contributor
0 Kudos

Hi Oisin,

I did another round of "regeneration of templates". After that added the ";". Then published all. Then transported the new templates to QA. Again published all.

Now even in QA it is working.

Thanks for all your help.

Strange that changes by the note is not in our system, even though we are on SP7.

Thank you

Krishna

Answers (1)

Answers (1)

yuki_wang
Active Participant
0 Kudos

Hello Krishna,

Have you published the service in /nse80 in your QA system?
What is your system basis release and kernel patch level?


Best regards,
yuki

kammaje_cis
Active Contributor
0 Kudos

Hi Yuki,

Thanks for getting back to me.

In Development (Where it works well)

SAP kernel....... 741-40

SAP Basis 740 - SP7

In Quality (Where it dumps)

SAP kernel....... 741-44

SAP Basis 740 - SP7

Let me know if you find any issue with this.

Thanks

Krishna