on 01-23-2008 9:14 AM
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.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.