2014 Aug 27 7:19 AM
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.
2014 Aug 27 8:17 AM
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.
2014 Aug 27 8:28 AM
Hi Karthik,
Thanks for your reply.I cannot define field-symbols inside a method as they are used globally in my report.
Regards,
Chakradhar.
2014 Aug 27 11:27 AM
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
2014 Aug 27 11:45 AM
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!
2014 Aug 27 12:49 PM
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.
2014 Aug 27 12:54 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |