‎2008 Jun 26 7:17 AM
Hi,
While doing the Extended Check,
I am getting an error as below:
================
The current ABAP command is obsolete and problematic, especially so in ABAP
Objects
Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
types, not "LIKE" or "STRUCTURE".
The message can be hidden with "#EC *)
==============
I dont want to hide it.
My definition is as below:
========
FORM build_employee_list TABLES p_record_tab structure seahlpres " Here is the error. p_shlp_tab TYPE shlp_descr_tab_t
CHANGING p_shlp TYPE shlp_descr_t
p_callcontrol TYPE ddshf4ctrl
p_maxrecs TYPE ddshf4ctrl-maxrecords
p_l_rc TYPE any.
==========
I am trying to change it to TYPE but it gives error.
For typing of tables parameter only table type should be used.
Please let meknow the solution.
Will reward for the same.
Thanks in adv.
‎2008 Jun 26 7:26 AM
You need to define a workarea instead of dictionary reference seahlpres.
Code below :
data: wa type seahlpres.
FORM build_employee_list TABLES p_record_tab structure wa
CHANGING p_shlp TYPE shlp_descr_t
p_callcontrol TYPE ddshf4ctrl
p_maxrecs TYPE ddshf4ctrl-maxrecords
p_l_rc TYPE any.
endform.
Reward if useful.
‎2008 Jun 26 7:26 AM
You need to define a workarea instead of dictionary reference seahlpres.
Code below :
data: wa type seahlpres.
FORM build_employee_list TABLES p_record_tab structure wa
CHANGING p_shlp TYPE shlp_descr_t
p_callcontrol TYPE ddshf4ctrl
p_maxrecs TYPE ddshf4ctrl-maxrecords
p_l_rc TYPE any.
endform.
Reward if useful.
‎2008 Jun 26 7:56 AM
Hello,
You can use structure while considering wa but again in SLIN
you will find some error or message,while using syntax struture.
So first make types(local structure) in ur program the use it directly in TYPE.