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: 

OBJECTS_MOVE_NOT_SUPPORTED

Former Member
0 Kudos

Hi experts,

I want to change the value of an variable like:

DATA: VAR01 type ref to LVC_DISTXT.

But when i try, occurs dump OBJECTS_MOVE_NOT_SUPPORTED.

how can i assign a char value like 'ABC' in var01? LVC_DISTXT is a char(255)

Thanx

5 REPLIES 5

Former Member
0 Kudos

use like this

DATA: VAR01 type LVC_DISTXT.

Regards,

Satish

0 Kudos

I have a flied-symbol, which contains the variable that i want to change... Mi code looks like this...

DATA: l_text1 TYPE REF TO LVC_DISTXT.

FIELD-SYMBOLS: <fs1> TYPE ANY.

ls_var = 'E_EVENT_DATA->M_DATA'.

ASSIGN (ls_var) TO <fs1>.

M_DATA is type ref to LVC_DISTXT ( is a char255)

then...

when i try to change the value of l_text1, like a simple char, i get a dump :S

0 Kudos

Remove REF To and try.

Satish

0 Kudos

The type ref statement is used for declare instances of a class. LVC_DISTXT seems to be a data element, so it's incorrect to make a 'type ref' to this. In your code, the 'type ref' could be pointed to E_EVENT_DATA, and the attribute m_data should be 'type lvc_distxt'.

Declare l_text1 type lvc_distxt, so you can move between two consistent variables.

0 Kudos

Thx guys, i solve my problem...

ls_var = 'E_EVENT_DATA->M_DATA'.

my error was not put ->* to point the data, like this:

ls_var = 'E_EVENT_DATA->M_DATA->*'.