cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms protect from field break

Former Member
0 Kudos
84

Hi all.

It is necessary to protect field like 1 234 567,89 (char type) from break to the next line. The separator between thouthands is space. Thats why the value can be broken in two parts.

How can I avoid field splitting?

Thank you very much!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

IF separator for thousands is '. ' , value will split correctly.

But when separator is space, value will breake to next line.

Is it possible to protect flied from line breake?

Help please.

Sandra_Rossi
Active Contributor
0 Kudos

I see that <31> represents "no break space" (TCP01 table). Could you try it.

Former Member
0 Kudos

Hi,

Thanks for your replay.

I've tried to use symble <31>.

  1. display in both: print privew and ptint.

Value 999 999.99 is still breaking to another line....

Sandra_Rossi
Active Contributor
0 Kudos

gotcha. You may create a character format (NB for example) in your sapscript style, with the "protected" option. Then use <NB>999 999.99</> in your sapscript

Former Member
0 Kudos

First of all, I'd be sure that my field in the SmartForms table is wide enough to handle my largest value (along with a sign, if necessary). Wouldn't that be the first step to try to avoid wrap to next line?