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

leading zero

Former Member
0 Likes
536

hello experts,

I hv devloped an alv report but in that i want leading zero in one column

EXP. IF OUTPUT COMES <b>09</b> THAN MY ALV REPORT GIVES OUTPUT only <b>9</b>.

i want a leading zero

i hv used function module

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = wa_agr_1252_del-LOW

IMPORTING

output = wa_agr_1252_del-LOW.

still not working

pls help me on this.

points will be rewarded !!

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
511

Hi. Rajan..

To display the value with Leading zero incase of ALV.

You have to set the Field catalog attribute (No Edit Mask) that refers to Coversion exit .

Just fill that attribute in the Field catalog for this field.

It will work.

Read only

0 Likes
511

hello sir

thanks for your help ....

<b>edit_mask type slis_edit_mask, </b>

here what i hv to set in edit mask so that my leading zero displays

Read only

Former Member
0 Likes
511

Hi,

In the fieldcat table use this,

data: lw_fcat type slis_fieldcat_alv.

lw_fcat-no_zero = 'X'.

and undate the particular fieldname in the fieldcatalog interanl table and pass it to functuion module reuse_alv_list_display or reuse_alv_gird_display..

regards,

Santosh Thorat

Read only

asik_shameem
Active Contributor
0 Likes
511

Hi

use FM <b>ONVERSION_EXIT_MATN1_OUTPUT</b>.