Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in the displaying the leading space in the ALV output

Former Member
0 Kudos
850

Hi Expert,

I am facing the problem while displaying leading space in the ALV output.

For example

abcdefgi

     jklmn

it is displaying

abcdefgi

jklmn

i need leading space in the ALV output.

I have checked older forms and checked the field catalogue option like NO_ZERO, LZERO and Just , it is not working.

How can we achieve this.

Regards,

Udupi

10 REPLIES 10

Former Member
0 Kudos
238

declare a constant and concatenate this space into that text.

CONSTANTS : c_space TYPE c LENGTH 6 VALUE '      '. " six times ALT+255

CONCATENATE c_space wa_final-txt30 INTO

                           wa_final-txt30.

0 Kudos
238

But in the internal table we have already leading space.

Same i want to display.

any option is there in field catalogue or ALV Grid Function Module

0 Kudos
238

Hi Udupi,

I don't think ALVs are able to do something like that, In your scenario I would invoke the enjoy sap control text editor and place the text formated inside, you can split the screen and make it react with a double click on the field/row of the ALV or rise it as a pop up.

good luck

Luis

0 Kudos
238

Hi Sen,

CONSTANTS : c_space TYPE c LENGTH 6 VALUE '      '. " six times ALT+255

What is that ALT+255?

0 Kudos
238

0 Kudos
238

Thanks Sen,

But i dont know how much space i will get in the final output, it may change.

Regards,

Udupi

0 Kudos
238

i have tried with solution, but not able to display the leading space in ALV output.

Please any one let us know if posible to display leading space in ALV.

0 Kudos
238

Udupi, for you requeriments I still insisting in using the text editor as a support for the formated text

0 Kudos
238

Hi Udupi,

Please try to use the edit_mask in the import parameters IT_FIELDCAT (if you use REUSE_ALV_GRID_DISPLAY).

you can supply 'RR__________' for example.

Regards,

Oki

andrey_ryzhkov
Participant
0 Kudos
238

You can use "EN QUAD" space (U+2000 character) to make leading space in ALV. Here it is: « ».

Enjoy )