cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with blank spaces, fields and smartfroms!

Former Member
0 Kudos

Hello ABAP developers!

My problem is the following:

I have got a text element in a smartform. In the text element there are normal text and fields, ic est:

&G_T_CIRCULARES-ID14&,<b> a &G_T_CIRCULARES-ID15&</b>

<b>N/Ref: &G_T_CIRCULARES-ID12&</b>

Con el fin de realizar la factura correspondiente ...........

As you can see there are blank spaces between the fields and the normal text, but when I activate the smartform, the following happen:

&G_T_CIRCULARES-ID14&, <b>a&G_T_CIRCULARES-ID15&</b>

<b>N/Ref:&G_T_CIRCULARES-ID12&</b>

Con el fin de realizar la factura correspondiente .....

And the blank spaces (in bold) disappear. I don't know way .... I think it could be the typical stupid newbie error.

Any solutions? Thanks a lot!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Try to see, by old editor, if you've inserted those variable in the right way.

Max

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi guys,

<b>Kiran</b>

Thank you for your ideas. You don't solve my problem but you gave me ideas to solve it.

<b>

Max</b>

I saw it in the old editor, and I think that variables were inserted in the right way. But, what do you exactly mean with "the right way"?

<b>Sai</b>

Blank spaces don't show after activation neither in the output.

What I finally have done is, following the example of the first post:

CONCATENATE ' ' G_T_CIRCULARES-ID15

INTO G_T_CIRCULARES-ID15

RESPECTING BLANKS.

This sentence inserts a blank space before the value of G_T_CIRCULARES-ID15. When I activate the smartform it happens exactly the same as before, but when I see the output there is a blank space.

Thanks for yours answers, I will give points later.

Former Member
0 Kudos

Hi

Sometimes it seems to insert a variable correctly by a new editor, but then it's not managed as variable so I use to see it by old editor and here I see it's not inserted as &VAR& but in different way.

So If I understand after activing the smartform, the system deletes the blank spaces between the words doesn't it?

It's strange, but it's happen in that element only?

Max

Former Member
0 Kudos

Ok, variables are inserted correctly in new an old editor.

I'll try to explain what the system does by examples:

1. We have the following text in an element text (see that there is no variables):

De carecer de datos del vehículo:

When I activate the smartform there is no problem and the blank spaces are not deleted.

2. We have the following text in an element text (see that there is variables):

&G_T_CIRCULARES-ID14&, a &G_T_CIRCULARES-ID15&

When I activate the smartform what happens is:

&G_T_CIRCULARES-ID14&, a&G_T_CIRCULARES-ID15& --> blank space between 'a' and '&G_T_CIRCULARES-ID15& ' has been deleted.

That situation happens in all the text of every smartform I am doing and I am a little bit exasperated.

I found a possible solution for it in my last answer.

Thanks for all!

Former Member
0 Kudos

Hi

It's a wrong behavior, it's not happen in my system, I think you need to see the OSS notes or post a note in OSS.

I've never seen a behavior like your, so It's not easy to help you here.

Max

former_member196280
Active Contributor
0 Kudos

I guess even it don't show spaces after activation, the output will be displayed with spaces.

Rgds,

SaiRam

Former Member
0 Kudos

hI,

Use Coomand in Layout like &AMOUNT(Z)& then it will display

if not use condense in print progrm before this move the value into char field

Regards