cancel
Showing results for 
Search instead for 
Did you mean: 

Printing amount in Indian format in smartform for cheque printing

Former Member
0 Kudos

Hi All,

We have created a smartform for cheque printing. The amount displayed in the smartform is 6,030,000.00 but we want it to be displayed in the cheque as 60,30,000.00. Is there any fm for it or can we use edit-mask in samrtform?

Kindly suggest to proceed.

Thanks & Regards,

Neela.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Neela,

Just above text node in smartform create Program lines and include below code:

SET COUNTRY SPACE.

after that copy value into the variable from which you will print on smartform.

SET COUNTRY SPACE.
v_amount = value. " value = 6,030,000.00.

The above two lines of code should be last ltwo lines in program lines.

BR

Dep

Former Member
0 Kudos

Hi Dep,

I have tried using SET Country space in smartform but still no changes.

SET COUNTRY SPACE.

v_amount = it_reguh-rwbtr.

v_amount is the variable used to display the amount.

Kindly suggest.

Thanks in advance,

Neela

Edited by: Neela M B on Aug 19, 2011 5:18 PM

Former Member
0 Kudos

Hi Neela,

In global decalration declare v_amount TYPE text .

Also in global declaration > Initialization > enter below code:

SET COUNTRY SPACE.

BR

Dep

Edited by: DeepakNandikanti on Aug 19, 2011 2:12 PM

Former Member
0 Kudos

Hi Dep,

Thanks for the help issue resolved.

Thanks & Regards,

Neela.

Answers (1)

Answers (1)

lijisusan_mathews
Active Contributor
0 Kudos

If you can rectify it using edit mask, write it to a string data type using write and then display the string.