Hello Experts,
We have a requirement where we need to retract BPC data to ECC. The problem is that upto 7 decimal places are stored in BPC and when sending information to ECC it can't be store because just 2 decimals are accepted.
We implemented Write Back Badi to round with the code that Sivakiran shares in the next post: BADI for rounding decimal values in bpc 10.
The problem is the performance and the filters. We have for filters just DM. The problem with the DM is that we have other DM processes the the customer runs and some are affected by this BADI. My question in this case is, Is it possible to add Filters or do something to run the BADI when running specific DM?
Since we are on Testing phase, we deactivate the BADI to test the other DM processes and I am trying to Round the Data in the accounts using a tranformation file for the PostPrimary Badi. My tranformation file is
*OPTIONS |
FORMAT = DELIMITED |
HEADER = YES |
DELIMITER = , |
AMOUNTDECIMALPOINT = . |
SKIP = 0 |
SKIPIF = |
VALIDATERECORDS=YES |
CREDITPOSITIVE=YES |
MAXREJECTCOUNT= |
ROUNDAMOUNT=2 [This condition doesn't work] |
*MAPPING |
SIGNEDDATA=SIGNEDDATA |
*CONVERSION |
SIGNEDDATA=Round1.xls |
My conversion data is the next:
EXTERNAL | INTERNAL | FORMULA |
* | * | Math.round(Value*100)/100 |
The tranformation file doesn't work either.
I haven't find the way to do the proper rounding according the requirements.
Could you give me an orientation?
Other way is the one in next post, but didn't understood, plus we perform a std script for currency conversion. Inline ROUNDING in REC expression
Is it possible to do the code *REC( EXPRESSION=Math.round(
for the next scirpt logic??
How can I include it?
*RUN_PROGRAM CURR_CONVERSION
CATEGORY=%CATEGORIA_SET%
CURRENCY=%MONEDA_SET%
TID_RA=%PERIODO_SET%
RATEENTITY=Global
ENTITY=%CECOS_SET%
*ENDRUN_PROGRAM
Could you help me??
Thanks in advance for the post.
Best regards.