‎2009 Jul 01 7:15 PM
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
‎2009 Jul 02 3: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.
‎2009 Jul 02 3:47 PM
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
‎2009 Jul 02 3:21 PM
‎2009 Jul 02 3:49 PM
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
‎2009 Jul 21 3:22 PM
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