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

EPC WARNINGS

Former Member
0 Likes
1,603

Hi All,

I have written a report and it is working fine. The problem is only with while during the EPC check for my report it is showning an warning as below.

Warning Messsage :

              Do not use fields, field symbols (<FS_HEADER_LINE>) globally

             Can be hidden using pragma ##NEEDED (or pseudo comment "#EC NEEDED).

I know that these warnings can be suppressed by providing the text as #EC NEEDED but the problem is that my lead will not accept the supressing the warnings using texts.Can anyone suggest me how to resolve the issue.I hvae tried a lot regarding these but I did not find a solution to it.

Below is the code of program where the epc check is showing the warning.If I tried to declare these field symbols with in a definition part of a class it is not accepting.How to overcome the issue.Thanks in Advance.

FIELD-SYMBOLS:

       <fs_header_line>  TYPE  any,

       <fs_header_line1> TYPE  any,

       <fs_header>       TYPE STANDARD TABLE,

* Field Symbols Declarations for final

       <fs_final_line>   TYPE  any,

       <fs_final>        TYPE STANDARD TABLE,

* Field Symbol declaration for the purpose to hold status of record

       <fs_status>       TYPE any,

       <fs_validto>      TYPE any.

Regards,

Chakradhar.

Hi All,

I have written a report and it is working fine. The problem is only with while during the EPC check for my report it is showning an warning as below.

Warning Messsage :

              Do not use fields, field symbols (<FS_HEADER_LINE>) globally

             Can be hidden using pragma ##NEEDED (or pseudo comment "#EC NEEDED).

I know that these warnings can be suppressed by providing the text as #EC NEEDED but the problem is that my lead will not accept the supressing the warnings using texts.Can anyone suggest me how to resolve the issue.I hvae tried a lot regarding these but I did not find a solution to it.

Below is the code of program where the epc check is showing the warning.If I tried to declare these field symbols with in a definition part of a class it is not accepting.How to overcome the issue.Thanks in Advance.

FIELD-SYMBOLS:

       <fs_header_line>  TYPE  any,

       <fs_header_line1> TYPE  any,

       <fs_header>       TYPE STANDARD TABLE,

* Field Symbols Declarations for final

       <fs_final_line>   TYPE  any,

       <fs_final>        TYPE STANDARD TABLE,

* Field Symbol declaration for the purpose to hold status of record

       <fs_status>       TYPE any,

       <fs_validto>      TYPE any.

Regards,

Chakradhar.

6 REPLIES 6
Read only

Former Member
0 Likes
1,404

Hi Chakradhar,

Field symbols acts as a pointer.

It doesn't have the memory. during the run time memory address has been assigned  logically.

It points the value of address which is assigned in run time of the program.

Don't use the field symbols in definition. You can use the field symbols in methods.


For Example:


I have enclosed the Test Program.

 

Regards,

Karthik.



Read only

0 Likes
1,404

Hi Karthik,

Thanks for your reply.I cannot define field-symbols inside a method as they are used globally in my report.

Regards,

Chakradhar.

Read only

0 Likes
1,404

Hi Chakradhar,

That's why you got the warning. If u wanna remove the warning please declare it inside the methods or subroutines.

Regards,

Karthik

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,404

Chakri Reddy yannam wrote:

I cannot define field-symbols inside a method as they are used globally in my report.

What you did was wrong & hence you get the SLIN/EPC error message. So either correct your coding or suppress the warning, choice is yours!

Read only

0 Likes
1,404

HI Suhas,

Thanks for your reply.I tried to change the coding by using importing and exporting parameters to the method.But is their any alternative other than the above two suggestions because changing of code may result a run time errors.

Thanks in Advance.

Regards,

Chakradhar.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,404

But is their any alternative other than the above two suggestions because changing of code may result a run time errors.

Unfortunately, no. You create the mess, you clean it