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

EPC Error in Program

Former Member
0 Likes
351

Hi

I have written following coding

tables: t163g.

DATA: BEGIN OF ls_xt163g.

INCLUDE STRUCTURE t163g.

DATA: END OF ls_xt163g.

DATA : LT_XT163g like STANDARD TABLE OF ls_xt163g INITIAL SIZE 0.

SELECT * FROM t163g INTO TABLE lt_xt163g.

loop at lt_xt163g into ls_xt163g.

endloop.

But following error occured in EPC

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

How can i solve?

1 REPLY 1
Read only

Former Member
0 Likes
322

HI,

try like this

DATA : LT_XT163g type STANDARD TABLE OF ls_xt163g INITIAL SIZE 0.

rgds

Umakanth