‎2007 Jan 19 7:51 AM
Hi,
I have two queries on 'tables in sapscript'.
1> For some longer records,the extended part of the last field is coming down below the first field..like
field1 field2 field3
AAA BBBB CCCCCCCC
CC
How to prevent this ?
If the length of field3 data is more,i want it to come in second line of field 3 itself.
2>I have created separate element for the column headings.Now,the space between the column headers remain constant even if the spacing between the contents are varrying.
field1 field2 field3
AAAAAAAAAA BBBBBB CCCCCCC...
How to make the distances between the column headers same as the contents ?
Please help.Thanks in advance.
Regards
Ananya
‎2007 Jan 19 7:56 AM
use string operations like
&itab-f1+0(8)&
to make it appear inthe second line just add the code as
if &itab-f1+8(8)& ne ' '
/ : &itab-f1+9(6)&
endif.this way and make the string to fit to the space.
2. make use of hte TAB delimiters in the window to maintian fixed dimensions in the paragraph format.
regards,
vijay.
‎2007 Jan 19 8:18 AM
Hi,
I have already created TAB delimited paragraph format and have specified the same format for both the header and the table contents.Still,for longer entries the field contents are not aligned with the headers.
Thanks&Regards
Ananya
‎2007 Jan 19 8:42 AM
I hope ur query 1 is solved .
//I have created separate element for the column headings.Now,the space between the column headers remain constant even if the spacing between the contents are varrying.
column headings are Fixed length and it will remain constant .
where as ur field contents may vary
Remember that i have only finite space ( equal to that of the column header ) to display the data .
if the field data is more than you need to set the column heading in proportion to the column heading .
ex.
material description is 35 char
then
Material Description Plant "<-- heading
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 2222 "<--field val
i can only fit that size of 35 for material description.
The texts will not vary .
regards,
vijay.
‎2007 Jan 19 8:38 AM
Hi ananya,
For problem 2 try giving same field lengths of header & contents.
Ashven