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

Declarations are global for current event - with Extended Program check

manoj_goyal2
Participant
0 Likes
474

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

2 REPLIES 2
Read only

Former Member
0 Likes
435

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

Read only

Former Member
0 Likes
435

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