cancel
Showing results for 
Search instead for 
Did you mean: 

Transformation Start Routine

Former Member
0 Kudos

When declaring variables in a transformation as below:

DATA: BEGIN OF ls_1,

crm1 TYPE /BI0/OICRM_MKTELM,

END OF ls_1,

lt_1 LIKE TABLE OF ls_1

I get the error

E:Within classes and interfaces, you can only use "TYPE" to refer to ABAP

Dictionary types (not "LIKE" or "STRUCTURE").

I have copied the definition from a 3.5 update rule start routine

Why do I get the error and how can I overcome? Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

DATA: BEGIN OF ls_1,

crm1 TYPE /BI0/OICRM_MKTELM,

END OF ls_1.

fisrt put a period after ls_1.

You cannot use an internal table with a header row. You create an explicit work area with the LINE OF addition of statements TYPES, DATA and so on to replace the header row.

Former Member
0 Kudos

instead of Like table of

use Type table of

Answers (0)