‎2008 Nov 17 11:56 AM
Hi Experts,
I am doing project on upgrading.
there is one program in ECC 5.0, and it is working fine in ECC 5.0
But while upgrading to ECC 6.0 it is giving syntax error.
below I am sending the code.
BEGIN OF lty_s_ekab_key, "1001282
konnr TYPE ekab-konnr,
ktpnr TYPE ekab-ktpnr,
ebeln TYPE ekab-ebeln,
ebelp TYPE ekab-ebelp,
END OF lty_s_ekab_key.
CLASS lcl_entity_ekab DEFINITION INHERITING FROM lcl_entity_any.
PUBLIC SECTION.
METHODS: constructor,
if_any_table_mm~read_line REDEFINITION,
if_any_table_mm~read_lines REDEFINITION.
PRIVATE SECTION.
METHODS prefetch
IMPORTING im_key TYPE lty_s_ekab_key
RETURNING value(re_t_ekab) TYPE lty_t_sorted_ekab.
ENDCLASS.
after checking the systax error , i and getting error like lty_s_ekab_key is unknow.
Plz help me to solve in this issue.
Thanks and Regards
Ganesh Reddy
‎2008 Nov 17 12:02 PM
‎2008 Nov 17 12:02 PM
‎2008 Nov 17 12:04 PM
‎2008 Nov 17 12:06 PM
Hi
U should post all code where the class and the types are defined
Max
‎2008 Nov 17 12:07 PM
can you give me program name.
it seems to be some not applied there
‎2008 Nov 17 12:11 PM
Program Name : saplzme2l
Include Program ( Declarations) : LMEREPD01
‎2008 Nov 17 12:17 PM
Hi
In my ECC 6 the defination is like yours:
CLASS lcl_entity_ekab DEFINITION INHERITING FROM lcl_entity_any.
PUBLIC SECTION.
METHODS: constructor,
if_any_table_mm~read_line REDEFINITION,
if_any_table_mm~read_lines REDEFINITION.
PRIVATE SECTION.
METHODS prefetch
IMPORTING im_key TYPE lty_s_ekab_key
RETURNING value(re_t_ekab) TYPE lty_t_sorted_ekab.
ENDCLASS. "lcl_entity_ekab DEFINITIONSo try to re-generate the navigation index
Max
‎2008 Nov 17 12:22 PM
‎2008 Nov 17 12:29 PM
the include you have given is class defintion and implmentation part in standard.
the main progrma you are using might me stanrdard.
the declaration for the synatx structure is declared above to that only.
try to declare that in the global declaration.
your problem mat get solved.
‎2008 Nov 17 12:30 PM
try to check sap version.
because it is a note applied and velid till 600 version
‎2008 Nov 17 1:37 PM
Hi
(In abap editor) Go to Utilities->Update Navigation Index
Max
‎2008 Nov 18 1:23 PM
Hi max bianchi ...
In UR ECC 6.0 Program, where "lty_s_ekab_key" is declared?
I means in which include?
Regards
Ganesh Reddy
‎2008 Nov 18 1:25 PM
‎2008 Nov 18 1:28 PM
‎2008 Nov 18 1:29 PM
Plz check the syntax in ur include...?
and inform me whether it is giving syntax error or not?