cancel
Showing results for 
Search instead for 
Did you mean: 

concatenation problem

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.