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

Leading Zeros

Former Member
0 Likes
568

Hi Friends,

I want to add leading zeros to a field. vbrk-vbeln.

Can you pls tell me how to do it.

Thanx in Advance,

Venu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hi,

call the function module CONVERSION_EXIT_ALPHA_INPUT with the field vbrk-vbeln..It will add leading zeroes..

tables: vbrk.

vbrk-vbeln = '12345678'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = vbrk-vbeln

IMPORTING

OUTPUT = vbrk-vbeln

.

Thanks,

Naren

Message was edited by: Narendran Muthukumaran

Hi Friends,

I want to add leading zeros to a field. vbrk-vbeln.

Can you pls tell me how to do it.

Thanx in Advance,

Venu.

2 REPLIES 2
Read only

Former Member
0 Likes
524

Hi,

call the function module CONVERSION_EXIT_ALPHA_INPUT with the field vbrk-vbeln..It will add leading zeroes..

tables: vbrk.

vbrk-vbeln = '12345678'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = vbrk-vbeln

IMPORTING

OUTPUT = vbrk-vbeln

.

Thanks,

Naren

Message was edited by: Narendran Muthukumaran

Read only

gopi_narendra
Active Contributor
0 Likes
523

Use the function module

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

INPUT = L_RFQNO

importing

OUTPUT = L_RFQNO.

Regards

- Gopi