Application Development and Automation 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: 
Read only

Using DATA statement for dynamic object creating

Former Member
0 Likes
399

Hi Experts!

I copied from one to another system this code:

DATA(lc_var) = lcl_class=>get_instance( ).


In source system this works fine, and the DATA is blue, But in another system there is a problem. syntax check tell me that all is ok, but during activation I see an error, that this record is inccorect.


Maybe somebody know, what does this record mean? And why in one system there is an error and in anither there is not.


Thanks in advance!


Best Regards,

Mikhail

2 REPLIES 2
Read only

Former Member
0 Likes
373

Hi ,

Once check the System->system Status ->Component version for both system

I think Both are system Diff component versions that way you getting Error.

Thanks

Satish

Read only

Former Member
0 Likes
373

DATA(variable) = ... is a newer syntax, that is not supported by older releases.

You need to declare the variable first with it's type and move the instance from the method afterwards.