‎2013 Oct 28 11:46 AM
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
‎2013 Oct 28 11:50 AM
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.
‎2013 Oct 28 11:50 AM
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.
‎2013 Oct 28 12:26 PM
‎2013 Oct 28 2:22 PM
What worked?
Suppressing the warnings? That would be bad.
Addressing the scope of the variables? That would be good.
‎2013 Oct 28 12:01 PM
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
‎2013 Oct 28 12:12 PM
Hi,
adding comment "#EC NEEDED. otherwise declare variable/ internal table in local sub routines.
‎2013 Oct 28 12:23 PM
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.
‎2013 Oct 28 12:24 PM
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 .
‎2013 Oct 28 12:28 PM
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.