cancel
Showing results for 
Search instead for 
Did you mean: 

Blank Space displayed as # character - Smartform

Former Member
0 Kudos

Hi Guys,

I am facing a strange issue in printing a smartform. I would like to have any expert advice on the same.

I am displaying the VAT no on the PO form and the VAT No is like this '110 012'. There is space between 110 and 012, it is a single field value. But when I take a print preview or a printout. It is showed as '110#012'.

When I check it in debug mode, it does not display the # sign. The domain for VAT No is STCEG which is a character field.

Please let me know if anyone has any solution for the same.

Thanks,

Mayank

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Does this happen for all VAT numbers? Just as a test go to the master data and manually delete the space and then put it back - I'm guessing that this data was entered originally from a cut&paste source. Worth a try just to see what happens....

Regards

Stu.

Former Member
0 Kudos

Hurraaaaaaaay..

And here goes the solution..

Sometimes the solution is as simple as that. And the reason was the same..what Stu said. I tried his solution and it worked.

Thanks a lot Stu !

Regards,

Mayank

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

please try the belowcode it will replace ur # symbol with space.

data: var type string,

Var1 type string,

Rule(60) value '# '.

var = '110#012'.

TRANSLATE var USING RULE.

write var.

regards,

sreelakshmi