‎2006 Jan 11 8:00 AM
Hi all...
I know that in Sapscript, in order for a variable to appear RIGHT-JUSTIFIED, i write (R)....
But what about LEFT-JUSTIFIED?
‎2006 Jan 11 8:03 AM
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?
‎2006 Jan 11 8:03 AM
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?
‎2006 Jan 11 8:07 AM
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.
‎2006 Jan 11 8:09 AM
Hi again,
1. for number just use (C)
eg.
&mymumber(C)&
it works perfectly fine !
regards,
amit m.
‎2006 Jan 11 8:36 AM
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?
‎2006 Jan 11 8:39 AM
Hi again,
1. no need to do anything,
by default,
it will show thousands separator !
regards,
amit m.
‎2006 Jan 11 8:48 AM
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...
‎2006 Jan 11 8:56 AM
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
‎2006 Jan 11 8:58 AM
Hi again,
1. calculation is not at all a problem.
2. just check out u have used I
(and not N)
regards,
amit m.
‎2006 Jan 11 9:04 AM
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.
‎2006 Jan 11 9:17 AM
‎2006 Jan 11 8:05 AM
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.