cancel
Showing results for 
Search instead for 
Did you mean: 

Space in sapscript

Former Member
0 Kudos

hellow, i am writing a fixed text in sapscript, and now i have to write 35 characters less of this fixed text, but i have fixed the sapscript, so i would like to write a text of 35 blanks, i have seen that if i put &space(35)& it doesn´t works but if i put a point after space(35), it does, how can i write a 35 text space element please?

Thanks in advance

regards

Example:

True-> &space(35)& .

False->&space(35)&

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey,

You can use the TAB, i mean in the Paragraph format, use the tab position. or lese you can give the 35 Blank spaces by pressing the SAPCE key on the keyboard.

Regards

Sudheer

Answers (5)

Answers (5)

monique_bourgeois
Discoverer
0 Kudos

Hi,

To solve this I create a variable in the "calling program" like

data:   B(1) value space.

In the sapscript you can use this variable with &B& as a single space.

The nice thing about it is that you can use the normal space on the keyboard and end with &B& (like you used the point) and the exact number of spaces are printed.

Regards,

Monique

Former Member
0 Kudos

HI Carl,

&SPACE(35)& is also works might be bcos of empty space u didn't notice it.

u can write space like..

<b>&ITAB-MATNR& &SPACE(35)& &ITAB-MAKTX&</b>

or u can use paragraph formats with tab spacing

provide tabs as..

1. 35 PT LEFT

PR &ITAB-MATNR&,,&ITAB-MAKTX&

where PR is paragraph format

Regards

CNU

Former Member
0 Kudos

Hi!

I can´t put new tabs and i don´t have anything more to write, is it possible to add new blanks anyway?

Thanks in advance.

regards

Former Member
0 Kudos

Hi Carlson,

The functionality of <b>&SPACE(35)&</b> is to have 35 spaces only but as you placing this end of the text, you are not feel of it has spaces.

When you have <b>&SPACE(35)&.</b> , a point after space(35) has generating 35 spaces then you are getting your point.

Otherwise, Define a tab for a paragraph format with 35 spaces position and use this in your script editor.

Thanks,

Vinay

Former Member
0 Kudos

Hi Carl,

Define tabs in paragraph format & use it in script instead of &space(35)& .

Ashven

Former Member
0 Kudos

Can you use a tab?

Rob