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

Spaces in ALV Cell are getting truncated

Hi Gurus,

i have a screen where the more than one white space is getting truncated,although when i debug and see the contents of the node it contains more than one white space.

Eg: "Rahul Saxena 1.0 S AP"

is getting displayed as "Rahul Saxena 1.0 S AP" the white spaces after Rahul Saxena is truncated to a single white space.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 24, 2008 at 06:13 AM

    use the code in WDDOINIT

    data: lr_node type ref to if_wd_context_node_info.

    data: ls_prop type WDY_ATTRIBUTE_FORMAT_PROP.

    lr_node = wd_context->get_node_info( ).

    ls_prop = lr_node->gET_ATTRIBUTE_FORMAT_PROPS( name = 'CHAR10'

    ).

    ls_prop-condense = '-'.

    lr_node->sET_ATTRIBUTE_FORMAT_PROPS( name = 'CHAR10'

    FORMAT_PROPERTIES = ls_prop ).

    where CHAR10 is attribute directly under wd_context, in your case get the child node of the data source and change the code

    Abhi

    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.