Skip to Content
0
Dec 14, 2012 at 07:14 AM

Sub-Routines?

26 Views

hi all,

i have used sub-routines in my code. recently i did SLIN Overview test in which i got many errors regarding Obsolete statements.

i used Tables in my sub-routine

exp:

perform one_xxx tables itab1 itab2.

form one_xxx tables itab1 structure itab1_type

itab2 structure itab2_type.

endform.

well the error says:

The current ABAP command is obsolete

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

types, not "LIKE" or "STRUCTURE".

what does this mean. my code works fine. Should i have to correct my code or just ignore these errors.

pls guide me on this.

regards

satish chandra

Moderator Message - Basic ABAP syntax query. Un-marked as question.

Message was edited by: Suhas Saha