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

How to reference a field statically in a program?

Former Member
0 Likes
1,731

Hi Everyone,

Can any one explain me how to reference a field statically.

As the error on Extended program check is as follows:

Field FLAG is not referenced statically in the program

where as the particular field has been defined as below in the program :

when 'SMTP_ADDR'.

DATA: flag type i.

I think is there a need to define the field globally.

Thanks and Regards,

Johny

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
737

U can comment/delete this field(FLAG) ..

This is not used anywhere in the program ..

3 REPLIES 3
Read only

Former Member
0 Likes
738

U can comment/delete this field(FLAG) ..

This is not used anywhere in the program ..

Read only

matt
Active Contributor
0 Likes
737

It just means that you've defined the data "flag" and, unless you've done some dynamic programming, you've not used it.

If there's no dynamic programming relying on this flag, which seems likely, then just delete it.

matt

Read only

Former Member
0 Likes
737

Hi,

We can avoid this EPC check by deleting or putting a comment Or By passeing the EPC to it ie

DATA:

w_flag type i." #EPC

we can also avoid the EPC error by this way.then this willnt be aa part of EPC check

Thanks & Regards,

Chandralekha.