cancel
Showing results for 
Search instead for 
Did you mean: 

sap script alignment

Former Member
0 Kudos

Hi,

can we give empty spaces between two fields in the line editor?

ex, if we give 5 spaces (blank spaces) between matnr & maktx in line editor, then will maktx be printed 5 spaces after matnr?

so if we give like this:

&matnr& &maktx&

wat will be the result?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Satish,

Use &SPACES(n)& to have n spaces between the fields.

&matnr&<b>&SPACES(5)&</b>&maktx& - will have 5 spaces between matnr and maktx.

&matnr& &maktx&- It will have the no of spaces in between them. If you give 5 spaces then it will have 5 spaces in between them.

Thanks,

Vinay

Answers (5)

Answers (5)

Former Member
0 Kudos

hi

yes u can giv the spaces b/w the fields in the text editor of the sapscript form.

use the keyword for the spaces b/w the fields : &SPACE(N)& where n is the number of spaces.

eg:

&matnr&&SPACES(5)&&maktx&

regards,

shamim

Former Member
0 Kudos

HI Satish,

there r 2 simple ways..

1. use paragraph format using TAB positions.

PR &matnr&,,&maktx&

ur tab position in paragraph format is:

1. 10 PT so it provides 10 spaces

2. PR &Matnr& ________ &maktx&

PR is paragraph format

replace ________ with spaces sdn doesn't accept empty spaces. GIve the number spaces u want

given some empty space while writing the elements...

Pls Close the thread if ur problem is solved.

Regards

SAB

Former Member
0 Kudos

Hi,

Tabular points (,,) are used for alignment, that doesn't provide any spaces in between. Rather you can use the&spaces(no of spaces need)&.

Br,

Laxmi

Former Member
0 Kudos

Hi,

You need to maintain it in the Paragraph format, when creating the paragrapgh format give the Number of spaces for the TABS, and you need to mention ,,(2 commas) in the line editor .

&matnr& ,,&maktx&

Regards

Sudheer

Former Member
0 Kudos

HI!

You're right, if you place 5 spaces between them the gap will be larger.

Anyways the best and more accurate solution if you are using tabulators. SE71 - Paragraph formats.

You can access tabulators in the inline editor using ,,

For example you have a tabulator at 10 chars.

XY &matnr&,,&maktx&

Regards

Tamá