Skip to Content
0

In CBTA can We do summation of two variables which are holding values?

Jul 25, 2017 at 01:30 PM

87

avatar image
Former Member

I have two values stored in two variables,now I need to add them and store it in another variable ,when I'm using '+' operator to add them it is considering as concatenation instead of plus sign,Now what I need to do?Please help me out in this

Thanks,

Sailaja.

10 |10000 characters needed characters left characters exceeded

Are you actually using SAPUI5? Either or both of the two Answers provided should have given you sufficient insight for a solution.

If you are using SAPGUI, then should you not be asking this question under an ABAP related tag?

0
Former Member

Hello Mike,

So sorry about my question here,I'm new to this site
I'l post the same in SAPGUI

Thanks,

Sailaja.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Michael Appleby
Jul 25, 2017 at 01:32 PM
0

Hi Sailaja,

If you are using (or even if not using) Web IDE, you should take a look at this blog: https://blogs.sap.com/2015/06/16/simple-sapui5-application-for-addition-of-two-numbers-using-sap-web-ide/. Might also want to do a bit more searching, but I did not find all that much out there for your issue.

Regards, Mike

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Mike,

No, I'm not using Web IDE. the blog which you provided is not going to help me why because i'm working SAP GUI not web,could you please suggest me anything else?

Thanks ,

Sailaja

0
Jamie Cawley
Jul 25, 2017 at 01:55 PM
0
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Jamie,

I didnt found this blog is not going to help me in this case.

Thanks,

Sailaja.

0

The link provides multiple answers to the problem you describe, such as

var x = +y + +z;

or

var i=2;  
var j=3;  
var k = Number(i) + Number(j); // 5  <br>

if these do not help please provide an example of your issue.

Regards,

Jamie

0