Application Development 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: 

getting # symbol in smartform output.

0 Kudos

Hi all,

actually the street name is : sanand-II Industrial Estate

but it is comming as          : sanand#II Industrial Estate.

in database table also ' sanand-II Industrial Estate ' this name is available but in smartforms output it is showing as  sanand#II Industrial Estate.

please let me know your valable answers.

thanks and regards,

sainathkaja.

6 REPLIES 6

deepan_v_s
Active Participant
0 Kudos

Hello Sainath,

There might be  a problem with the printer setting which is used to print the form. The printer setting for the form does not support that character.


Please change the printer setting and check the same !! it might solve the issue.


But as i see the character in which we are facing the issue is '-' and this is supported by all character sets. For detailed information place the screen shot of the output and the entry from the table. And also mention in which language the form is printed and which character set is used.



Regards,

Deepan Swaminathan.

Former Member
0 Kudos

Hi sainathkaja,

It's possible that the symbol between sanand and II is not - (a minus sign) but is in fact – (a dash).

I hope you can see the difference, the dash is what MS Word turns the minus sign into into while you're typing.  If the address has been pasted or uploaded from such a source it could contain this character.

As Deepan has mentioned, not all device types (used to generate the smartform) can support these characters.

Regards,

Nick

VenkatRamesh_V
Active Contributor
0 Kudos

Hi,

Try,

sanand<(>-<)>II Industrial Estate


Hope it helpful,


Regards,

Venkat.

0 Kudos

this will be directly fetch from the database table we cannot modify it

0 Kudos

Hi,

View the sample code  logic .

REPORT ytest.

DATA: lv_text(30) type value 'DEMO-EXAMPLE',    "Table field content

       lv_cnt      type i,

       lv_dis(30)  type c,

       lv_temp(30) type c,

       lv_cntt     type i.

CONSTANTS: c_symb(04) value '<(>'.

lv_cnt = strlen( lv_text ).

ADD 1 to lv_cnt.

DO lv_cnt  TIMES.

lv_cntt = sy-index - 1.

lv_temp = lv_text+lv_cntt(1).

SEARCH '-' FOR lv_temp.

IF sy-subrc IS INITIAL.

CONCATENATE lv_dis c_symb lv_temp c_symb into lv_dis.

ELSE.

CONCATENATE lv_dis lv_temp into lv_dis.

ENDIF.

CONDENSE    lv_dis NO-GAPS.

CLEAR lv_temp.

ENDDO.

WRITE:/ lv_dis.

Hope it helpful,

Regards,

Venkat.

0 Kudos

I solved that problem. Try to this.

1. Copy the dash.

2. REPLACE ALL OCCURRENCES OF 'dash' IN fieldname WITH '-'.

The # will now replaced by ( - ).

Thank you