Application Development and Automation 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: 
Read only

Currency

0 Likes
1,276

Hi All

My amount Field Contains the value 1234567890.12

I Should display in INDIAN RUPEE FROMAT (1,23,45,67,890.12)

Thanks

siva

9 REPLIES 9
Read only

Former Member
0 Likes
1,174

Hi,

Refer to the following code:

write int_final-hwbas to int_exl_pca-hwbas currency int_final-hwaer.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
1,174

move it to charecter field with decimals 2 extension...automatically commas will be generated......

Read only

0 Likes
1,174

Hi

Give me one example.

Thank

siva

Read only

amit_khare
Active Contributor
0 Likes
1,174

USE FM CONVERT_TO_LOCAL_CURRENCY

Read only

Former Member
0 Likes
1,174

Hi

use the command

SET COUNTRY 'IN'

and display this cuurency field and see

it will display in indian format

Regards

Anji

Read only

Former Member
0 Likes
1,174

<b>use this CONVERT_TO_LOCAL_CURRENCY to convert into Local

and CONVERT_TO_FOREIGN_CURRENCY to convert to Foreign</b>

Read only

Former Member
0 Likes
1,174

Please try following EXAMPLE CODE


DATA:  DMBTR  LIKE BSIS-DMBTR,
       WAERS LIKE BSIS-WAERS.

DMBTR  = 1234567890.12.
WAERS = 'INR'.                    "FOR Indian Rupee

WRITE:  DMBTR CURRENCY WAERS.

Hope this will helps.

Read only

0 Likes
1,174

Hi

That example code will display like this 12345,678,901.2

But i want 1,23,45,67,890.12

Thank

siva

Read only

0 Likes
1,173

Dear siva kumar,

You can try on following code to get all currency format and try to select one of the type listed.(All country currency will be listed.) But I afraid that the format you want is not Indian Rupee.

If still could not find the desired format, probably you have to code it using string.


TABLES: TCURC.
DATA:  DMBTR  LIKE BSIS-DMBTR,
       WAERS LIKE BSIS-WAERS,
       IT_TCURC LIKE TABLE OF TCURC.

DMBTR  = '1234567890.12'.

SELECT * FROM TCURC INTO TABLE IT_TCURC.
LOOP AT TCURC.
  WAERS = TCURC-WAERS.
  WRITE: / WAERS, DMBTR CURRENCY WAERS.
ENDLOOP.