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

Basic coding

Former Member
0 Likes
547

Hi experts,

How can code the part where the "Sales Document Number contains Sales Document Number without preceeding zeros"?

Given the Sales Document Number, read table VBAK where Sales Document Number (VBELN) contains the Sales Document Number without preceeding zeros.

Thank you.

4 REPLIES 4
Read only

Former Member
0 Likes
516

USE fm CONVERSION_EXIT_ALPHA_OUPUT

Import Parameters: input 001251263

Export Parameters: output 1251263

Read only

Former Member
0 Likes
516

Hi,

Use the function module:

<b>CONVERSION_EXIT_ALPHA_OUTPUT</b>

converts any number with zeroes right into a simple integer

Example:

input = 00000000000123

output = 123

Hope it helps.

reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
516

Hi,

Use D FM:

CONVERSION_EXIT_ALPHA_OUTPUT

converts any number with zeroes right into a simple integer

Example:

export ur dociument number

and import d documnet nunber..

use d imported number.

Ramesh.

Read only

0 Likes
516

there are two converion routines

CONVERSION_EXIT_ALPHA_INPUT

CONVERSION_EXIT_ALPHA_OUTPUT

for adding or removing leeding zeros. Also if you assign the vbeln value to a variable of type I, N, P then it will automatically remove leading zeros.