Showing results for 
Search instead for 
Did you mean: 

WebDynpro - Display char with leading blanks in ALV or table

Former Member
0 Kudos


I want to display char fields with leading blanks in an webdynpro table or alv.

The first column of the table includes chars, that have leading blanks.

In the binded intern table, the chars still have those blanks.

But when they are displayed, webdynpro deleted all the leading blanks and also the blanks between the words, if there are more than one.

How can I achieve to have the formatted text still formatted?

I tried the option Do Not Compress Input but it didn't work.

I also tried to move values to string and then bind the intern table, but didn't work neither.

Thank you very much,


View Entire Topic
Former Member
0 Kudos

I just solved the problem myself the other day.


LOOP AT lt_table INTO ls_table.

  TRANSLATE ls_table-column1 USING '  '.


There are two spaces bewteen the '.

The first is a normal, wich one should be replaced.

The second is made with ALT+255 (saved space).

This space is not deleted by WebDynpro.

Thanks a lot for your answers.

Former Member
0 Kudos

Hi Florian,

Even I have the similar requirement of adding the spaces before the actual text.

I'm using concatenate statement as follows:

CONCATENATE lc_space lc_space lv_text INTO lv_text RESPECTING BLANKS.

lc_space is defined as a constant with two spaces. For time being, I have used both the spaces as normal spaces. Can you please tell me how to add the SAVED SPACE? ALT+255 did not really work for me.

As indicated above in your post, if I'm able to concatenate the saved space to a text variable, then web dynpro will not remove the saved space and as a result I should be able to get 2 spaces before my text variable.

Thanks and please help.