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: 

No zeros for Type N

Former Member
0 Kudos

Hi,

I declared

NO1(4) TYPE n

it is displaying value as 0006 , I want this to be as just 6, no zeros before. How should I do it.

Thanks

Veni.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi Veni,

Put a keyword <b>no-zero</b> or declare it as<b> type P</b>

do this way..

Data : <b>NO1(4) TYPE N.</b>

NO1(4) = '006'.

Write : NO1(4) <b>no-zero</b>.

Check this link too for further queries in case if u have any

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm

Regards,

Santosh

Note: Reward Points if helpful

2 REPLIES 2

Former Member
0 Kudos

hi Veni,

Put a keyword <b>no-zero</b> or declare it as<b> type P</b>

do this way..

Data : <b>NO1(4) TYPE N.</b>

NO1(4) = '006'.

Write : NO1(4) <b>no-zero</b>.

Check this link too for further queries in case if u have any

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm

Regards,

Santosh

Note: Reward Points if helpful

former_member181966
Active Contributor
0 Kudos

Try

<b>NO1 TYPE P</b>

OR

data:NO1(4) TYPE n.

move '6' to NO1.

write:/ NO1 no-zero.

or

<b>write '6' to NO1.</b>

write:/ NO1.

Thanks

SK