Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript formatting options

Former Member
0 Likes
1,519

Hi all...

I know that in Sapscript, in order for a variable to appear RIGHT-JUSTIFIED, i write (R)....

But what about LEFT-JUSTIFIED?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,385

FYI, i'm trying to make the values of a particular variable (which is a bunch of numbers) LEFT-JUSTIFIED...i tried with (L) and i got a runtime error...maybe there is another way of doing it?

11 REPLIES 11
Read only

Former Member
0 Likes
1,386

FYI, i'm trying to make the values of a particular variable (which is a bunch of numbers) LEFT-JUSTIFIED...i tried with (L) and i got a runtime error...maybe there is another way of doing it?

Read only

0 Likes
1,385

Why dont you use the formatting options like the Tabs in the paragraph format.

Here u can give the tab position and also say if it is required to be alighned left, right ot centered.

Read only

0 Likes
1,385

Hi again,

1. for number just use (C)

eg.

&mymumber(C)&

it works perfectly fine !

regards,

amit m.

Read only

0 Likes
1,385

thanks Amit...it answered my question...

in the case of the (T) symbol, it would remove the seperator for "thousands"...but what if i wanted to format the numbers i have so that it would have the "thousands" seperator?

Can it be done in the sapscript layout? or i would need to go back to the print program and do it from there?

Read only

0 Likes
1,385

Hi again,

1. no need to do anything,

by default,

it will show thousands separator !

regards,

amit m.

Read only

0 Likes
1,385

actually it isn't...but i found out why, remember the previous thread where i had to do a calculation between a Type I and Type C field...i was retrieving the Type C field...once i converted it to Type I, it appeared by default as you said

thanks...

Read only

0 Likes
1,385

ok...i've got one last thing to ask about sapscript formatting...let's say i want the following out put:


Purchase Requisition Header: ___________________________________

The variable (let's say &ITAB-LINE&) is to be assigned to fill up the underlined area...but what if the characters for that variable is very long?

How do i make it appear something like this:


Purchase Requisition Header: ___________________________________
                             ___________________________________
                             ___________________________________

As of now, the displayed output is like this:


Purchase Requisition Header: ___________________________________
____________________________________________________

So its not very neat...

any suggestions you have on this?

Message was edited by: Bernard Loh

Read only

0 Likes
1,385

Hi again,

1. calculation is not at all a problem.

2. just check out u have used I

(and not N)

regards,

amit m.

Read only

0 Likes
1,385

Hi again,

1. in such case, we have to take care

at the sapscript layout level.

2. either hardcode

PURCHASE REQUISTION NO. ______________

______________

_______________

(IN 3 LINES)

OR (itab-line should contain LESS underscores)

PURCHASE REQUISTION NO. &ITAB-LINE&

SPACES.................. &ITAB-LINE&

SPACES................... &ITAB-LINE&

3. Alignment is very cumbersome while doing this.

4. U can also use tabs.

PURCHASE REQUISTION NO, &ITAB-LINE&

,,&ITAB-LINE&

,,&ITAB-LINE&

regards,

amit m.

Read only

0 Likes
1,385

thanks for the tip!

Read only

Former Member
0 Likes
1,385

Hi Bernard,

1. By default, its left justified.

2. however, u can try with (L)

3. If the problem u are facing is with numbers,

then use condense

&myvar(C)&

for left justified.

regards,

amit m.