‎2007 Apr 26 2:38 AM
hi,
i have 2 internal table and want to do add-corresponding.
the problem is i have character type field, example ekgrp (purchasing group) where the value is i38.
when run i got runtime error says unable to interpret 'i38' as a number.
how should i avoid the character field being added as i need to use add-corresponding.
thanks
‎2007 Apr 26 3:12 AM
Hi,
This is taken from Documentation.
You can explicitly specify the field name.
DATA: BEGIN OF VECTOR,
X TYPE I,
Y TYPE I,
LENGTH TYPE I,
END OF VECTOR,
BEGIN OF CIRCLE,
VOLUME TYPE P,
Y TYPE P,
RADIUS TYPE I,
X TYPE I,
END OF CIRCLE.
...
The subfields X und Y appear in the two structures VECTOR and CIRCLE; therefore, the ADD-CORRESPONDING statement here is equivalent to the following two statements:
ADD VECTOR-X TO CIRCLE-X.
ADD VECTOR-Y TO CIRCLE-Y.
‎2007 Apr 26 3:32 AM
hi,
for doing add-corresponding the 2 fields from the 2 table should be <b>of same data type and the name of the variable should also be same</b> otherwise it wont add it.....
reward if helpful
ravi