08-02-2008 8:43 PM
Hi,
Could anyone let me know if there is any FM to eliminate Currency Code from the amount. I`m trying to display the value of the field F_OLD from the structure CDRED,and I`m getting the currency code along with the amount.
Any help on this would be helpful.Thanks in advance.
Regards,
Farhana.
08-02-2008 11:17 PM
Hi Farhana,
I don't think there is any FM to split the amount from the Currency code.
But one workaround this can be to use the offset.
If there are only 2 values that you are getting from the F_OLD field,use the length of the amount field and use the offset of the F_OLD field.
For example:
If the length of the amount field is 10 and the currency code is 2 and currency code is followed by the amount,then do like this
lv_amount = CDRED-F_OLD+0(10).
lv_amount would now contain just the amount value.
In case you have any further queries,please let me know.
Regards,
Puneet Jhari.