cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI problem with calculating periodic data in YTD Model

former_member621597
Discoverer
0 Likes
441

Hi experts,

We have built a new time hierarchy due to client's requirement on changing fiscal year (JUL - JUN) to calendar year (JAN - DEC). We found out that the currency conversion result is being wrongly generated after this change.

Old and new time hierarchy:

Old time hierarchy:

New time hierarchy:

Logic Script:

The currency conversion will first run QTD_FX badi then run RUN_CONSO badi.

The script were successfully executed but unfortunately the final currency conversion result is wrong.

Screenshot below shows our manual calculation:

Correct value (Highlighted in Green) : [(250,000*4.10621)+ (500,000-250,000 * 4.14021)] = 2,061,605.00

Wrong value (Highlighted in Yellow) : (500,000 * 4.14021) = 2,070,105.00

As we tried to debug the QTD_FX badi, we found out that the badi actually takes in the correct exchange rate.

But unfortunately the final result is wrong as we further debug.


Would anyone have an idea what the problem could be?

Thank you,

Weng Yee

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

The problem is inside the incorrect code of custom logic badi. Ask the person who developed this badi or ask a qualified abap developer. Without badi code analysis it's not possible to help you.

Answers (0)