cancel
Showing results for 
Search instead for 
Did you mean: 

"Unknown runtime error" for /BC/BSP/SAP/thtmlb_scripts/scripts.js

udaykumar_kanike
Active Contributor
0 Kudos
327

Hi All,

    I am getting "Unknown runtime error" related to javascript. I followed below mentioned blog. But my expand button is not working. Here is my complete page code.

http://wiki.sdn.sap.com/wiki/display/CRM/New+appointment+assignment+block+at+home+screen

<!DOCTYPE HTML>

<html>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

<%@page language="abap" %>

<%@extension name="htmlb" prefix="htmlb" %>

<%@extension name="xhtmlb" prefix="xhtmlb" %>

<%@extension name="chtmlb" prefix="chtmlb" %>

<%@extension name="thtmlb" prefix="thtmlb" %>

<%@extension name="crm_bsp_ic" prefix="crmic" %>

<%@extension name="bsp" prefix="bsp" %>

<!-- CSS goes in the document HEAD or added to your external stylesheet -->

<style type="text/css">

.appTab table   {

                  font-family: verdana,arial,sans-serif;

                  font-size:11px;

                  color:#333333;

                  border-width: 100%;

                  padding:3px;

                  border-style: solid;

                  border-color: #666666;

                  background-color: #ffffff;

                  text-align: left;

                  border-collapse: collapse;

                  }

.appTab td       {

                  font-family: verdana,arial,sans-serif;

                  font-size:11px;

                  color:#333333;

                  border-width: 1px;

                  padding:3px;

                  border-style: solid;

                  border-color: #666666;

                  background-color: #ffffff;

                  margin: 1px 1px 1px 1px;

                  text-align: left;

                  width: 181px;

                  }

.appTab th, td#titleId {border-width: 1px;

                         padding:1px;

                         border-style: solid;

                         border-color: #666666;

                         background-color: #ffffff;

                         text-align: left;

                         margin: 1px 1px 1px 1px;

                         width: 180px;

                      }

