Skip to Content
author's profile photo Former Member
Former Member

New syntaxes for Obsolete ones

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 09:20 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 09:29 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 09:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 09:16 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.