‎2006 Nov 09 6:24 AM
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.
‎2006 Nov 09 6:27 AM
USE fm CONVERSION_EXIT_ALPHA_OUPUT
Import Parameters: input 001251263
Export Parameters: output 1251263
‎2006 Nov 09 6:27 AM
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
‎2006 Nov 09 6:43 AM
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.
‎2006 Nov 09 6:49 AM
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.