10-22-2007 8:03 AM
I would like to compare two numbers from two different tables. Example of numbers are 120000001 and 0000120000001. i would like to remove the zeros on the second number so that these numbers become equal.
10-22-2007 8:05 AM
10-22-2007 8:07 AM
USE THIS CODE.
DATA: A TYPE STRING,
B TYPE STRING.
A = NO1.
B = NO2.
TNEN COMPARE A = B.
REWARD POINTS IF USEFUL......
10-22-2007 8:10 AM
Hi,
Use the function module CONVERSION_EXIT_ALPHA_OUTPUT
to remove leading zeroes.
10-22-2007 8:24 AM
if both are numeric fields then you can compare with leading zeros itself...no problem..
if both are string then follow like below.
data: k type string value '121',
j type string value '0000121'.
shift j by 4 places left.
if k = j.
write 'sub'.
endif.
Message was edited by:
Muthurajan Ramkumar