07-14-2008 10:28 AM
Hi frnds,
I have one field involved in my alv grid display
but my problem is after display the one field its
displaying spaces which i dont want.
like
<code>
output list in grid
matnr--
10----
20----
30----
40----
</code>
the above space i want to delete , i only need matnr to be displayed.
regards,
sanjay
07-14-2008 10:43 AM
07-14-2008 10:52 AM
You can set the fieldcat properties:
OUTPUTLEN =
rwrd points if helpful
Bhupal
07-14-2008 11:47 AM
Find out the matnr length and use this value for OUTPULEN parameter while building field catalog
07-14-2008 1:06 PM
Hi Sanjay,
First you check the length of the data element of MATNR through se11 and then you define the same length into the fieldcatalog declaration....
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material No.'.
fieldcatalog-col_pos = 1.
fieldcatalog-outputlen = 19.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
i hope this will help you..
Thanks & Regards
Ashu Singh
07-14-2008 1:14 PM
Hi,
After inserting data into the internal table use the REPLACE statement to delete the spaces.
Eg: REPLACE ALL OCCURRENCES OF ' '
IN TABLE itab WITH ''
Hope this would help you.
Murthy