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

Verification Syntax.

ronaldo_aparecido
Contributor
0 Likes
1,680

Good Morning Guys.

I am doing a check enlarged in my Code and appears the adverts.

My code is .

********************

**Tabelas Internas**

********************

DATA: t_itab         TYPE TABLE OF ty_upload,

       t_final        TYPE TABLE OF ty_final,

       t_final2       TYPE TABLE OF ty_final,

       t_final3       TYPE TABLE OF ty_final2,

How can I fix this?

Thanks

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,638

This is nothing but warning as you are declaring data globally. It is available everywhere. You can hide it by adding comment "#EC NEEDED.

It is generally recommended not to use global data. You can declare this data where ever you are using them in sub routines.

8 REPLIES 8
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,639

This is nothing but warning as you are declaring data globally. It is available everywhere. You can hide it by adding comment "#EC NEEDED.

It is generally recommended not to use global data. You can declare this data where ever you are using them in sub routines.

Read only

0 Likes
1,638

Thanks.

Nabheet 

Thanks.

Shiva

Worked.

Read only

matt
Active Contributor
0 Likes
1,638

What worked?

Suppressing the warnings? That would be bad.

Addressing the scope of the variables? That would be good.

Read only

Former Member
0 Likes
1,638

Hi ,

Those are the messages by extended program check . U really dont have to worry about that bcz it will not be a performance thing . If u really want to clear all of them then u have to stop declaring all those tables when they are not really used more than one subroutine or include. 

  If u do so, just by using the psuedo comment *#EC NEEDED  u can actually supress them as nabheet madan said .. its simple .

Thanks & Regards ,

Shiv

Read only

Former Member
0 Likes
1,638

Hi,

adding comment "#EC NEEDED. otherwise declare variable/ internal table in local sub routines.

Read only

hemanth_kumar21
Contributor
0 Likes
1,638

Hi Ronaldo Aparecido ,

Please declare those internal tables in Subroutine or Include (means, exaclty where you are using those tables, declare there only)

or as suggested by ALL You can hide those declarations with "#EC NEEDED.

But, if you hide warning with "#EC NEEDED it will show against to 'Hidden Errors and Warnings' Please find attached screenshot for the same.

Read only

Former Member
0 Likes
1,638

Hi Ronaldo ,

I guess you have created structures(types)  say (ty_upload ,ty_final ) using the field symbols .Structures built based on the field symbol .

For Example .

field-SYMBOLS <fs_test> type  sflight .

types : BEGIN OF ty_int .

        include structure <fs_test>.

types :END OF ty_int .



DATA : t_int TYPE table OF ty_int .

Read only

Former Member
0 Likes
1,638

Hi Ronaldo,

This is due to, Usage of Globally declared Internal Tables only in particular perform.

Same Internal Table might not be used in some other perform.

You can ignore that through #EC NEEDED or by declaring the same internal tables as a local one in that perform.

SKR.