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

Error on extended check for types include structure statements

former_member242512
Participant
0 Likes
1,157

Hi All ,

On Extended check im getting error :

Program:  ZFIR_VALUATE_OBSOLETE_STOCK  Include:  ZFIR_VALUATE_OBSOLETE_STOCK_F  Row:   1205
The current ABAP command is obsolete
 Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
 types, not "LIKE" or "STRUCTURE".
Internal Message Code: MESSAGE G/B
 (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
 EXTENDED CHECK OFF/ON)

The error is in below line :

TYPES: BEGIN OF t_fttax.
          INCLUDE STRUCTURE fttax.
  TYPES: END OF t_fttax.

and fttax is a dictionary strucuture . i made internal table and work area using it .

DATA: i_fttax TYPE STANDARD TABLE OF t_fttax,
        wa_fttax TYPE t_fttax.

Need Help ,what i should do to remove this error ?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

declare as :

DATA: i_fttax TYPE STANDARD TABLE OF fttax,

wa_fttax TYPE fttax.

No need to declare as :

TYPES: BEGIN OF t_fttax.

INCLUDE STRUCTURE fttax.

TYPES: END OF t_fttax.

4 REPLIES 4
Read only

Former Member
0 Likes
673

declare as :

DATA: i_fttax TYPE STANDARD TABLE OF fttax,

wa_fttax TYPE fttax.

No need to declare as :

TYPES: BEGIN OF t_fttax.

INCLUDE STRUCTURE fttax.

TYPES: END OF t_fttax.

Read only

0 Likes
672

Thanks Srini....thanks all ..

Read only

Pawan_Kesari
Active Contributor
0 Likes
672
TYPES: BEGIN OF t_fttax.
INCLUDE TYPE   fttax.
TYPES : END OF t_fttax.


DATA: i_fttax  TYPE STANDARD TABLE OF t_fttax,
      wa_fttax TYPE t_fttax.
Read only

Former Member
0 Likes
672

Try:

TYPES:  t_fttax TYPE fttax.

Rob