Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM to eliminate Currency Code

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.