Skip to Content
0
Jan 08, 2008 at 09:12 AM

List-Processing : write unable to convert in a charakter like structure

15 Views

Hello to all,

I've got a structure "test" in dictionary with char and dec fields like

PROFROLE PROFROLE CHAR 4 0

PREV_USEFACTOR PREV_USEFACTOR DEC 17 8

PREV_CALCULATED E_PREV_CALCULATED CHAR 1 0

my code is:

Data: l_var type test.

......

write l_var.

In this case I get the following error message:

Unable to convert "l_var" in a charakter like structure.

the following write instruction works fine.

write: l_var-PROFROLE, l_var-PREV_USEFACTOR, l_var-PREV_CALCULATED.

Does the automatic data type conversion only get active, when all fields of the structure are read seperately?

Regards Christian