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

Calculated value for SAP Scripts

Former Member
0 Likes
535

Hi All,

I have made changes to two seperate print programs which are used to print Invoice and Packing Slip respectively. However, I'm using the dimension details from VEKP in both. When I calculate volume multiplying the length, breadth and height (data fetched from VEKP) table, in one of the programs, the calculated value appears correctly while in the other it is not.

The Issue:

While calculating volume in one of the programs the system does not recognize the decimal point and considers it as a thousand separator and hence it arrives at wrong calculated value. Whilst in the other program it is working fine. This appears weird to me since it is the same system, the data being the same, the variable declarations also being the same.

Please let me know if there is some thing I need to do to make sure I get the correct calculated value.

You suggestions will be appreciated. Thanks.

- Niranchan.

3 REPLIES 3
Read only

Former Member
0 Likes
503

HI,

Please copy your code here to get more clarification of the issue you facing

Regards,

Dhananjay

Read only

0 Likes
503

Hi,

There is no code required for this,

Volume = Length * Width * Height.

This data comes from VEKP table from the corresponding fields.

Thank you.

Read only

former_member196064
Active Participant
0 Likes
503

Sounds like a

SET COUNTRY 'US'

might work