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: 

New syntaxes for Obsolete ones

Former Member
0 Kudos

Can anyone tell me the new syntaxes for these-

1) Using 'occurs' for creating an internal table is obsolete now.

2) Move statement is obsolete. For a unicode upgrade what is the solution for these?

Search before posting further

Edited by: Vijay Babu Dudla on Jan 15, 2009 4:28 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos
4 REPLIES 4

Former Member
0 Kudos

Hi,

1) Declare work areas for the internal tables:

sample code:-

DATA: lt_fieldcat TYPE slis_t_fieldcat_alv,

wa_fieldcat TYPE slis_fieldcat_alv.

Former Member
0 Kudos

Hai,

TYPes: begin of ty_tab,

f1 type element,

f2 type element2,

end of ty_tab.

types: ty_it_tab type table of ty_tab.

data: it_table type ty_it_tab.

data: wa type ty_tab.

Use explicit work areas for the internal tables. you can also use field-symbols if required.

Regards,

Venkatesh

Former Member
0 Kudos

Former Member
0 Kudos

Regarding move statement can you give the scenario where your are getting error. Because Move can be still used. only in few occasions it throws an error.

If you are getting an error with the move statement use the field symbols.

Initially you have to assign the field symbol, then you can pass the values and do modifications to them.

If still it doesn't solve your problem, write the code where the problem occurs so that a solution can be provided if possible.