2007 Jul 31 10:22 AM
Hi experts
I declared belnr as follows.
BELNR LIKE BSEG-BELNR,
then I give the input 6201393
when i debut its value become : IEQ0006201393
how to reduce leading zeroes.
thanks in advance.
Regards
Rajaram
2007 Jul 31 10:23 AM
hi,
Use the below FM.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wf_version
IMPORTING
output = wf_version.
Example:
input = 00000000000123
output = 123
Rgds
Reshma
2007 Jul 31 10:24 AM
2007 Jul 31 10:27 AM
Hi,
You try with call function 'CONVERSION_EXIT_ALPHA_INPUT'
Regards
2007 Jul 31 10:27 AM
HI
Use the appropriate Conversion exit for this data type.
it will be defined in the domain of this data element.
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
Regards
Ravish Garg
<b>*reward if useful</b>
2007 Jul 31 10:28 AM
Hi,
u would actually declared itas:
select-option : BELNR LIKE BSEG-BELNR.
means it is a select option.
u can get its low and high vlaue using this :
belnr-low " low value
belnr-hign " high value
"and NOT simply
belnr
Jogdand M B
2007 Jul 31 10:31 AM
sorry i can't understand,
actually i have selection stmt as follows
SELECT-OPTIONS: zbel FOR bseg-belnr OBLIGATORY.
how to solve yar
Regards
Rajaram
2007 Jul 31 10:39 AM
HI
Try this code:
data: output(20) type c.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = '0000003256'
IMPORTING
OUTPUT = OUTPUT.
write 😕 output.
Regards
Ravish Garg
<b>*reward if useful</b>
2007 Jul 31 12:16 PM
Can you explain why do you want to remove the leading zeros? What is the purpose?
2007 Jul 31 10:29 AM
Hi,
u would actually declared itas:
select-option : BELNR LIKE BSEG-BELNR.
means it is a select option.
u can get its low and high vlaue using this :
belnr-low " low value
belnr-hign " high value
"and NOT simply
belnr
and then use FM,
CONVER_EXIT_ALPHA_OUTPUT
Jogdand M B
Message was edited by:
Jogdand M B
2007 Jul 31 11:26 AM
Use <b>CONVERSION_EXIT_ALPHA_OUTPUT</b> function module
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = belnr
IMPORTING
output = belnr.