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: 

How do I solve these EPC errors

Former Member
0 Kudos

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

5 REPLIES 5

Sm1tje
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

instead of tables statement

use

data : v_pernr type pernr.

0 Kudos

Hi PBS,

TABLES: PERNR.

This is one of the steps in HR REPORTING. With out this, I wouldn't get any selection screen.

so how can i avoid this and still have charm of hr programming?

Thanks

Kiran

Edited by: kiran dasari on Jul 9, 2009 6:41 AM

0 Kudos

I am using LDB PNPCE. can that be a problem?

If not, can any one tell me how to avoid this epc errors?

Thanks

Kiran