11-14-2007 8:18 AM
Hi All,
I need a FM which converts amount(say 12.50) to (1250).urgent..
regards,
kavitha
11-14-2007 8:26 AM
Hi kavitha,
Rather than using the FM why don't u multiply the amount with 100.Doing this u will get desired result.
Reward if helpful.
Regards,
Rajesh Akarte
11-14-2007 8:25 AM
Hi,
Use this code...
DATA : amount TYPE char16.
amount = '12.58'. "your variable goes here
REPLACE ALL OCCURRENCES OF '.' IN amount WITH ' '.
CONDENSE amount.
WRITE 😕 amount.
11-14-2007 8:26 AM
Hi kavitha,
Rather than using the FM why don't u multiply the amount with 100.Doing this u will get desired result.
Reward if helpful.
Regards,
Rajesh Akarte
11-14-2007 8:38 AM
Hi..
Your required Currency Format is JPY where there are no cents .or decimals.
No Need for FM..
You can get required format with Write statement .
Please check "
Write l_value TO l_new CURRENCY 'JPY' .
Hope this helps .
Thanks .
11-14-2007 8:41 AM
Hi,
check this
DATA : amount TYPE char16.
data: v_amt type string.
PARAMETERS p_amt type string.
REPLACE ALL OCCURRENCES OF '.' IN p_amt WITH ' '.
CONDENSE p_amt.
WRITE 😕 p_amt.