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 problem

Former Member
0 Likes
716

Hi all,

I have KUNNR(10 characters)....Suppose if the KUNNR is '001'. I want to display it as '001' only.

Presently ALV is deleting these zeoros...

Note: I tried lzero = 'X'. but still doesnt work..pleaese help

5 REPLIES 5
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
683

Hi

Use the concerned Convertion_exits.

Regards,

kumar

Read only

Former Member
0 Likes
683

hi

use FM

CONVERSION_EXIT_ALPHA_INPUT

CONVERSION_EXIT_ALPHA_OUTPUT

**Please reward suitable points***

With Regards

Navin Khedikar

Read only

Former Member
0 Likes
683

use CONVERSION_EXIT_ALPHA_INPUT and pass the KUNNR value to it

It will return with leading zeroes

loop at itab into wa_itab.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = wa_itab-kunnr

IMPORTING

output = wa_itab-kunnr.

modify itab from wa_itab.

endloop.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
683

hi

lzero works for NUMC type only.

use FM CONVERSION_EXIT_ALPHA_INPUT

regards,

madhu

Read only

0 Likes
683

till the alv grid display function module is encountered the KUNNR value is '001'.

After that function module is executed(i.e)report is displayed, the zeros vanish!

It doesnt make sense to use conversion exit function modules to input zeros because the kunnr values already has zeros. Just when it is displayed on alv they vanish. problem still not solved.

Note: kunnr is declared as kna1-kunnr.