cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PR_CHANGE dump for currency COP

former_member195167
Participant
454

Hello everyone,

I get a dump that states 'Exception Condition ERROR_CHECK_LIMIT Triggered' when I call BAPI_PR_CHANGE passing items with currency of type COP and values where second last digit is 0 (eg: 12305).

The standard code calls FM CURRENCY_CONVERTING_FACTOR and obtains a factor of 100 for currency type COP.
Post this, it divides the value by the factor (eg: 12305/100 = 123.05).

Next, it checks if the [value - floor(value) = 0.05] obtained lies between 0.01 and 0.09. If it does, then it raises an exception. It performs this in Method CHECK_CURRENCY_DECIMALS of class CL_LIMIT_MMSRV.

Any idea why it does this? Any suggestions on what I could do to avoid this?

Thanks,
Saud.

SimoneMilesi
Active Contributor
0 Kudos

Hi Saud!

Are the limits (0,01-0,09) hardcoded or read from some customizing table?
Did you check if you have any OSS note for the BAPI to be installed?

former_member195167
Participant
0 Kudos

Hi Simone,

The limits (0,01-0,09) are calculated in the CHECK_CURRENCY_DECIMALS method. Here's where it happens -

Accepted Solutions (1)

Accepted Solutions (1)

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi Saud,

Check SAP NOTE '2277140 - PR creation failed in BAPI_PR_CREATE if currency has zero decimal places'

Regards

former_member195167
Participant
0 Kudos

This did the trick! Thanks! 🙂

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

Did you (or basis) perform some search on OSS notes available in your system with keyword such as "CL_LIMIT_MMSRV"

Else you should

former_member195167
Participant
0 Kudos

Thank you for your suggestions Raymond.

The currency definition in OY04 has 0 decimals for COP (just as in TCURX table).

This issue is applicable to all 0 decimal currencies such as JPY.

Dump Screenshots -