cancel
Showing results for 
Search instead for 
Did you mean: 

Output alignment in SMARTFORMS Output!!!! Need Help!!!!

Former Member
0 Kudos

Hi All,

The requirement is something like this...

Consider i have an internal table with a fixed text field length of 30 characters!

Line 1 of internal table: My name is Sundar - 17 chars

Line 2 of internal table: and my age is 26 - 16 chars

Line 3 of internal table: and my native is Madurai - 24 chars

Line 4 of internal table: and I live in Singapore - 23 chars

Now my requirement is, while generating the output using smart forms...

I get the output something like this...

My name is Sundar

and my age is 26

and my native is Madurai

and I live in Singapore

I want my output justified..

Something like...

My name is Sundar(30 chars)

and my age is 26(30 chars)

and my native is Madurai(30 chars)

and I live in Singapore(30 chars)

This looks justified and aligned!!!

I want the output of each line of internal table to use all the 30 defined characters and spread.. irrespective of how many characters are there in each line!!!

Hope am clear!!!!

Condense removes all the spaces!!!

But i want something like i illustrated above.. please help!!!

Cheers,

Sundar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks!

Former Member
0 Kudos

hi

i not get ur problem clearly , but wat is the prob. if it is not useing all 30 CHAR.

u can try with this as :

say ur fields containd data is f1

then write it as &f1(30)& it will write upto 30 CHAR.

Former Member
0 Kudos

Hi Sachin,

Sorry... i've ammended my required output in BOLD!!!

It is something like the "JUSTIFY" option in Microsoft Word!!!!

When u type a para... and you press on justify... you'll see the output screen aligned right?

Something similar!!!

Thanks!!!!

The requirement is something like this...

Consider i have an internal table with a fixed text field length of 30 characters!

Line 1 of internal table: My name is Sundar - 17 chars

Line 2 of internal table: and my age is 26 - 16 chars

Line 3 of internal table: and my native is Madurai - 24 chars

Line 4 of internal table: and I live in Singapore - 23 chars

Now my requirement is, while generating the output using smart forms...

I get the output something like this...

My name is Sundar

and my age is 26

and my native is Madurai

and I live in Singapore

I want my output justified..

Something like...

My name is Sundar(30 chars)

and my age is 26(30 chars)

and my native is Madurai(30 chars)

and I live in Singapore(30 chars)

This looks justified and aligned!!!

I want the output of each line of internal table to use all the 30 defined characters and spread.. irrespective of how many characters are there in each line!!!

Hope am clear!!!!

Condense removes all the spaces!!!

But i want something like i illustrated above.. please help!!!

Cheers,

Sundar.

Former Member
0 Kudos

hi

if by &F1(30)& ur problem is not getting solved , then try to use SMARTSTYLES , create one STYLE then assign that to SF , with in STYLE create 1 paragraph,

witin paragraph u will find justified Option select that as required .

revart if find difficult to create STYLE.

reward if helpful.

Former Member
0 Kudos

Hi Sachin,

What do u mean by f1?

Can you be more specific or can illustrate with example?!!

Smartstyles won't help as the data moves into internal table dynamically!!!

Thus, massaging of data need to be done in internal table manipulation level!!!

Thanks!!

Sundar.

Former Member
0 Kudos

hi

f1 means any field for internal table.

let table is ITAB and Field is F1 .

as u will have a internal table from which u r displaying the data in SF

then for display u will write as &ITAB-F1(30)&

wat i think abt , wat ur doing is :

u will have a internal table in Driver PRG.

this table will have all data to be display on SF

in FM for SF u will pass this table to Internal table of SF.

then u will define a TEXT elements to display data.

in one to the TEXT element u will put &ITAB-EMPCODE&

OK

then why u can't use SMARTSTYLES, thesse are based on SF not INTERNAL TABLE.