2007 Oct 22 3:01 AM
Hi Guys,
I did extended check program check.
It is giving the Waring under Problematic Statements.
Warning - Declarations are global for current event for CONSTANTS declarion.
TOP-OF-PAGE.
Detail Report Column headings.
CONSTANTS: lc_d_col1(10) TYPE c VALUE 'Day area',
START-OF-SELECTION.
Please tell me how I can avoid it.
Thanks,
Mini
Hi Guys,
I did extended check program check.
It is giving the Waring under Problematic Statements.
Warning - Declarations are global for current event for CONSTANTS declarion.
TOP-OF-PAGE.
Detail Report Column headings.
CONSTANTS: lc_d_col1(10) TYPE c VALUE 'Day area',
START-OF-SELECTION.
Please tell me how I can avoid it.
Thanks,
Mini
2007 Oct 22 3:05 AM
Hi,
Please try to declare your constants before start-of-selection.
* Detail Report Column headings.
CONSTANTS: lc_d_col1(10) TYPE c VALUE 'Day area',
START-OF-SELECTION.
...
TOP-OF-PAGE.
...
Regards,
Ferry Lianto
2007 Oct 22 3:33 AM
generally we will declare all constants and variables before the program.
Create one include with name.
<b>Include z_program_TOP.</b>
and declare all the constants and vaiables in that and include it at strat of program.
CONSTANTS: lc_d_col1(10) TYPE c VALUE 'Day area',
and then in main program as.
TOP-OF-PAGE.
START-OF-SELECTION.
Rewards if useful...............
Minal
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |