‎2007 Apr 02 11:33 PM
Hi Friends,
Im working on scripts.Here im facing one problem.
i.e generally we create paragraph formats in that we declare tabs.
if i want 2 display
LI-1-->239.00
29.00-
LI-2--> 59.00
29.00-
LI-3-->273.00
8.90-
In this way i need to display.in paragraph format im using left (align).
Here my question is, is there any possibility to display this in proper way i.e for sign(-) display is there any possibility to give the tab or any other process.
if we use it's very easy to display by using right alignment but my client want it as to display in left alignment.
please give ur valuble suggestions.
Thanks,
Srinivas.
‎2007 Apr 02 11:59 PM
one way is define a paragraph format P1 and in that attributes,you can give LEFT justified(by creating TABS).
and give that paragraph format in the script editor.
P1 ,,text
here ,, denotes tab position.
or
use &wa-netwr(C)& <--for condensing .
Omitting the Leading Sign
Program symbols with numeric values can have a leading sign. This sign usually appears to the right of the numeric value, either as a space for positive numbers, or as a minus sign for negative numbers . You can use t he S option to ensure that the value is formatted without the sign .
Syntax
&symbol(S)&
The ITCDP-TDULPOS field contains the value -100.00. The ABAP Dictionary definition for this field includes a leading sign.
&ITCDP-TDULPOS& -> 100.00-
&ITCDP-TDULPOS(S)& -> 100.00
Leading Sign to the Left
The leading sign is normally displayed to the right of a numeric value, except in the case of a floating point number. This option enables you to specify that the leading sign should be placed to the left of the number.
Syntax
&symbol(<)&
&ITCDP-TDULPOS& -> 100.00-
&ITCDP-TDULPOS(<)& -> -100.00
The SET SIGN LEFT control command specifies that all subsequent symbols with a numeric value should have a left-justified leading sign. If you use this control command, you must no longer repeat the < option for each individual symbol.
Leading Sign to the Right
The default setting is to print the leading sign to the right of a numeric value. If you used the SET SIGN LEFT control command to specify that the leading sign should be printed in front of the value, you can override this specification for individual symbols. The symbols specified with the > option are then printed with the leading sign to the right.
Syntax:
&symbol(>)&
You can use the SET SIGN RIGHT control command to switch back to the default setting for the output of the leading sign.
Message was edited by:
sunil kumar