2014 Mar 21 6:53 AM
Hi,
In smartform, Space is displayed as "#" symbol. The code is given below.
write gv_amount to lv_amount.
replace all occurrences of '.' in lv_amount with ' '.
The following steps I've tried,
1. declare a constant for space.
2. constants: lc_hor_tab type c value cl_abap_char_utilities=>horizontal_tab.
3. ICON_SPACE
How to print the space.
Thanks with Regards,
Vallamuthu M
2014 Mar 21 9:24 AM
Hello Vallamuthu,
No code is required for such requirement.
In text module of SAP smart-form, simply write &lv_amount(T)&.
It is a smart-form formatting option provided by SAP.
This option suppresses thousand indicators when displaying fields of types DEC, CURR, INT and QUAN.
Hi,
In smartform, Space is displayed as "#" symbol. The code is given below.
write gv_amount to lv_amount.
replace all occurrences of '.' in lv_amount with ' '.
The following steps I've tried,
1. declare a constant for space.
2. constants: lc_hor_tab type c value cl_abap_char_utilities=>horizontal_tab.
3. ICON_SPACE
How to print the space.
Thanks with Regards,
Vallamuthu M
2014 Mar 21 6:56 AM
What exactly are you trying to achive..? which language is the smartform displayed..? Some screen shot of output will help us in understanding your problem.
Nabheet
2014 Mar 21 7:01 AM
2014 Mar 21 7:18 AM
Hi Munesh,
Thanks for your reply. This note is already implemented
Thanks with Regards,
Vallamuthu. M
2014 Mar 21 7:09 AM
Can you add screen shot of output and smartform node via tcode SMARTFORM?
Also, can you check if you get same output using different devices. If not, then this might be a printer config issue.
2014 Mar 21 7:24 AM
Hi,
Kindly find below the screen shot. In Print pre-view also like this. Intead of # i need space.
2014 Mar 21 7:37 AM
Do you need to remove thousand separators etc..? what is your requirement..?
2014 Mar 21 7:50 AM
A few things are clear from the above image.
1. There is space being used other parts of the Smartform as well. So there is nothing wrong with the data you are passing in those fields.
2. Second, check what line type and character type are being passed for this # field. If they are same then you need to contact basis to see why its happening since there is nothing wrong at Smartform level.
2014 Mar 21 8:35 AM
Hi Nabheet Madan,
Thanks for your reply, Yes I want remove Thosand separators.
Thanks with Regards,
Vallamuthu M
2014 Mar 21 1:04 PM
2014 Mar 21 7:54 AM
Hi,
Please try the below syntax:
replace all occurrences of '.' in lv_amount with space.
Regards,
Munesh.
2014 Mar 21 8:43 AM
Hi Munesh,
This syntax doesn't give space and also # sympol.
Thanks with Regards,
Vallamuthu M
2014 Mar 21 9:24 AM
Hello Vallamuthu,
No code is required for such requirement.
In text module of SAP smart-form, simply write &lv_amount(T)&.
It is a smart-form formatting option provided by SAP.
This option suppresses thousand indicators when displaying fields of types DEC, CURR, INT and QUAN.
2014 Mar 21 9:35 AM
2014 Mar 21 9:46 AM
Hi Patel,
thanks for you reply.
Instead of thousand field separator, we i need space. is this syntax give space?
Thanks with Regards
Vallamuthu M
2014 Mar 21 9:51 AM
2014 Mar 21 9:55 AM
No, it wont give space.
As i have already mentioned, it suppresses thousand indicators.
Do you really need space between digits??
2014 Mar 21 10:03 AM
There are options of formating provided by SAP in Smartforms : read Output Options for Field Contents.
Else use a syntax with back quote :
replace all occurrences of '.' in lv_amount with ` `.Regards,
Raymond
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |