‎2007 Feb 09 6:18 AM
Hi experts,
after the completion of my object, i tested it through EXTENDED SYNTAX CHECK" its showing errors, warnings and messages.
Error: No exception to set SY-SUBRC declared for CALL FUNCTION 'SPELL_AMOUNT'.
Warnings : Field string zref_lfa1is not reflected statically in the program.
The message can be hidden with "#EC*.
Explain me whats the functionality of "#EC*.
And how to make my object free from errors and warnings.
Regards
akmal.
Waiting for replies.
‎2007 Feb 09 6:27 AM
Hi,
For the error about sy-subrc after the function,uncomment the lines "If sy-subrc..."that generally follow after the function is called.So that the code can throw an exception if sy-subrc is not 0.
For the warning,they can be hidden by commenting the line with "#EC*.That is,
say you are getting this warning for the following line of code:
Read table..... .
Then you can hide this warning by using:
Read table...... ."#EC*
These errors can be suppressed.In the slin check,if you don not tick the Suppressed errors radio-button,then these warnings can be hidden.
Then this warning will not be visible in your slin check.
Regards,
Beejal
**Reward if this helps
‎2007 Feb 09 6:23 AM
‎2007 Feb 09 6:27 AM
Hi,
For the error about sy-subrc after the function,uncomment the lines "If sy-subrc..."that generally follow after the function is called.So that the code can throw an exception if sy-subrc is not 0.
For the warning,they can be hidden by commenting the line with "#EC*.That is,
say you are getting this warning for the following line of code:
Read table..... .
Then you can hide this warning by using:
Read table...... ."#EC*
These errors can be suppressed.In the slin check,if you don not tick the Suppressed errors radio-button,then these warnings can be hidden.
Then this warning will not be visible in your slin check.
Regards,
Beejal
**Reward if this helps
‎2007 Feb 09 6:31 AM
Hi,
After the function call .. first check for SY-SUBRC <> 0 and then use else
Call function ..
if sy-subrc <> 0..
else.
endif.
And for the warning about Field string not reflected ...
Use "#EC at the line specified by the EPC ..
It will still show this as a warning in EPC .. but don't bother ...
Regards,
GSR.
‎2007 Feb 09 6:34 AM
‎2007 Feb 09 6:34 AM
Hi,
"#EC* will disable the errors and hide them during the syntax check.
This is in a way to override the syntax check errors and warnings.
Regards
Subramanian
‎2007 Feb 09 6:40 AM
"#EC is used to hide the errors.
http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801afd454211d189710000e8322d00/content.htm
Warnings in the extended program check should also be corrected. If your program contains statements that are definitely correct but still produce warnings in the extended program check, you can exclude them from the check using pseudocomments ("#EC ...).
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/f2bbcb142c11d3b93a0000e8353423/content.htm
Message was edited by:
Judith Jessie Selvi