Application Development 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: 

Problem with obsolete sentence.

0 Kudos
204

Hi.

I have applied extended verify code to my program. Into Obsolete Sentences, show me a sentence as obsolete:

form recupera_concepto tables it_in_par structure itcsy

it_out_par structure itcsy.

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

types, not "LIKE" or "STRUCTURE".

If I modify my code like this:

form recupera_concepto tables it_in_par type standar table itcsy

it_out_par type standar table itcsy.

Show me an error: "itcsy" has already been declared.

What can I do to solve this problem?. If I use first code, program works fine, but exist an error with extended verify code.

Any suggestion will be welcome.

Thanks a lot, regards.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
73

You can declare as a type table, that will clear the error. But you could also put "#EC next to the statement, and that will hide the error.

TYPES: t_itcsy TYPE itcsy.
TYPES: tt_itcsy TYPE STANDARD TABLE OF t_itcsy.

FORM recupera_concepto TABLES it_in_par TYPE tt_itcsy
                             it_out_par TYPE tt_itcsy.

ENDFORM.                    "recupera_concepto

Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
74

You can declare as a type table, that will clear the error. But you could also put "#EC next to the statement, and that will hide the error.

TYPES: t_itcsy TYPE itcsy.
TYPES: tt_itcsy TYPE STANDARD TABLE OF t_itcsy.

FORM recupera_concepto TABLES it_in_par TYPE tt_itcsy
                             it_out_par TYPE tt_itcsy.

ENDFORM.                    "recupera_concepto

Regards,

Rich Heilman

naimesh_patel
Active Contributor
0 Kudos
73

Pls ignore.

Edited by: Naimesh Patel on Dec 9, 2009 1:52 PM

former_member193335
Active Participant
0 Kudos
73

Hi Jorge.

The problem is on TABLES alternative of command FORM. You can still use this form. If you want you can try the following:


FORM routine USING it_table_in TYPE TABLE.
*- here you define a wa of the type of it_table
DATA: wa_line TYPE ty_table.
...
*- here you process internal table as usual
LOOP AT it_table_in INTO wa_line.
...
ENDLOOP.
...
ENDFORM.

Do not forget close your posts.

Regards.

Rafael Rojas.

0 Kudos
73

Again, you could simply just hide the error using "#EC

FORM recupera_concepto USING it_in_par structure itcsy  "#EC
                             it_out_par stricture itcsy.                        "#EC

Regards,

Rich Heilman