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

paragraph format not working in sap script

Former Member
0 Likes
655

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

2 REPLIES 2
Read only

birendra_chatterjee
Active Participant
0 Likes
464

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.

Read only

0 Likes
464

thanks a lot, prob solved , points given...