09-11-2009 6:51 AM
Dear member ,
Is there any way to reduce the prefix zero from sale order 10 digit char .
EG: if 0053549980 is the so no I want to make it 53549980 . I have transfered the vale into integer variable but error is coming data overflow .
Help me to find out the solution .
Regards ,
Joy .
09-11-2009 6:58 AM
Hi Joy,
Try using the PACK keyword to remove the leading zeros.
PACK <var1> TO <var2>.
CONDENSE <var2>.
Here var1 and var2 both are Character Type variables.
Hope it helps.
Regards,
Himanshu
09-11-2009 6:52 AM
Plz SEARCH in SCN before posting, you will get lot of posts
with this FM.
CONVERSION_EXIT_ALPHA_OUTPUT
09-11-2009 7:39 AM
Thanks ur mail , but this one is the right code .
PACK <var1> TO <var2>.
CONDENSE <var2>.
09-11-2009 7:40 AM
09-11-2009 6:54 AM
Hi,
Try
Shift lv_value left deleting leading 0.
or conversion_exit_alpha_output.
Regards,
Himanshu
09-11-2009 6:55 AM
Hi,
Try this way.
Thanks
Venkat.Odata:num(10) type n VALUE '0053549980'.
WRITE num to num no-ZERO.
WRITE num.
09-11-2009 6:55 AM
Hi,
Either use CONVERSION_EXIT_ALPHA_OUTPUT or
data: var(10) type c.
var = '0053549980'.
shift var left deleting leading zeros.
write: var.
Regards,
Vikranth
09-11-2009 6:58 AM
Hi Joy,
Try using the PACK keyword to remove the leading zeros.
PACK <var1> TO <var2>.
CONDENSE <var2>.
Here var1 and var2 both are Character Type variables.
Hope it helps.
Regards,
Himanshu