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

function

Former Member
0 Likes
1,191

Hi,

i want to append zeros to my sales order no. what function I should use.

i.e. I have enterd 5500001 then I want to convert it into 0005500001

if I have entered 1 then i wnat to convert it into 0000000001

Regards

Hemant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
997

Hi,

try to use the below code....

if not v_vbeln is initial.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = v_vbeln

IMPORTING

OUTPUT = v_vbeln.

endif.

Madhavi

6 REPLIES 6
Read only

Former Member
0 Likes
997

hi Hemanth,

Use FM <b>CONVERSION_EXIT_ALPHA_INPUT</b>

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input         = lv_list    '' 55
    IMPORTING
      OUTPUT        = lv_list    ''0055 
            .

Regards,

Santosh

Read only

Former Member
0 Likes
997

Hi

Use

<b>CONVERSION_EXIT_ALPHA_INPUT</b>

Or

<b>CONVERSION_EXIT_ALPHA_OUTPUT</b>

<b>Ex

CALL CONVERSION_EXIT_ALPHA_INPUT

importing

INPUT = '1'

exporting

output = output</b>

write: output.

Regs

Manas Ranjan Panda

Message was edited by:

MANAS PANDA

Message was edited by:

MANAS PANDA

Read only

Former Member
0 Likes
997

Use FM CONVERSION_EXIT_ALPHA_INPUT.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
998

Hi,

try to use the below code....

if not v_vbeln is initial.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = v_vbeln

IMPORTING

OUTPUT = v_vbeln.

endif.

Madhavi

Read only

Former Member
0 Likes
997

You can use this FM

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = input

IMPORTING

OUTPUT = output

Note: The length of the field should be the output length that you want with zeroes

Read only

amit_khare
Active Contributor
0 Likes
997

Hi,

you may either use the FM for that as given in replies

Or

use UNPACK command for that.

Regards,

Amit