on 11-14-2008 7:22 AM
hi experts,
i am printing amount field in smartform output. like this 11,200.
but i need to display like this $11,200.
i need to print $ with amount field .
can u give me some idea?
Thanks
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraj,
Take the amount field as chracter in ur structure so that u will not get any zeros. concatnate $ to the amount field in ur driver program and pass to the smart form.
Thanks
Rasheed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI karthik,
thank u for ur valuable reply.i done as u said.but it was printing like this $ 11,200.but i want to print
as &11,200. i think by default amount fields right justified .so it is coming like that.i changed my styles to right justified agin it is coming like that only.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use a separate Global variable for amount symbol (say gv_amt_symbol(2) type C), and populate it in the initialization section of Global parameters in the smartform based on your currency.
Use it before every amount field. This is more efficient that concatenating with each amount field value.
Hope this will be helpful.
Regards
Karthik D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try like this.
Data : v_amount type i value 11200,
v_final type string
If u r getting currency, then check the currency.
If Curr eq 'USD'
concatenate '$' v_amount into v_final separated by space.
endif.
Print V_FINAL where do u want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try like this.
Data : v_amount type i value 11200,
v_final type string
If u r getting currency, then check the currency.
If Curr eq 'USD'
concatenate '$' v_amount into v_final separated by space.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.