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

Smartforms: Space is displayed as #

vallamuthu_madheswaran2
Active Contributor
0 Likes
4,242

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,483

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

17 REPLIES 17
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
3,483

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

Read only

muneshpatwari
Active Participant
0 Likes
3,483

Hi,

Please check the OSS note 1163452.

Regards,

Munesh.

Read only

0 Likes
3,483

Hi Munesh,

Thanks for your reply. This note is already implemented

Thanks with Regards,

Vallamuthu. M

Read only

Former Member
0 Likes
3,483

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.

Read only

0 Likes
3,483


Hi,

Kindly find below the screen shot. In Print pre-view  also like this. Intead of # i need space.

Read only

0 Likes
3,483

Do you need to remove thousand separators etc..? what is your requirement..?

Read only

0 Likes
3,483

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.

Read only

0 Likes
3,483


Hi Nabheet Madan,

Thanks for your reply, Yes I want remove Thosand separators.

Thanks with Regards,

Vallamuthu M

Read only

0 Likes
3,483

Hi,

something like this: WRITE p TO c USING EDIT MASK 'RRV___ ___ ___ ___ ___ ___.__' ?

cheers

janis

Read only

muneshpatwari
Active Participant
0 Likes
3,483

Hi,

Please try the below syntax:

replace all occurrences of '.' in lv_amount with space.

Regards,

Munesh.

Read only

0 Likes
3,483

Hi Munesh,

This syntax doesn't give space and also # sympol.

Thanks with Regards,

Vallamuthu M

Read only

Former Member
0 Likes
3,484

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.

Read only

0 Likes
3,483

Harshal Patel well done i did not know it:)

Read only

0 Likes
3,483

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

Read only

0 Likes
3,483

Thanks Buddy.

Read only

0 Likes
3,483

No, it wont give space.

As i have already mentioned, it suppresses thousand indicators.

Do you really need space between digits??

Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,483

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