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

tables in sapscript

Former Member
0 Likes
670

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

4 REPLIES 4
Read only

Former Member
0 Likes
549

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.

Read only

0 Likes
549

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

Read only

0 Likes
549

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.

Read only

Former Member
0 Likes
549

Hi ananya,

For problem 2 try giving same field lengths of header & contents.

Ashven