Skip to Content
0
Dec 12, 2011 at 12:53 PM

How to convert an INT4 to an INT

406 Views

I have this piece of code.

I get the position of the fist occurrence of character '@' in text ( variable temp) usint FIND....

The result is stored in posicion-offset. This is an INT4 and I would like to pass this value to an INT varialble ( pos).

How could I get it?

DATA: posicion TYPE match_result.

DATA: ld_separator TYPE c.

DATA: pos TYPE i.

ld_separator = '@'.

FIND FIRST OCCURRENCE OF ld_separator IN temp RESULTS posicion.

pos = posicion-offset. " -> This is not working.