cancel
Showing results for 
Search instead for 
Did you mean: 

UNIT PRICE - MR21

Former Member
0 Kudos

Dear MM Friends

While I am updating standard price of Finish in MR21 , some Finish are updating and some are roughing a run time error when saving the changes as given bellow

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was not

caught in

procedure "MBEW_NEW_PRICE_UNIT" "(FORM)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

An overflow was discovered in an ongoing arithmetical operation with

operands of type P. Possible causes are:

1. The result field of type P is too small for the result.

2. The result or a intermediate result has more than 31 decimal places.

What could be the reason

Thanks in advance

Ashok

Accepted Solutions (0)

Answers (1)

Answers (1)

JL23
Active Contributor
0 Kudos

can you tell what values you actually entered ?

Former Member
0 Kudos

Dear Jurgen

I have entered " UNIT PRICE" and " NEW PRICE"

In unit price we have entered 60000 ( No. of Tablet in one shipper) and in New Price the standard price per shipper i.e. Rs.5,76,600.00

and for your information we have also maintain the "UOM" in the additional data tab of that Material Master. i.e.( 1 Shipper = 60000 Each)

Price Control Setting IN Mat. Master is "S"

Thanks

Ashok

Former Member
0 Kudos

Hi,

Can you tell what was the initial price of the material and the price unit and can you mention at which line you are getting the error.

This may be the case that the landed materal price in unit (No. of tablets) is so exceeding the field parameter.

Actually what happenes, if you maintain the price in higher ratio, like Rs 500 per 213 EA, the ratio for each price is saved in table. If the landed value (in this case, 500/213 = 2.3474178403755868544600938967136) exceeds the field parameter,then it doesnot get saved and gives termination error.

May be you are facing the same problem.

Hope your querry is answered.

Regards

Former Member
0 Kudos

Hi

Thanks for your reply

Initially it was

TDAEGN0001 Acetyl SalicylicAcid Tab. 300mg50x1x1000 PITH 47,038.10 11.00 1 1 S 0.00 INR

than it changed to

TDAEGN0001 Acetyl SalicylicAcid Tab. 300mg50x1x1000 PITH 55,000.00 2,500.00 5,000 12,000 S 0.00 INR

Now we want to change it to

TDAEGN0001 Acetyl SalicylicAcid Tab. 300mg50x1x1000 PITH *55,000.00 5,76,600 60,000 12,000* S 0.00 INR

This is my client requirement ,so please advice me How to make the change

Thanks

Ashok

JL23
Active Contributor
0 Kudos

your entry is too big for SAPs internal calcualtions.

sap calcualtes this way:

CALCFIELD = NEW_PRUNIT * OLD_PRICE / OLD_PRUNIT.

this calcfield is defined with max value of 999999999.99

your value is 2 digits bigger

Former Member
0 Kudos

thanks a lot to both Darpan & Jurgen

Thanks

Ashok