Skip to Content
author's profile photo Former Member
Former Member

concatenation problem

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Oct 05, 2009 at 06:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2009 at 07:05 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2009 at 07:21 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.