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

need help

laxman_sankhla3
Participant
0 Likes
495

hi

i am having value in one varible <b>d_werks = 000000607</b>.

i want to delete leadind 00000 from d_werks and i want output like this

d_werks = 0607.

thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
477

hi

use OFFSET keyword

it will remove leading zero..

u can check offset and pressing f1 help

Prarthan

Read only

Former Member
0 Likes
477

hi

use

SHIFT V_CHAR LEFT DELETING LEADING '0'.

or

REPLACE '0' WITH SPACE INTO L_VAR.

or

CONDENSE L_VAR.

regards,

pavan,.

Read only

Former Member
0 Likes
477

Hi

use this statement

<b>SHIFT D_werks LEFT DELETING LEADING '0'.</b>

<b>Reward if usefull</b>

Read only

Former Member
0 Likes
477

Hi.

Try this..

d_werks = 000000607

d_werks = d_werks+5(4).

Regards

Bala.