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

Extended syntax check

Former Member
0 Likes
1,545

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,014

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,015

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

Read only

Former Member
0 Likes
1,014

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.

Read only

Former Member
0 Likes
1,014

Hi,

not reflecting means, just comment that line.

Regards

rams

Read only

Former Member
0 Likes
1,014

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

Read only

Former Member
0 Likes
1,014

"#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