‎2006 Sep 26 12:02 PM
hi,
i have two fields 'field1(30)' and 'field2(30)' to be printed in my SAP Script from an internal table 'i_tab'.
Now the data is printed in the form
field1 field2
XYSSSS WEWERRR
ASDASDAASDASD WEWEWEW
A ASDASDSSSS
This is happening because of various lengths of field1.
How can i align my output cols..
So that my output is
field1 field2
XYSSSS WEWERRR
ASDASDAASDASD WEWEWEW
A ASDASDSSSS
????
Thanks in advance
I have already used tabs and paragraph formats.
But still it is not working....
Message was edited by: anuj pachauri
‎2006 Sep 26 12:04 PM
u have to use tab position.
in paragraph format define tab position .
/ph &itab-field1&,,&itab-field2&
ph--->paragraph format.
,,---->1st tab position.
‎2006 Sep 26 12:05 PM
create a PARAGRAPH FORMAT and create 2 tab positions.
Give value like below in the TABS fields
1 1.00 CH LEFT
2 30.00 CH LEFT
like this you can give as many as you want.
to use these tabs in the layout editor,you have to use <b>,,</b> to indicate 1 tab space.
lets say you defined a paragraph format P1 with tabs,
then
P1 ,,&V1& ,,&V2&
so what ever length the first field V1 is ,it does not matter for V2 because it will be printed from 30 characters after.(as i have given above 2nd tab is 30 CH)
hope,this helps you.
Regards
srikanth
Message was edited by: Srikanth Kidambi
‎2006 Sep 26 12:06 PM
hi,
Create a paragraph format and specify tab positions in it.
while displaying the fields, assign this paragraph format to them.
P1 field1,,field2
P1 is paragraph format.
<b>Tabs in Paragraph Formats </b>
You can define as many tab positions as you require for each paragraph format. The text can be aligned in different ways:
Left-aligned with LEFT
Right-aligned with RIGHT
Centered with CENTER
At the sign with SIGN
At the comma or decimal point with DECIMAL
You can control the tab feed in a paragraph with tab positions. The tab stops you define in the paragraph format replace the tab spacing you defined in the header data of the form. However, this depends on the extent to which you have defined tab stops in the paragraph format. If there are fewer tabs in the paragraph formats than in the header data, the tab stops of the header data are used for the rest of the line. The tab stops are represented as, , in the text editor.
You can use different units of measurement to define a tab position:
CH Characters
CM Centimeters
MM Millimeters
PT Points
TW Twips (1/20 point)
The unit of measurement CH is converted to an absolute unit of measurement using the CPI value (characters per inch) from the header data of the form.
Regards,
Sailaja.
‎2006 Sep 26 12:06 PM
Hi Anuj,
For alligning output you can use 'tabs'. Create a paragraph format with tabs at appropriate positions. Now for printing your fields you can use the same paragraph format.',,'(double commas) are used to denote tabs in the text editor.
eg -
P1 field1,,field2
Hope this helps!
Regards,
Saurabh
‎2006 Sep 26 12:07 PM
‎2006 Sep 26 12:07 PM
Hi ,
According to my understanding of u r issue i guss u need to use CONCATENATE field1 field2 INTO field3.
Regards,
Vind.
‎2006 Sep 26 12:10 PM
Hi,
use paragraph formats(for all the fields in a line),charcter formats(for individual field) and tabs(for maintaining particular distance betwween two feilds in a line) for this,
Regards,
Richa
‎2006 Sep 26 12:23 PM
ur field lenght is 30 char.
give 1st tab as more than <b>30 ch</b>
‎2006 Sep 26 1:38 PM
Hi,
If u have used Tabs and its not working then try out condense for the particular fields.
Regards
Syed