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

How do I solve these EPC errors

I am working on a HR report and am getting these EPC errors:

1. "INFOTYPES" is not supported in the OO context.

2. I have a declaration :

TABLES: PERNR

and the EPC error pointing to this line is:

Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary

types, not "LIKE" or "STRUCTURE".

Thanks

Kiran

Edited by: kiran dasari on Jul 2, 2009 7:27 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 02, 2009 at 02:13 PM

    Well, seems that you are using these statements in a (local) class. But all these statements are obsolete and can not be used in ABAP OO, mostly because of the stricter syntax check.

    Check the F1 help for all of your statements, for example INFOTYPES:

    Note

    In classes it is not allowed to declare internal tables with header lines. Due to this, the statement INFOTYPES is not allowed there. To declare an internal table of the same structure, you should use the allowed statements from the section Data types and data objects.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I am using classes only for my ALV display. But I didnot declare these infotypes or tables in any of the classes. I just had them as part of my normal global declarations.

      Any more clues plz.

      Thanks

      Kiran

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2009 at 02:21 PM

    instead of tables statement

    use

    data : v_pernr type pernr.

    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.