‎2010 Jun 08 9:29 AM
I have created a format a paragraph format 'I3' with tabs value as follows :
6.00 CH LEFT
15.00 CH LEFT
20.00 CH LEFT
30.00 CH LEFT
I have used this paragraph format in the sap script as follows:
I3 ,,ECS for ST,,&V_TAX1&,,%,,&V_AMOUNT1&
I3 ,,HECS for ST,,&V_TAX2&,,%,,&V_AMOUNT2&When I see the print preview of these lines, the space between 'ECS for ST' and '&V_TAX1' is very huge, it almost takes up the entire line for display. When I try to reduce the tab values in the paragraph format, these fields are not shifting. But if I increase the tab values then the fields are shifting....please help to reduce the spacing between the 2 fields
Edited by: reshma.rbi on Jun 8, 2010 1:59 PM
‎2010 Jun 08 9:37 AM
Hi Reshma,
This is because the field v_tax1 is of currency type, which has a length of 16 (13,2). This is getting displayed right-aligned by default, and the leading spaces are always appearing.
You will have to deduct the no. of spaces that gets printed by writing v_tax1(8.2) or v_tax1(9.2) etc. First you should know what can be the maximum possible figure for this.
Another way-out is to convert this to a character variable. delete leading spaces from the character variable (functions: shift left deleting leading space, or condense) and then printing the variable right-aligned / left-aligned.
‎2010 Jun 08 10:50 AM