on 10-05-2009 7:39 AM
Hi all,
In the BSP application :SRMSUS
Requirement : concatenation of vendor name and company name separated by three spaces.
In the controller class
I have concatenated the Vendor name (ls_partner_list-name_2) and company name (ls_partner_list-name) (company name within the parenthesis). Separated by three spaces.
But u201Cseparated by three spacesu201D are not getting displayed on the SUS portal screen .
No problem at ABAP side ,Spaces are coming while debugging but not displaying on the SUS portal screen.
Constants : c_space TYPE char1 VALUE ' '.
CONCATENATE ls_partner_list-name_2
c_space
c_space
'(' ls_partner_list-name ')'
INTO ls_partner_list-prtname_ext SEPARATED BY space.
Why the spaces are compressed when coming to portal screen ?
Any pointers will be appreciated greatly.
thanks and regards
aravind.
to represent a single space in HTML you use the following code (remove the spaced between the characters)
& n b s p;
or alternatively in ABAP while concatenating use
` sign instead of '
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi arvind,
Code:-
CONCATENATE ls_partner_list-name_2
' ' <- Provide a single space between them
' ' <- Provide a single space between them
'(' ls_partner_list-name ')'
INTO ls_partner_list-prtname_ext SEPARATED BY space.
Hope this is help let me know if you need any more help
Thanks
kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aravind,
In BSP the text elements textView or label will condense your string before displaying.So you will see the correct output in debug mode but will not get the same as output.
You can check it for yourself by debugging on any text element.
Regards
Usha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.