cancel
Showing results for 
Search instead for 
Did you mean: 

Warning in extended check

Former Member
0 Kudos

Dear Experts,

while performing extended check on my webdynpro compenent I am getting following warning

Messages for Field Attributes(Warnings)

*****************************************************

Program: /1BCWDY/GS80OU42GMZXRT6BMTCH==CP Include: /1BCWDY/B_GS80T5694I5A77PHHYLJ Row: 3565

Field LS_YESNO is not referenced statically in the program

(The message can be hidden with "#EC NEEDED)

Program: /1BCWDY/GS80OU42GMZXRT6BMTCH==CP Include: /1BCWDY/B_GS80T5694I5A77PHHYLJ Row: 3625

Field string LS_CONTEXT is not referenced statically in the program

(The message can be hidden with "#EC NEEDED)

Program: /1BCWDY/GS80OU42GMZXRT6BMTCH==CP Include: /1BCWDY/B_GS80T5694I5A77PHHYLJ Row: 3626

Field LV_COMMENT is not referenced statically in the program

(The message can be hidden with "#EC NEEDED)

Program: /1BCWDY/GS80OU42GMZXRT6BMTCH==CP Include: /1BCWDY/B_GS80T5694I5A77PHHYLJ Row: 3627

Field LV_BRO_DATE is not referenced statically in the program

(The message can be hidden with "#EC NEEDED)

Program: /1BCWDY/GS80OU42GMZXRT6BMTCH==CP Include: /1BCWDY/B_GS80T5694I5A77PHHYLJ Row: 3628

Field LV_NAME is not referenced statically in the program

(The message can be hidden with "#EC NEEDED)

Program: /1BCWDY/GS80OU42GMZXRT6BMTCH==CP Include: /1BCWDY/B_GS80T5694I5A77PHHYLJ Row: 3718

Field string LS_CONTEXT is not referenced statically in the program

(The message can be hidden with "#EC NEEDED)

I have declared all these variables in event handler method of the component

like

DATA lo_nd_yesno TYPE REF TO if_wd_context_node.

DATA lo_el_yesno TYPE REF TO if_wd_context_element.

DATA ls_yesno TYPE wd_this->element_yesno.

DATA lv_item TYPE wd_this->element_yesno-item.

DATA ls_bro_input TYPE wd_this->element_bro_input.

DATA lv_flag TYPE char1.

Is there anything wrong with declaration , ? How can I remove these warnings

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

These are declared attributes which are not being used anywhere..hence the warning

Edited by: Manas Dua on Mar 17, 2010 4:23 PM

Former Member
0 Kudos

Thanks All for quick response , my problem is solved , each warning massage is saying that The message can be hidden with "#EC NEEDED where I have to add "#EC

saket_abhyankar
Active Participant
0 Kudos

Try adding "#EC after variable declaration.

Regards,

Saket.

Former Member
0 Kudos

after adding also the same warning's

saket_abhyankar
Active Participant
0 Kudos

Hi,

You will have to add "#EC NEEDED after variable declaration. It will not remove that warning, it will just hide it from displaying in extended check output list. (Still you will see total no of hidden warnings at the bottom of list)

If you select the check box 'Also Display Hidden Messages (Pseudocomments)', even those hidden warnings will also be displayed in the list.

Regards,

Saket.

Former Member
0 Kudos

Hi,

You will have to add Pragma " #EC NEEDED and not just #EC. As Saket said this will just hide the warnings.

To remove the warnings click on each warning( go to object ), it will lead you to the piece of code where this declaration was made, comment that declaration, activate and run extended check again.

Regards

Manas Dua

Former Member
0 Kudos

my problem solvd , thank you all.

awarding points to manas becauz he answered first

Answers (2)

Answers (2)

saket_abhyankar
Active Participant
0 Kudos

Hi,

I think there is no problem in declaration. The reason is you have only declared those variables in the code but you have not used them elsewhere in your code. You can delete those variables if not required.

Regards,

Saket

Former Member
0 Kudos

Hi,

Warning is coming because you have declared these but not used anywhere in the method.