cancel
Showing results for 
Search instead for 
Did you mean: 

Spaces in ALV Cell are getting truncated

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks for the reply, All the ALV Grids and Cells getting displayed as dynamic, I did a work around for my PDF Display.

Answers (0)