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 _ grid display

Former Member
0 Likes
487

HI all

Please tell me

i have the sales orders to display

in alv_grid_disply..

so i Have to display the sales order 0000000376

but it is displying 376

How to disply with zeros 00000000376

i have padded zero but output it is taking only the 376..

in alv_grid_disply when i pressed f4 it is giving 376

but i want 000000376 i have used lzero = 'X" in field catalogealso it not working..

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
468

Hi,

In building the field catlog, dont pass the ref field name.. you will get the desired output.

regards,

Niyaz

4 REPLIES 4
Read only

Former Member
0 Likes
468

Hi,

You can use UNPACK command.

For Example,

Data : temp(10) value '25'.

write : temp.

*The Out put is 25.

UNPACK temp to temp.

write : temp.

*Now the output is : 0000000025.

Thanks.

or you can use this FM.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = TEMP

IMPORTING

OUTPUT = TEMP.

WRITE : TEMP.

Edited by: Viji on Dec 19, 2007 2:05 PM

Read only

Former Member
0 Likes
468

Hi,

Use FM Conversion_EXIT_ALPHA_INPUT before populating the data to your internal table.

Thanks,

Lalit

Read only

Former Member
0 Likes
468

Hi,

Try using FM 'CONVERSION_EXIT_ALPHA_INPUT'

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
469

Hi,

In building the field catlog, dont pass the ref field name.. you will get the desired output.

regards,

Niyaz