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

SLIN Query

Former Member
0 Likes
471

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
404

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.

2 REPLIES 2
Read only

Former Member
0 Likes
405

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.

Read only

Former Member
0 Likes
404

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.