Application Development and Automation 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: 
Read only

alv output

Former Member
0 Likes
1,091

hi all

i'm working on ALV report, i'm displying many fields

in that i'm displying material number i;e MATNR-0000001245.

i want to remove the leading zero's from matnr in all the rows,

how to do it.

Regards

Suprith

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,067

Use -

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = material

IMPORTING

output = material.

Regards,

Aparna Gaikwad

8 REPLIES 8
Read only

Former Member
0 Likes
1,068

Use -

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = material

IMPORTING

output = material.

Regards,

Aparna Gaikwad

Read only

former_member188829
Active Contributor
0 Likes
1,067

Hi,

While Defining Field Catalog for a Perticular Field select no_zero = 'X'.

Eg:

wa_fcat-tabname = 'IT_MARA'.

wa_fcat-fieldname = 'MATNR'.

Wa_fcat-no_zero = 'X'.

Append wa_fcat to it_fcat.

Read only

Former Member
0 Likes
1,067

Use Condense Statement as below

Condense i_tab-matnr.

Thanks

Sudharshan

Read only

learnsap
Active Participant
0 Likes
1,067

Hi,

In the fieldcatalog for that MATNR field fieldcat-no_zero = 'X'. This will solve your problem.

Regards,

Ramesh

Read only

Former Member
0 Likes
1,067

Hi,

I hope the below code will help you.

wa_fieldcat-tabname = 'I_OUTPUT'. " Material number

wa_fieldcat-fieldname = 'MATNR'.

wa_fieldcat-seltext_l = text-001.

wa_fieldcat-hotspot = 'X'.

wa_fieldcat-no_zero = 'X'.

APPEND wa_fieldcat TO i_fieldcat.

CLEAR wa_fieldcat.

Thanks,

Khushbu.

Edited by: khushboo Brahmbhatt on Jul 31, 2008 12:53 PM

Read only

Former Member
0 Likes
1,067

hi

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = material

IMPORTING

output = material.

this is the best i hope..

Read only

Former Member
0 Likes
1,067

Hi!

If you are using global data type lvc_t_fcat for fieldcatalog internal table.

This data type has one field 'LZERO'

Use this


fs_fieldcat-lzero     = ' '.

Regards

Abhijeet

Read only

Former Member
0 Likes
1,067

this thread is answered.

thanks to all