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: 

regarding space in grid dsiplay

Former Member
0 Kudos

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--


space--


10----


20----


30----


40----


</code>

the above space i want to delete , i only need matnr to be displayed.

regards,

sanjay

5 REPLIES 5

Former Member
0 Kudos

Any help dear frnds.

regards,

sanjay

Former Member
0 Kudos

You can set the fieldcat properties:

OUTPUTLEN =

rwrd points if helpful

Bhupal

Former Member
0 Kudos

Find out the matnr length and use this value for OUTPULEN parameter while building field catalog

Former Member
0 Kudos

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

former_member787646
Contributor
0 Kudos

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