on ‎2021 May 24 11:34 AM
Request clarification before answering.
Hi Gowtham,
You can simply write a start routine (preferably if you have some calculations with the keyfigure in the transformation) or end routine to modify the value to 0 for erroneous records as you do that manually today. You can also do that in a field routine if you aren't doing any calculations with the keyfigure prior to that.
If you are on HANA, you can achieve it by using LIKE_REGEXPR function. If you want the same in ABAP, you can use CO (contains only predicate), just check for only numbers like below :
IF SOURCE_FIELDS-AMOUNT CO ' 0123456789.'
RESULT = SOURCE_FIELDS-AMOUNT.
ELSE.
RESULT = 0.
ENDIF.<br>The last '.' in CO parameter is for decimals to be considered, if you have ',' as decimal separator replace the '.' with ','.
Note : You can enhance the routine even further to count the number of decimals not to exceed 1, in that case it's an invalid entry.
Hope this helps.
Best Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gowtham,
In PSA, check for keyfigure having value 'NaN'. Correct the record and reload the request. Alternatively you can write Transformation Routine to handle unwanted value.
Regards,
Pradeep Jaiswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.