.appTab .th-tv-row-mo                   {background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-col{background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-col .th-lk {background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left; }

.appTab .th-tv-col-mo{background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

/* only the expander in the footer of the table */

.appTab .th-tv-expander         {

                                            background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;

                                 }

.appTab .th-tv-expander-i1              {  border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666;

                                            background-color: #ffffff; }

.appTab .th-tv-expander-i2              {border-bottom:1px; width: 1px; background: #ffffff; padding: 1px 1px 1px 1px;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-expander img             {background:  #ffffff; margin: 1px 1px 1px 1px;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

/* pager and expander combined in the footer of the table */

.appTab .th-tv-footer                   {border-style: solid;

                                            border-color: #666666; padding: 3px;background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            text-align: left;}

.appTab .th-tv-footer table            { font-family: verdana,arial,sans-serif;font-size:11px;color:#333333;border-width: 3px; border-style: solid;

                                            border-color: #666666; padding: 3px;}

.appTab td.th-tv-footer-left            {border-style: solid;

                                            border-color: #666666; padding: 3px; margin:1px 1px 1px 1px; padding: 1px; background:  #ffffff; width: 10px;}

.appTab .th-tv-footer-left .th-tv-expander {border: 1px;background:#ffffff; padding: 1px;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-footer-left .th-tv-expander-i1 {background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-footer-left .th-tv-expander-i2 {background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab td.th-tv-footer-right           {background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-footer-right .th-tv-pager{background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left;}

.appTab .th-tv-footer-right .th-tv-pager-i1 {background-color: #ffffff;

                                            border-width: 1px;

                                            padding:3px;

                                            border-style: solid;

                                            border-color: #666666; padding: 3px;

                                            text-align: left; }

</style>

<%

   data: lv_xml    type string.

   lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).

%>

<!-- Table goes in the document BODY -->

<table class='appTab'   cellpadding='0' cellspacing='0'>

<chtmlb:configCellerator xml                   ="<%= lv_xml %>"

                          design                ="TRANSPARENT"

                          id="ResTable"

                          headerText            ="<th> Activity Date </th><th> Category </th><th> Description </th><th> Account Name </th><th> Contact Person </th><th> Call Purpose </th>"

                          noHeader              ="FALSE"

                          onRowSelection        ="select"

                          table="//Resultnew/Table"

                          width="100%"

                          horizontalScrolling   ="false"

                          actionsMaxInRow       ="5"

                          fillUpEmptyRows       =" "

                          selectedRowIndex      ="<%= Resultnew->SELECTED_INDEX %>"

                          selectedRowIndexTable ="<%= Resultnew->SELECTION_TAB %>"

                          selectionMode         ="<%= Resultnew->SELECTION_MODE %>"

                          usage                 ="HOMEPAGE"

                          editMode              ="NONE"

                          visibleRowCount       ="10" />

</table>

</html>

Also, please see the attached error screen print. If I run the same application in Chrome, I am not getting any JavaScript error but my above mentioned table is over ridden by the other standard background table.

Any help would be much appreciated.

Thank you,

Uday

View Entire Topic
udaykumar_kanike
Active Contributor
0 Kudos

Anyone please help..!

Former Member
0 Kudos

Dear Uday,

please check following notes:

1303916

1303863

1302789

1301750

1303095

1037677

Normally the JavaScript file should be compressed. To make sure of this, open the SE80 transaction, then open the BSP Application called "thtmlb_scripts". In the Pages with Flow Logic section you'll find a file called scripts.js. That file is what ultimately gets rendered into the JavaScript file used by the browser. In the file's Properties tab, you should see the Compression drop-down list box set to "Remove leading and trailing spaces" and the Compression checkbox should be checked (enabling GZIP compression).

What type of browser do you use ?

Did you check Product Availability Matrix for supported browsers ?

Best regards,

Adrian

udaykumar_kanike
Active Contributor
0 Kudos

I din't find the profile parameter : ict/disable_compression

Is this the cause for JavaScript error. But the properties are as per you said.

We are using IE8 or IE9.

Yes this browser is supported.

Please find attached screen print which shows that the drop-down selection is "Remove leading and trailing spaces".

Please let me know if it is due to missing profile parameter in RZ11.

Thank you,

Uday Kanike

udaykumar_kanike
Active Contributor
0 Kudos

Hi Adrian,

         I checked with my Basis consultant to apply the above notes. He said that none of them are applicable to us. Please find the screen print saying the same.

Please suggest a way.

Thank you,

Uday

Former Member
0 Kudos

Dear Uday,

ict/disable_compression and ict/min_compression_size introduced in release 640, 700 and 710 (as per SAPNote 1037677). What's your SAP_BASIS version ?

Regards,

Adrian

udaykumar_kanike
Active Contributor
0 Kudos

Hi Adrian,

           Our Basis version is 

SAP_BASIS7020011SAPKB70211SAP Basis Component

and other info:

Kernel release    720                 DB client lib.     SQL_Server_9.00

Compilation       NT 5.2 3790 S x86   DB releases        MSSQL 9.00.2047 o

Sup.Pkg lvl.      300                 DBSL version       720.00

ABAP Load         1780                DBSL Patch Level   218

CUA load          39

Mode              opt

Rsyn file                             IP address         192.168.14.52

                                      SAP versions       700, 710, 701, 702, 711, 720, 730

                                      Operating System   Windows NT 5.0, W

                                      OP release         5.2

Thank you,

Uday

udaykumar_kanike
Active Contributor
0 Kudos

Hi Adrian,

             Please provide me some inputs. I would be very much thankful if you could help me a bit more.

Thank you,

Uday

Former Member
0 Kudos

Hi Uday,

Could you please create a http watch trace ?

Regards,

Adrian