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: 

how to add zero's to a field

Former Member
0 Kudos
87

hi can any one let me know , how to add the zero's to the field.

zzmat = 14229703700

zzfaf = 1000000203

but i have to assing the value zzmat = 000000014229703700 , so please let me know how to assign zeros. thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos
66

Try:

CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
  EXPORTING
    input  = zzmat
  IMPORTING
    output = zzmat.

Rob

4 REPLIES 4

Former Member
0 Kudos
67

Try:

CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
  EXPORTING
    input  = zzmat
  IMPORTING
    output = zzmat.

Rob

0 Kudos
66

Hi this is not for matnr field,

0 Kudos
66

What is it for (domain)?

Rob

0 Kudos
66

If it is 18 digits long and of type matnr it is enough.

u can still use the fm

Message was edited by:

Nehal Fonseca