on 03-17-2010 9:55 AM
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
These are declared attributes which are not being used anywhere..hence the warning
Edited by: Manas Dua on Mar 17, 2010 4:23 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Warning is coming because you have declared these but not used anywhere in the method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.