2013 Feb 19 8:45 PM
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
2013 Feb 20 7:11 AM
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.
2013 Feb 20 2:56 PM
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
2013 Feb 20 3:06 PM
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
2013 Feb 20 3:40 PM
Hi Sen,
CONSTANTS : c_space TYPE c LENGTH 6 VALUE ' '. " six times ALT+255
What is that ALT+255?
2013 Feb 20 4:05 PM
2013 Feb 20 4:27 PM
Thanks Sen,
But i dont know how much space i will get in the final output, it may change.
Regards,
Udupi
2013 Feb 20 10:17 PM
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.
2013 Feb 21 7:06 PM
Udupi, for you requeriments I still insisting in using the text editor as a support for the formated text
2013 Feb 21 4:00 AM
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
2019 Oct 02 7:33 AM
You can use "EN QUAD" space (U+2000 character) to make leading space in ALV. Here it is: « ».
Enjoy )