Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Javascript in ABAP is throwing error

Former Member
0 Likes
576

Hi all,

We are having some IAC applications, the older version is ECC 4.6 . All the applications are working fine there.

Now that we have migrated from ECC 4.6C to ECC 6.0, we have just copied all the IAC applications to the new system.

When tested in the new system. one of the applcitions is throwing a Javascript error.(i.e., the ABAP dump is pointing to the Javascript ParseInt method.)

The error is "0.00 could not be converted into numerical value"."ITS_EXPRESSION_NOT_NUM".

My question is:

-


Is there any possibility that ECC 6.0 is not recognizing the java script of 4.6C(specially the ParseInt functionality).

is there any help documents which give us code samples for syntax to be followed when writing the java script in ABAP.

-


Any clue to resolve the error would be greatly appreciated.

Thanks & Regards,

Kavitha

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
529

Is it a server side script? If so you may check corresponding [JS in ABAP documentation|http://help.sap.com/saphelp_nw04/helpdata/en/49/a8e3c8d59811d4b2e90050dadfb92b/frameset.htm].

It if is a client side script, the issue should be then connected to a browser not a SAP WEB AS.

Regards

Marcin

Read only

0 Likes
529

Hi Marcin,

Thankyou for your quick reply.

It is server side scripting only. but i have already chekced the link which u sent me. i did not find anything realted ... we are not able to debug the issue?

This is the place where it is throwing the error:

var lv_pct=`FREM-TBR_PCT[j]`

if (parseInt("`lv_pct`") == `i`)

is the syntax of the code is correct?

Do you want me to send the whole code to you?

Also please tell me if there any way to debug the javascripts for this IAC applications.

Thanks & Regards,

Kavitha.

Read only

Former Member
0 Likes
529

Moving the thread to the ITS forum