on 10-04-2011 7:49 AM
Dear All,
How to use Condense and Right Alignment for a same variable, for example &test& is my variable, i need to use (C) and (R) for
this variable. I tried to give right alignment through smart styles also. But that is giving some space in the right side. I tried to give
&test(CR)& in smartforms itself but right alignment is coming, it is not condensing the leading space. My Variable is of type CURR. Pls help.
Hi Aravinth,
Copy your data of CURR type into one CHAR variable and then use CONDENSE on this CHAR variable. And then print
this CHAR variable with the style defined for printing right aligned data.
Thanks,
Pawan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is realted to te issue of SAP note #1432997 which corrects a problem that the space reserved for the sign was truncated for symbols with type CURR. So with right alignment , the space is still there. Use formattng option S to suppress the sign and it should help. e.g. &test(CRS)&
Regards,
Aidan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Aravinth,
CONDENSE is used to shrink the space between words and not used to remove
leading or trailing spaces.
For removing leading or trailing spaces you could use LEFT or RIGHT alignment
in smartstyles or use abap statements SHIFT LEFT O SHIFT RIGHT.
You are trying to shift your variable right and remove leading spaces which you
can never achieve.If you shift right or use RIGHT alignment,you can
only remove trailing space and never leading space.
When you declare a varaible ( eg: test as char 20 ),system allocated 20 characters
spaces as its length.So the system fills the data of the variable in
this length and prints it either left or right or centre as your preference.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.