Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member301120
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Yes. You have to wite the fields you want to display separately.

Regards,

Renjith Michael.

3 REPLIES 3

Former Member
0 Kudos

Hi,

When we use write statement, structures are treated as a data object of type c and must be character-like in Unicode systems.

With Regards

Madhu.

Former Member
0 Kudos

Hi,

Yes. You have to wite the fields you want to display separately.

Regards,

Renjith Michael.

former_member301120
Active Participant
0 Kudos

Hello,

is this new at sap erp?

thanks for your answers.

Christian