01-22-2006 5:34 AM
Hi,
i want to know that is the use of "#ec * in an abap program.
i heard that it is used to supress the warning messages which we get when we do extended syntax check.
fist of all i want to know is it true r false and if its true then i want to know more about it.
regards,
maqsood
01-22-2006 8:56 AM
Hi
Yes it's true.
If you put "#ec * at the end of a abap code row, you can suppress the warnining messages of extended program check.
Every kind of warning has own sign, you find out them while running extended check.
It's a way to clear the useless messages.
For example, you have created an include where you have defined several routines you have to use in several programs, but every program don't use all routines of that include, or you dynamically call those routines, so if you run the extend check for a certain program you can get a warning like that:
FORM PLUTO not called directly
Now you can't delete the routine from the include, because it can be used by other program, but you can hide that message by "#ec CALLED:
FORM <MY_FORM>. "#EC CALLED
ENDFORM.
Max
01-22-2006 9:00 AM
Hi khan,
Yes it is true that, we use #EC at the end of the statements in our ABAP code to skip warning messages in EPC.
<a href="http://help.sap.com/saphelp_me21sp2/helpdata/en/d1/801afd454211d189710000e8322d00/content.htm">Extended Program Check</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/aff89590-0201-0010-5aa1-bc1">Troubleshoot your ABAP programs</a>
Regards,
Raj