Application Development and Automation 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: 
Read only

Problem While Upgrading from ECC 5.0 to ECC 6.0

Former Member
0 Likes
1,247

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,218

hi,

can you check if that is declared or not.

14 REPLIES 14
Read only

Former Member
0 Likes
1,219

hi,

can you check if that is declared or not.

Read only

0 Likes
1,218

ya it is declared as shown in the code

Read only

0 Likes
1,218

Hi

U should post all code where the class and the types are defined

Max

Read only

0 Likes
1,218

can you give me program name.

it seems to be some not applied there

Read only

0 Likes
1,218

Program Name : saplzme2l

Include Program ( Declarations) : LMEREPD01

Read only

0 Likes
1,218

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 DEFINITION

So try to re-generate the navigation index

Max

Read only

0 Likes
1,218

How to Regenerate Navigation Index?

Regards

Ganesh Reddy

Read only

0 Likes
1,218

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.

Read only

0 Likes
1,218

try to check sap version.

because it is a note applied and velid till 600 version

Read only

0 Likes
1,218

Hi

(In abap editor) Go to Utilities->Update Navigation Index

Max

Read only

0 Likes
1,218

Hi max bianchi ...

In UR ECC 6.0 Program, where "lty_s_ekab_key" is declared?

I means in which include?

Regards

Ganesh Reddy

Read only

0 Likes
1,218

Hi

LMEREPTOP

Max

Read only

0 Likes
1,218

Snote No 1001282 has implemented in ur ECC 6.0?

Read only

0 Likes
1,218

Plz check the syntax in ur include...?

and inform me whether it is giving syntax error or not?