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

Trim

Former Member
0 Likes
359

How to display only digits in a numbers begins with zero's in ABAP Programming?

Example : '000123' . I want to display only numbers '123', wants to remove zero's in the front.

2 REPLIES 2
Read only

former_member386202
Active Contributor
0 Likes
339

Hi,

Use shift statement

SHIFT variable left deleting leading '0'.

Regards,

Prashant

Read only

0 Likes
339

Hi..Thnx...problem solved. Also we can use "no-zero" .

DATA : string(6) type C value '000123' .

write : string no-zero .