cancel
Showing results for 
Search instead for 
Did you mean: 

I want to eliminate zero in smart form reports.

Former Member
0 Kudos

Hi Experts,

I am working on Abap hr.In this i am working on smart forms .In this smart forms where employee details will be populated. In out put before emp id i want to delete the zero.I tried with SHIFT L_PER LEFT DELETING LEADING '0'and

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' . But it is not working . Can any one help me.Regarding this solution.Its very urgent.

Regards,

mithun.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi mithun.

U can avoid preceding zeros of emp id by using 'no-zero' while printing.

for example,

data: empid(10) type c value '010643'.

write: / empid no-zero.

i think it will useful for u.

Rewards points if useful,

Thanks,

Usha

Former Member
0 Kudos

Hi,

You can do it by in two ways

one by declaring like & wa_hr-pernr(Z)&

otherone to move the pernr number to numeric type i.e i type\

Regards

Shiva

Former Member
0 Kudos

Hi,

What is the domain for the field that you are using??

Make sure the ALPHA is there as the conversion exit in the domain...

Thanks

Naren

former_member196280
Active Contributor
0 Kudos

to omit leading Zero, try like this &variable(Z)&

close the thread once your question is answered.

Regards,

SaiRam