on 10-08-2008 3:19 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.