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

Supressing 0 in NUMC data types

Former Member
0 Likes
1,112

Hello,

I am trying to suppress leading zeros in a numc data type. I use the value in a BDC , and it then stores the leading zeros.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
772

Hi

Try this

DATA : i(4) TYPE n VALUE 0100.

SHIFT i LEFT DELETING LEADING '0'.

Regards,

Vind

Hello,

I am trying to suppress leading zeros in a numc data type. I use the value in a BDC , and it then stores the leading zeros.

Thanks

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
772

.

Read only

Former Member
0 Likes
773

Hi

Try this

DATA : i(4) TYPE n VALUE 0100.

SHIFT i LEFT DELETING LEADING '0'.

Regards,

Vind

Read only

Former Member
0 Likes
772

USE FMs

CONVERSION_EXIT_ALPHA_INPUT OR

CONVERSION_EXIT_ALPHA_OUTPUT

to supress leading zeros.

Reward if useful

Narendra