on 09-19-2010 4:37 PM
Hi All,
I need to align 6 fields using center alignment in SAP Scripts.
I mean center as the value should adjust it self like <---VALUE----> based on the the staring length.
I used all the oprions like paragraph with Center align and fileds like filed(20).
I also used TAB positions for each of the six fields.
It was easier in adobe forms by specifying value -> Center but seem to have no options for scripts.
Please help me resolving this.
Regards,
Pratyusha
Hi,
Use a paragraph format with Center alignment.
There may be more spaces in the field so it's not able to print on center.
Use below statement to remove unnecessary spaces:
SHIFT P_CHAR_VAL LEFT DELETING LEADING ' '.
If the field is integer then you can pass the values in the Char field and use above statement to remove the spaces.
So It will print on center of the field.
Edited by: Aparna Kagale on Sep 20, 2010 12:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have used CONDENSE keyword and used LEFT alignment for paragraph, but defined TAB spaces with CENTER alignment. Thanks to all of you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
are you really sure you want to align values by center? When talking of values, people are used to have them either right aligned or aligned by decimal, so that according digits are underneath each others. This makes values much better comparable on a short view.
I wouldnt change such a essential thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If it is number type it will always right alignment. So you need to convert it to character format while writing the variable use this syntax &variable(C)& try like this your problem may get resolved.
Regards,
Jagadeesh T.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.